阅读包列表……错误!

Reading package lists... Error! E: Unable to synchronize mmap - msync (5: Input/output error) E: The package lists or status file could not be parsed or opened. 

我在尝试安装程序时得到这个,当我做sudo apt-get update时,它最终得到:E:某些索引文件无法下载。 它们被忽略了,或者用旧的。

在执行sudo apt-get update后,通过向上滚动查找无法下载的软件包。 从/etc/apt/sources.list中删除源网站。

我尝试了以下命令,它对我有用:

  sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bad sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status sudo apt-get update