如何从损坏的下载中恢复dpkg?

将要

我刚刚较早升级到10.10 RC,并且图形驱动程序存在一些问题(x尚未启动),但我现在已对此进行了补救。当我运行'sudo apt-get install -f'时,我得到了:

will@UbuntuBox:/mnt/slax$ sudo apt-get install -f
[sudo] password for will: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libmono-wcf3.0-cil openoffice.org-calc openoffice.org-core
The following NEW packages will be installed:
  libmono-wcf3.0-cil
The following packages will be upgraded:
  openoffice.org-calc openoffice.org-core
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0B/32.5MB of archives.
After this operation, 1,929kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 201565 files and directories currently installed.)
Preparing to replace openoffice.org-calc 1:3.2.1-6ubuntu2~10.04.1 (using .../openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb) ...
Unpacking replacement openoffice.org-calc ...
xz: (stdin): Compressed data is corrupt
dpkg-deb: subprocess <decompress> returned error exit status 1
dpkg: error processing /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
 short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/libscfiltli.so'
dpkg: regarding .../openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb containing openoffice.org-core:
 openoffice.org-core conflicts with openoffice.org-calc (<< 1:3.2.1-7ubuntu1)
  openoffice.org-calc (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
dpkg: error processing /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
 conflicting packages - not installing openoffice.org-core
Unpacking libmono-wcf3.0-cil (from .../libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
dpkg-deb: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb
 /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb
 /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

任何想法,我怎么能解决坏掉的包裹?干杯,威尔

豪尔赫·卡斯特罗(Jorge Castro)

这条线是一个线索:

xz: (stdin): Compressed data is corrupt

传输过程中.deb可能发生了某些情况。执行a sudo apt-get clean,然后再次尝试强制其重新下载deb。

最近,Launchpad中也有类似的报告针对此类OpenOffice错误。这可能是一个错误,应这样报告

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章