每次下载到 95% 时都会收到“包操作失败”的消息。
详细信息显示“阅读数据库”每 5 个百分点,直到
Reading database ... 95%dpkg: unrecoverable fatal error
aborting: failed in buffer_read(fd): files list for package `gstreamer0.10-plugins-ugly'
我尝试下载多个软件(最近的是 PDF 编辑器),并在下载的同一时间收到相同的消息。
我的 Ubuntu 版本有问题吗?有病毒吗?还是下载的软件有问题?使用 10.04 LTS。
PS 尝试下载更新时遇到同样的问题。
Mik...感谢您的反馈...首先应该让您知道我是一个回收的 Windows 用户,因此对使用终端窗口的知识非常有限...讨厌 MS、Google、Facebook 和所有其他商业信息收集器,两年前转而使用开源软件和所见即所得的 Ubuntu...话虽如此,以下是我运行时发生的情况sudo apt-get -f install
primary@primary-desktop:~$ sudo dpkg --configure -a
primary@primary-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-21
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
primary@primary-desktop:~$ apt - get autoremove
The program 'apt' is currently not installed. You can install it by typing:
sudo apt-get install openjdk-6-jdk
primary@primary-desktop:~$ openjdk-6-jdk
openjdk-6-jdk: command not found
primary@primary-desktop:~$ sudo apt-get install pdfedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-21
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libqt3-mt
Suggested packages:
libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc
The following NEW packages will be installed:
libqt3-mt pdfedit
0 upgraded, 2 newly installed, 0 to remove and 51 not upgraded.
Need to get 0B/5,380kB of archives.
After this operation, 15.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package libqt3-mt.
(Reading database ... 95%
dpkg: unrecoverable fatal error, aborting:
failed in buffer_read(fd): files list for package `gstreamer0.10-plugins-ugly': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
primary@primary-desktop:~$
在 95%“读取数据库”标记处仍然看到致命错误消息。。。希望得到进一步的反馈。。。
答案1
首先在终端中输入:
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install -f
sudo apt-get update
再次尝试安装您的软件。
答案2
有一个类似的问题Ubuntu 论坛;我认为在问题解决之前,任何apt-get
修复dpkg
都不会起作用。gstreamer
您可以做的是重命名有问题的列表,以便不会被读取dpkg
:
sudo mv /var/lib/dpkg/info/gstreamer0.10-plugins-ugly.list /var/lib/dpkg/info/gstreamer0.10-plugins-ugly.list.old
如果你还有其他卡住的包裹,这个方法也应该对它们有效 - 只需代替使用另一个包名的 gstreamer;至少类似的修复有效在 Ubuntu 论坛上适用于各种包装。
你现在可以运行
sudo apt-get update
你可以安装任何你需要的,甚至重新安装如果您愿意,将下载 gstreamer 插件以及它们的最新列表文件。