How To Fix “Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04

来源:互联网 发布:高考物理知乎 编辑:程序博客网 时间:2024/06/02 10:40

Refer from http://blog.163.com/bsbfans@126/blog/static/4566282420119413730803/

While using the package manager or trying to install applications through Terminal, it is possible to get a nasty error which is something like this :

E:Encountered a section with no Package: header,

E:Problem with MergeList /var/lib/apt/lists /us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages,

E:The package lists or status file could not be parsed or opened.

This  will prevent from  installing or upgrading any application in  Ubuntu 11.04.  Fortunately, the fix is simple for this.

From the Terminal type the following commands :

sudo rm /var/lib/apt/lists/*-vf

and

sudo apt-get update

This  will delete the older entries and download the latest ones after which the error should no longer be there.

[ In fact, to avoid remembering these commands, they can be put in a shell script and only that script needs to be executed. Check outthis post on how to do that.]

Cheers.


0 0