View Single Post
Posts: 669 | Thanked: 433 times | Joined on May 2010
#2731
i just started to use a fresh image "debian-m5-estel.img" and without installing anything, just wanted to update all packages, so i used the following:

apt-get update
apt-get upgrade -f
apt-get upgrade --fix-missing (was suggested to run this in output of previous command)

now when i run "apt-get update" -> no errors - finishes with no suggested updates
running apt-get upgrade generates the following:
---
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
file : Depends: libmagic1 (= 5.04-5+squeeze2) but 5.04-5 is installed
E: Unmet dependencies. Try using -f.
----

running "apt-get upgrade -f" generates the following:

----
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages have been kept back:
debian-multimedia-keyring libsmbclient pulseaudio samba-common smbclient ttf-opensymbol
The following packages will be upgraded:
libmagic1 libssl0.9.8
2 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
70 not fully installed or removed.
Need to get 0 B/1,121 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
E: read, still have 12 to read but none left
E: Error reading archive member header
E: Prior errors apply to /var/cache/apt/archives/libmagic1_5.04-5+squeeze2_armel.deb
debconf: apt-extracttemplates failed: Bad file descriptor
Preconfiguring packages ...
(Reading database ... 65036 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8o-4squeeze7 (using .../libssl0.9.8_0.9.8o-4squeeze12_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
dpkg: error processing /var/cache/apt/archives/libssl0.9.8_0.9.8o-4squeeze12_armel.deb (--unpack):
corrupted filesystem tarfile - corrupted package archive
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libtiff4 3.9.4-5+squeeze4 (using .../libmagic1_5.04-5+squeeze2_armel.deb) ...
Unpacking replacement libtiff4 ...
Errors were encountered while processing:
/var/cache/apt/archives/libssl0.9.8_0.9.8o-4squeeze12_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
----

Am i doing something wrong?