Ubuntu12.04下Encountered a section with no Package: header错误解决方案

时间:2021-01-13 14:59:55

        刚刚想在Ubuntu12.04下安装几个软件,sudo apt-get install libsqlite3-dev automake scratchbox2,没成想出现下面的错误:

正在读取软件包列表... 有错误!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_i18n_Translation-en
E: 无法解析或打开软件包的列表或是状态文件。
解决方案如下:

(1)删除/var/lib/apt/lists目录下的所有文件
sudo rm /var/lib/apt/lists/* -rf

(2)然后执行update命令来重新生成:
sudo apt-get update

转载至http://doc.chinaunix.net/linux/201206/221573.shtml