在按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
大功告成。