1. 程式人生 > >Ubuntu16.04安裝軟體提示E: Encountered a section with no Package: header錯誤

Ubuntu16.04安裝軟體提示E: Encountered a section with no Package: header錯誤

ubuntu16.04用sudo apt-get XXX 結果提示如下錯誤:

[email protected]:~/bin$ sudo apt-get install lrzsz
[sudo] password for kaka:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

翻閱古今典籍,找到了解決的方法,mark一下:

將/var/lib/apt/lists目錄下所有檔案清空,再update即可。

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

       sudo apt-get update

 

之後在執行軟體安裝的指令即可~