解決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