软件中心的问题

软件中心的问题
2015-12-03 02:02:18,961 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2015-12-03 02:02:19,303 - softwarecenter.ui.gtk3.app - INFO - building local database
2015-12-03 02:02:19,303 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
  File "/usr/bin/software-center", line 130, in <module>
    app = SoftwareCenterAppGtk3(options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 313, in __init__
    self._rebuild_and_reopen_local_db(pathname)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 532, in _rebuild_and_reopen_local_db
    rebuild_database(pathname, debian_sources, appstream_sources)
  File "/usr/share/software-center/softwarecenter/db/update.py", line 1148, in rebuild_database
    cache.open()
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open
    self._cache = apt.Cache(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 107, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 155, in open
    self._list.read_main_list()
SystemError: E:Malformed line 4 in source list /etc/apt/sources.list.d/google-chrome.list (dist parse)

帮我

答案1

这应该可行。

这就是删除文件,使用该命令会给您带来问题:

sudo rm /etc/apt/sources.list.d/google-chrome.list

然后运行这些命令将 Google Chrome 添加回存储库

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

然后运行:

sudo apt-get update

相关内容