软件中心出故障了
Tofloor
poster avatar
mistymonarch
deepin
2013-08-25 20:50
Author
root@misty-monarch:~# deepin-software-center
Traceback (most recent call last):
  File "/usr/bin/deepin-software-center", line 23, in
    from software_center import DeepinSoftwareCenter
  File "/usr/share/deepin-software-center/ui/software_center.py", line 73, in
    from preference import preference_dialog, WaitingDialog
  File "/usr/share/deepin-software-center/ui/preference.py", line 583, in
    preference_dialog = DscPreferenceDialog()
  File "/usr/share/deepin-software-center/ui/preference.py", line 282, in __init__
    self.mirror_settings.pack_start(self.create_mirror_select_table(), False, True)
  File "/usr/share/deepin-software-center/ui/preference.py", line 326, in create_mirror_select_table
    self.current_mirror_hostname = self.get_current_mirror_hostname()
  File "/usr/share/deepin-software-center/ui/preference.py", line 425, in get_current_mirror_hostname
    source_list_obj.read_main_list()
SystemError: E:安装源配置文件“/etc/apt/sources.list”第 16 行有错误(发行版解析)
root@misty-monarch:~#
Reply Favorite View the author
All Replies
mistymonarch
deepin
2013-08-25 22:04
#1
经研究发现解决方案如下
上面代码所说内容是list文件代码行有一行故障
操作步骤如下
先进入相应目录用文本查看一下所说文件所指代码现在是什么
然后
启动U盘LINUX安装系统,进入U盘LINUX
同样进入相应目录再一次查看一下刚才看过的哪个文件代码又是多少,然后复制文件到SD卡
重启电脑进入系统插上SD卡,将复制的文件复制到主文件夹中,主文件夹路径一般在/home/系统名
比如本人的就是/home/misty
复制完成后,终端命令
sudo -s
sudo rm /etc/apt/sources.list
上面的意思是删除掉出故障的list文件
删除后应用商店就可以打开了不过更新不了应用商店下面的命令就是解决更新并修复[上面命令是删除哪么下面就是用U盘里复制出来的相应文件恢复]
misty@misty-monarch:~$ sudo -s
[sudo] password for misty:
root@misty-monarch:~# cp -i /home/misty/sources.list /etc/apt/
实际应用命令   cp -i 复制的文件路径   要放入的路径
cp -i /home/misty/sources/list 本人从SD复制的文件路径
/etc/apt/    要放入的目录   
复制完成后权限什么的自动还原成以前的哪个,所以不需要自己再改权限,
本解决方案适合新手,
Reply View the author
cxbii
deepin
2013-08-26 03:17
#2
  1. sudo apt-get update
  2. sudo apt-get --reinstall install deepin-software-center deepin-software-center-data
Copy the Code

直接用apt重装软件中心才是最快的吧?
什么软件有问题,应该优先去百科找这个软件的页面
http://wiki.linuxdeepin.com/index.php?t ... E.E9.A2.98
Reply View the author
mistymonarch
deepin
2013-09-02 05:13
#3
  1. sudo apt-get update
  2. sudo apt-get --reinstall install deepin-software-center deepin-software-center-data
Copy the Code

直接用apt重装软件中心才是最快的吧?
什么软件有问题,应该优先去百科找这个软件的页面
http://wiki.linuxdeepin.com/index.php?t ... E.E9.A2.98
行不通的,我出的故障是打命令安装出错
Reply View the author
cxbii
deepin
2013-09-02 18:48
#4
行不通的,我出的故障是打命令安装出错
详细点?你说的是你输入命令输入错了?如果不是,请贴上终端错误输出吧
Reply View the author
electricface
deepin
2013-09-02 19:34
#5
分享我的源列表
  1. deb http://packages.linuxdeepin.com/ubuntu raring main restricted universe multiverse
  2. deb http://packages.linuxdeepin.com/ubuntu raring-updates main restricted universe multiverse
  3. deb http://packages.linuxdeepin.com/ubuntu raring-proposed main restricted universe multiverse
  4. deb http://packages.linuxdeepin.com/ubuntu raring-backports main restricted universe multiverse
  5. deb http://packages.linuxdeepin.com/ubuntu raring-security main restricted universe multiverse
  6. deb-src http://packages.linuxdeepin.com/ubuntu raring main restricted universe multiverse
  7. deb-src http://packages.linuxdeepin.com/ubuntu raring-updates main restricted universe multiverse
  8. deb-src http://packages.linuxdeepin.com/ubuntu raring-proposed main restricted universe multiverse
  9. deb-src http://packages.linuxdeepin.com/ubuntu raring-backports main restricted universe multiverse
  10. deb-src http://packages.linuxdeepin.com/ubuntu raring-security main restricted universe multiverse
  11. deb http://packages.linuxdeepin.com/deepin raring main universe non-free
  12. deb-src http://packages.linuxdeepin.com/deepin raring main universe non-free
Copy the Code

请问“SystemError: E:安装源配置文件“/etc/apt/sources.list”第 16 行有错误(发行版解析)” 这个错误,是在什么情况发生的?
Reply View the author
mistymonarch
deepin
2013-09-03 06:45
#6
[quote]
行不通的,我出的故障是打命令安装出错
详细点?你说的是你输入命令输入错了?如果不是,请贴上终端错误输出吧[/quote]
都修正了还整毛  现在可以用啊  就是把U盘启动的LINUX启动一次制作出出错的文件替换掉............................
Reply View the author
mistymonarch
deepin
2013-09-03 06:48
#7
分享我的源列表
  1. deb http://packages.linuxdeepin.com/ubuntu raring main restricted universe multiverse
  2. deb http://packages.linuxdeepin.com/ubuntu raring-updates main restricted universe multiverse
  3. deb http://packages.linuxdeepin.com/ubuntu raring-proposed main restricted universe multiverse
  4. deb http://packages.linuxdeepin.com/ubuntu raring-backports main restricted universe multiverse
  5. deb http://packages.linuxdeepin.com/ubuntu raring-security main restricted universe multiverse
  6. deb-src http://packages.linuxdeepin.com/ubuntu raring main restricted universe multiverse
  7. deb-src http://packages.linuxdeepin.com/ubuntu raring-updates main restricted universe multiverse
  8. deb-src http://packages.linuxdeepin.com/ubuntu raring-proposed main restricted universe multiverse
  9. deb-src http://packages.linuxdeepin.com/ubuntu raring-backports main restricted universe multiverse
  10. deb-src http://packages.linuxdeepin.com/ubuntu raring-security main restricted universe multiverse
  11. deb http://packages.linuxdeepin.com/deepin raring main universe non-free
  12. deb-src http://packages.linuxdeepin.com/deepin raring main universe non-free
Copy the Code

请问“SystemError: E:安装源配置文件“/etc/apt/sources.list”第 16 行有错误(发行版解析)” 这个错误,是在什么情况发生的?

软件商店启动后,用网的的重装软件商店的命令时提示的,居体的不明,后来查看了一下出错文件就是哪个文本然后用U盘启动查看同样的文本发现不一样,然后把U盘里的哪个复制到U盘里进入系统替换掉出错文件
Reply View the author