How to recover dpkg from corrupted downloads?

Posted by rocker9455 on Ask Ubuntu See other posts from Ask Ubuntu or by rocker9455
Published on 2010-10-03T19:03:23Z Indexed on 2011/12/01 2:19 UTC
Read the original article Hit count: 361

Filed under:

I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now. When i run 'sudo apt-get install -f' i get this:

[email protected]:/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:
The following NEW packages will be installed:
The following packages will be upgraded:
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 1:3.2.1-6ubuntu2~10.04.1 (using .../ ...
Unpacking replacement ...
xz: (stdin): Compressed data is corrupt
dpkg-deb: subprocess <decompress> returned error exit status 1
dpkg: error processing /var/cache/apt/archives/ (--unpack):
 short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/'
dpkg: regarding .../ containing conflicts with (<< 1:3.2.1-7ubuntu1) (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
dpkg: error processing /var/cache/apt/archives/ (--unpack):
 conflicting packages - not installing
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea how i can get the broken packages fixed? Cheers, Will

© Ask Ubuntu or respective owner

Related posts about 10.10

Related posts about package-management