Debian/Ubuntu Linux:E:遇到没有包的部分:标头错误和解决方案

时间:2020-01-09 10:38:14  来源:igfitidea点击:

运行apt-get update命令来获取更新,出现以下错误:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.debian.org_dists_squeeze_updates_contrib_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.

如何在Debian或Ubuntu Linux操作系统下解决此问题?
要解决此问题,请以root用户身份登录并执行以下命令:

# rm -rf /var/lib/apt/lists/*
# apt-get update

最后,应用新更新,执行:

# apt-get upgrade

输出示例:

Unpacking replacement libtiff4 ...
Processing triggers for man-db ...
Setting up libcurl3 (7.21.0-2.1+squeeze2) ...
Setting up curl (7.21.0-2.1+squeeze2) ...
Setting up libpng12-0 (1.2.44-1+squeeze4) ...
Setting up libtiff4 (3.9.4-5+squeeze4) ...