Encountered a section with no Package: header
apt-get出现E:Encountered a section with no Package: header……的解决方法
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/******
刚由于lists中某一个文件没有下载完成,出现解析错误。
可用的解决方案:将/var/lib/apt/lists/下的所有list文件都删除,然后再update即可,命令如下:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update