Linux 问题集
解决E: Encountered a section with no Package: header错误
我的ubuntu机器上出现下面这个错误。
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/ftp.sjtu.edu.cn_ubuntu_dists_precise-security_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
虽然不知道是怎么回事,但是google出来的结果提示可以按如下方法解决,记录之:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
以上是解决E: Encountered a section with no Package: header错误的内容,更多 Ubuntu 的内容,请您使用右上方搜索功能获取相关信息。
apt - An error occurred, please run package manager
出现错误,请运行软件包管理器
转自:https://www.helplib.com/c/mutia_158422
Answer 1 :
#It seems that google-chrome-stable have broke your system for some reason.try this : Open your terminal window Ctrl+Alt+T #Then update the system via sudo apt-get update && sudo apt-get upgrade #Let apt-get run and if there is any error post as comment here and i will help (or anyone available ) #if the Commands fails you can try these ones :Update Packages sudo apt-get update #clean the downloaded packages (where there might be broken ones sudo apt-get clean #Remove unneeded packages (careful! if it might list something that is needed but its dependency or such have been removed and left it orphan sudo apt-get autoremove #Reconfigure all packages sudo dpkg --configure -a #Fix broken packages sudo apt-get install -f
Answer 2 :
Removing the packages list and updating solved the issue for me
Open the terminal : Ctrl+Alt+T
Remove the package list :
sudo rm -vf/var/lib/apt/lists/*
-
-v, --verbose
explain what is being done -
-f, --force
ignore nonexistent files and arguments, never prompt
Update the packages :
sudo apt-get update
Answer 3 :
Fixing the problem with Software Center
When i encountered the same problem (not sure which application caused the problem), running Software Center gave me the option to repair dependencies (in fact it forced me to do so because it would be 'unable to install other software until the problem was fixed').it worked without problems, and the error sign in the notification area disappeared.