apt-get出现:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists

作者:金良([email protected]) csdn博客:http://blog.csdn.net/u012176591

apt-get出现:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists_第1张图片

最近在Ubuntu上安装mysql-server时用命令apt-get install mysql-server出现报错提示:

E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/******


回想起上一次调用apt-get update时由于update时间太长我直接CTRL+C中止的情形,可能是由于lists中某一个文件没有下载完成,出现解析错误。
可用的解决方案:将/var/lib/apt/lists/下的所有list文件都删除,然后再update即可,命令如下:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

你可能感兴趣的:(Install,ubuntu,with,package,apt-get,a,No,encountered,sectio)