E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.arch

当我在使用ubuntu输入命令:sudo apt-get install build-essential 时,出现了如下错误:

E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages

……………………

在网上搜到了解决办法,现在记录下来,以便今后查阅:

终端中输入以下两条命令:

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

sudo apt-get update

执行完了命令之后,软件更新器应该会自动要求更新的,更新便是。

你可能感兴趣的:(E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.arch)