Posts Tagged ‘dpkg’

Problems with packages in Debian Testing

Monday, August 30th, 2004

There are currently some bugs in gcc related packages in Debian testing. They won’t install because they contain files owned by other packages too.

The errors are:

(Reading database ... 77290 files and directories currently installed.)
Preparing to replace gcc-3.3-base 1:3.3.4-6sarge1.1 (using .../gcc-3.3-base_1%3a3.3.4-6sarge1.2_i386.deb) ...
Unpacking replacement gcc-3.3-base ...
dpkg: error processing /var/cache/apt/archives/gcc-3.3-base_1%3a3.3.4-6sarge1.2_i386.deb (--unpack):
 trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package g++-3.3
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libstdc++5 1:3.3.4-6sarge1.1 (using .../libstdc++5_1%3a3.3.4-6sarge1.2_i386.deb) ...
Unpacking replacement libstdc++5 ...
dpkg: error processing /var/cache/apt/archives/libstdc++5_1%3a3.3.4-6sarge1.2_i386.deb (--unpack):
 trying to overwrite `/usr/share/doc/libstdc++5/changelog.Debian.gz', which is also in package libstdc++5-3.3-dev
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcc-3.3-base_1%3a3.3.4-6sarge1.2_i386.deb
 /var/cache/apt/archives/libstdc++5_1%3a3.3.4-6sarge1.2_i386.deb

The solution is very simple, once you have figured it out:

# dpkg -i --force-overwrite
/var/cache/apt/archives/gcc-3.3-base_1%3a3.3.4-6sarge1.2_i386.deb
/var/cache/apt/archives/libstdc++5_1%3a3.3.4-6sarge1.2_i386.deb

It might affect other packages too, such as g++-3.3.