由于行格式错误,无法打开软件中心

由于行格式错误,无法打开软件中心

当我尝试打开软件中心时,图标闪烁,但什么也没发生。当我sudo software-center在终端中输入时,我得到:

2012-05-07 12:57:18,385 - softwarecenter.ui.gtk3.em - INFO - EM's: 17 15 21
Traceback (most recent call last):
  File "/usr/bin/software-center", line 151, in <module>
    app = SoftwareCenterAppGtk3(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 213, in __init__
    self.cache.open()
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 209, in open
    self._cache = apt.Cache(GtkMainIterationProgress())
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 93, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 140, in open
    self._list.read_main_list()
SystemError: E:Malformed line 54 in source list /etc/apt/sources.list (dist parse)

我有 Ubuntu 11.10。我是 Linux 新手。感谢您的帮助!!!

答案1

这是你的问题:

SystemError: E:Malformed line 54 in source list /etc/apt/sources.list (dist parse)

做一个

gksu gedit  /etc/apt/sources.list 

从命令行找到第 54 行,看看是否可以修复它。如果不确定哪里出了问题,请将其添加到您的问题中,我们会查看它。

相关内容