“E:读取错误 - 读取(5:输入/输出错误),E:无法解析或打开包列表或状态文件。”

“E:读取错误 - 读取(5:输入/输出错误),E:无法解析或打开包列表或状态文件。”

因此,我继续尝试在笔记本电脑上安装一些东西,每当我尝试使用 sudo apt-get 时,每次都会遇到相同的错误,

SystemError: E:Read error - read (5: Input/output error), E:The package lists or status file could not be parsed or opened.

此外,每当我尝试通过桌面图标打开软件中心时,它都会冻结,让我不得不强制退出。如果我尝试在终端中使用命令软件中心,我会得到世界上最长的列表,即

che.open()
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 629, in <lambda>
    return (lambda data: callback(*data), user_data)
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open
    self._cache = apt.Cache(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 105, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 150, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Read error - read (5: Input/output error), E:The package lists or status file could not be parsed or opened.
2013-10-13 10:13:52,685 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 629, in <lambda>
    return (lambda data: callback(*data), user_data)
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open
    self._cache = apt.Cache(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 105, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 150, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Read error - read (5: Input/output error), E:The package lists or status file could not be parsed or opened.
2013-10-13 10:13:57,365 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 629, in <lambda>
    return (lambda data: callback(*data), user_data)
  File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open
    self._cache = apt.Cache(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 105, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 150, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Read error - read (5: Input/output error), E:The package lists or status file could not be parsed or opened.

这只是列表的十分之一,太长了,读不完。我需要帮助,如果有人有答案,请回复

答案1

您的列表已损坏,您应该删除它们并刷新您的软件包列表:

sudo rm -r /var/lib/apt/lists/
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get update

首先删除前一个列表,然后重建partial目录,第三更新您的列表并重新创建您的存储库的软件包列表。

如果您确切地找出哪一个损坏了,这个问题就很容易解决,但日志没有说明。apt-get update可能会给你提示,所以不要删除全部其中,只有一个被损坏。

相关内容