Sunday, August 2, 2009

Overcoming Debian Conflicts

Perhaps you're running Debian, and there's a new package being introduced which includes a file in another package, the result of which is an error message something like this:
Preconfiguring packages ...
(Reading database ... 181842 files and directories currently installed.)
Preparing to replace libc6-dev 2.9-20 (using .../libc6-dev_2.9-23_i386.deb) ...
Unpacking replacement libc6-dev ...
dpkg: error processing /data/html/debian/debian/pool/main/e/eglibc/libc6-dev_2.9-23_i386.deb (--unpack):
trying to overwrite `/usr/include/scsi/scsi.h', which is also in package linux-libc-dev
dpkg-deb: subprocess paste killed by signal (Broken pipe)
One way to fix this is to go away and do something else until someone sorts this out in the repository. However, if you're in a rush, and if you trust the conflict is an innocuous one (like above, I mean, who cares about scsi.h anyway?), you can force the install like so:
dpkg --force-all -i /data/html/debian/debian/pool/main/e/eglibc/libc6-dev_2.9-23_i386.deb
This gets you by the conflict, and should allow apt-get dist-upgrade to work.

No comments:

Blog Archive