dpkg error: trying to overwrite X, which is also in package Y
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.
This actually needs a double dash, e.g. –force-overwrite, not a single dash.
Otherwise, thanks for solving my problem :)
Ed Greenberg
Sun, 2006-12-03 at 13:25:02 -04:00
Thanks for pointing it out; I hadn’t noticed it. I did have two in the source, but WordPress converted it to “–”. If you notice, the same thing happened in your comment :-)
Teaches me that <tt> tags are not a substitute for <pre>
shreevatsa
Sun, 2006-12-03 at 17:17:54 -04:00
Thanks! big help :)
tim
Thu, 2008-05-29 at 21:35:09 -04:00
Thanks! It just saved me to get my linux workspace back, after hours of wrestling with ttys. :P
Evandro Myller
Sun, 2009-08-23 at 19:05:32 -04:00
This saved me. Thanks so much!
ormris
Mon, 2009-08-31 at 17:15:37 -04:00
Thank you! I was saved too! :):):)
icegood
Wed, 2009-09-09 at 09:19:39 -04:00