The Lumber Room

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

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

with 6 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 Shreevatsa

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

Posted in compknow

Tagged with , , , ,

6 Responses

Subscribe to comments with RSS.

  1. 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

  2. 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

  3. Thanks! big help :)

    tim

    Thu, 2008-05-29 at 21:35:09 -04:00

  4. 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

  5. This saved me. Thanks so much!

    ormris

    Mon, 2009-08-31 at 17:15:37 -04:00

  6. Thank you! I was saved too! :):):)

    icegood

    Wed, 2009-09-09 at 09:19:39 -04:00


Leave a Reply