The Lumber Room

"Consign them to dust and damp by way of preserving them"

Posts Tagged ‘apt-get

dpkg error: trying to overwrite X, which is also in package Y

with 20 comments

For an error like this:

dpkg: error processing /var/cache/apt/archives/AAA (--unpack):
trying to overwrite `/usr/lib/BBB', which is also in package CCC
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
AAA
E: Sub-process /usr/bin/dpkg returned an error code (1)

(where AAA,BBB,CCC are placeholder names, in case it wasn’t clear)
do

sudo dpkg -i --force-overwrite AAA

(give full path of AAA), and then run

sudo apt-get -f install

again.

Written by S

Sun, 2006-04-16 at 10:51:00

Posted in compknow

Tagged with , , , ,