记录一个Ubuntu下遇到的问题Problem with MergeLis no Package:header

在按tutorial安装NS3的时候,执行第一句在这里sudo apt-get install g++ Python时,提示错误reading package lists... Error!\nE: Encountered a section with no Package:header \nE: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en E: the package lists or status file could not be parsed or opened.
看到错误提示就头大,一搜解决方案,亲测有用,赶紧记录下来。就两句命令

sudo rm -r /var/lib/apt/lists/*
sudo apt-get clean && sudo apt-get update

大功告成。

猜你喜欢

转载自blog.csdn.net/Muyan_Donny/article/details/82857466