apt-get出现E:Encountered a section with...怎么办

   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/******

  刚开始以为是apt lists中的package没有mysql-server,所以运行命令apt-get update更新list列表,但仍然报上述错误,提示是lists的某一个mirror站点的package入口文件Could not be parsed or opened。

  回想起上一次调用apt-get update时由于update时间太长我直接CTRL+C中止的情形,可能是由于lists中某一个文件没有下载完成,出现解析错误。

  可用的解决方案:将/var/lib/apt/lists/下的所有list文件都删除,然后再update即可,命令如下:

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

  sudo apt-get update

时间: 2024-09-17 04:21:17

apt-get出现E:Encountered a section with...怎么办的相关文章

apt get 报错-Linaro 13.04 Encountered a section with no Package: header

问题描述 Linaro 13.04 Encountered a section with no Package: header apt-get install xxx 报错: Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/dpkg/status E: The package lists or status fil

E: Encountered a section with no Package: header问题的解决

在本子上升级到了12.10.但是在update的时候遇到如下错误: 正在读取软件包列表... 有错误!E: Encountered a section with no Package: headerE: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_quantal_multiverse_i18n_Translation-zhE: 无法解析或打开软件包的列表或是状态文件. 原因是12.04和

Linux 有问必答:如何修复 Raspbian 上的 “Encountered a section with no Package:

问题: 我在树莓派上安装新版的 Raspbian.但当我使用 sudo apt-get update 命令更新 APT 软件包索引的时候,它抛出下面的错误: E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/dpkg/status E: The package lists or status file could not be parsed or opened. 之后我不能在 R

无法解析或打开软件包的列表或是状态文件解决方案

无法解析或打开软件包的列表或是状态文件解决方案   正在读取软件包列表... 有错误! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_ natty_main_i18n_Translation-en E: 无法解析或打开软件包的列表或是状态文件.   www.2cto.com   问题:软

打deb包、创建 apt源仓库

  如何制作Deb包和相应的软件仓库,其实这个很简单.这里推荐使用dpkg来进行deb包的创建.编辑和制作. 首先了解一下deb包的文件结构: deb 软件包里面的结构,它具有DEBIAN和软件具体安装目录(如etc, usr, opt, tmp等).在DEBIAN目录中起码具有control文件,其次还可能具有postinst (postinstallation).postrm (postremove).preinst(preinstallation).prerm (preremove).co

CREATE FILE encountered operating system error 5(Access is denied.)

 这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑.   实验环境:         操作系统版本: Windows Server 2012 SP2         数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server

Taxonomy of class loader problems encountered when using Jakarta Commons Logging(转)

  Acknowledgments I would like to thank Jacob Kjome for reviewing early drafts of this document. His comments helped to clarify several important points. Jake also keeps reminding us on the log4j-dev mailing list that the child-parent delegation mode

struct-为什么不能实现信息的输入,提示section下面有红线错误,如何改正?谢谢!

问题描述 为什么不能实现信息的输入,提示section下面有红线错误,如何改正?谢谢! #include#include#include#define N 10union department{int cls;char office[10];};struct people{char name[10];int age;char job;union deparment section;}men[N];int main(){int i;for(i=0;i<N;i++){printf(""

[Android]Parcelable encountered IOException writing serializable object (name = xxx)

Activity之间通过Intent传递值,支持基本数据类型和String对象及它们的数组对象byte.byte[].char.char[].boolean.boolean[].short.short[].int.int[].long.long[].float.float[].double.double[].String.String[],还有实现Serializable.Parcelable接口的类对象. package com.example.test; import android.os.