|
apt-get upgrade error in dpkg (--unpack) for gcc,g++
Hi,
Running APT-GET UPGRADE on Debian Sarge upgraded all packages properly except three packages; g++-3.3 gcc-3.3 libstdc++5-3.3-dev. Those packages got an error when unpacking.
Trying APT-GET UPGRADE again makes Debian try to upgrade these three packages again but it always fails for same cause (see log below). By looking at the log below you see that gcc-3.3 and g++-3.3 tried to unpack a file own by another package (gcc-3.3-base). libstdc++5-3.3-dev seems to unpack a file owned by libstdc++5.
Trying to erase those three packages from /var/cache/apt/archives/ to get new package didn't help. Trying to deinstall gcc-3.3-base and libstdc++5 would make apt-get try to deinstall 80% of all the system packages.
Thanks for your help
---------------------------
$ apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
g++-3.3 gcc-3.3 libstdc++5-3.3-dev
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/4259kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 95314 files and directories currently installed.)
Preparing to replace gcc-3.3 1:3.3.4-6sarge1 (using .../gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement gcc-3.3 ...
dpkg: error processing /var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package gcc-3.3-base
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libstdc++5-3.3-dev 1:3.3.4-6sarge1 (using .../libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement libstdc++5-3.3-dev ...
dpkg: error processing /var/cache/apt/archives/libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
trying to overwrite `/usr/share/doc/libstdc++5/changelog.Debian.gz', which is also in package libstdc++5
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace g++-3.3 1:3.3.4-6sarge1 (using .../g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement g++-3.3 ...
dpkg: error processing /var/cache/apt/archives/g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package gcc-3.3-base
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb
/var/cache/apt/archives/libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb
/var/cache/apt/archives/g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
|