Ubuntu 14.04 - apt 获取错误

Ubuntu 14.04 - apt 获取错误

需要一些帮助。

我正在使用 Ubuntu 14.04 LTS,当我运行 sudo apt-get install -f 时出现以下错误 - 请协助。

Unpacking linux-image-3.13.0-57-generic (3.13.0-57.95) ...
dpkg-deb (subprocess): decompressing archive member: internal bzip2 read error: ';DATA_ERROR';
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-57-generic_3.13.0-57.95_i386.deb (--unpack):
 cannot copy extracted data for ';./boot/vmlinuz-3.13.0-57-generic'; to ';/boot/vmlinuz-3.13.0-57-generic.dpkg-new';: unexpected end of file or stream
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-57-generic /boot/vmlinuz-3.13.0-57-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-57-generic /boot/vmlinuz-3.13.0-57-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.13.0-57-generic_3.13.0-57.95_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

dpkg我猜想当包管理工具调用tar程序(在本例中使用该程序)来解压文件时发生了一些错误bzip2。您可以尝试清除检索到的包文件的本地存储库,然后进行更新和升级。因此运行:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

相关内容