当我单击软件更新程序时,它就是无法启动,重新启动计算机也无济于事。
sudo ap-get update
在终端中执行此操作会出现以下错误:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
muddassir@Nexus:~$ Traceback (most recent call last):
File "/usr/share/appgrid/appdata.py", line 229, in <module>
rebuild_db()
File "/usr/share/appgrid/appdata.py", line 119, in rebuild_db
from appdata.apps.aptapp import AptApp, all_apt_pkgnames
File "/usr/share/appgrid/appdata/apps/aptapp.py", line 10, in <module>
cache = Cache()
File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.
使用sudo update-manager
则会出现与上述相同的错误。
答案1
一个简单的解决方案,修复损坏的 apt-get 文件:
$ sudo rm -rvf /var/lib/apt/lists/* //remove your repo sources list files.
$ sudo apt-get update // update your repositories list again