解决E:Encounterd a section with no Package:header
今天在为学校的服务器安装pptp vpn 时,出现以下错误:
Reading package lists… Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/hk.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
root@node1:~# sudo apt-get install pptp-linux
Reading package lists… Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/hk.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
记录下解决方案:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update