[SOLVED] apt-get upgrade && apt-get dist-upgrade error

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

[SOLVED] apt-get upgrade && apt-get dist-upgrade error

Postby ozgta on Sat Nov 26, 2011 4:29 am

Hi,
A new install of LMBE followed by # apt-get update && apt-get dist-upgrade
finishes with this error

Code: Select all
E: /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_i386.deb: trying to overwrite '/usr/lib/gstreamer-0.10/libgstxvid.so', which is also in package gstreamer0.10-plugins-really-bad 0.10.22-0.1


How do I fix this?
Last edited by ozgta on Sat Nov 26, 2011 8:25 pm, edited 1 time in total.
ozgta
Level 1
Level 1
 
Posts: 31
Joined: Thu May 26, 2011 5:34 am

Linux Mint is funded by ads and donations.
 

Re: apt-get upgrade && apt-get dist-upgrade error

Postby Oscar799 on Sat Nov 26, 2011 7:17 am

Moved here from the main forum
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8942
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: apt-get upgrade && apt-get dist-upgrade error

Postby viking777 on Sat Nov 26, 2011 7:27 am

Uninstall "really-bad" then run the updates again.

I only have "bad" installed and I don't notice any difference.

Once you are fully up to date you could always try and reinstall "really-bad" if you feel the need.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: apt-get upgrade && apt-get dist-upgrade error

Postby Anakinholland on Sat Nov 26, 2011 7:36 am

Hi ozgta,

I found this topic, which possibly holds this solution:

Code: Select all
cd /var/cache/apt/archives
dpkg -i --force-overwrite <<all_package_names_listed_at_the_bottom_of_error_output>>
dpkg --configure -a

Replace "<<all_package_names_listed_at_the_bottom_of_error_output>>" with the package name that comes after "Errors were encountered while processing:". You may have to repeat the process a couple of times.

The explanation is in the same topic, but I'll paste it here for good order:

It forces the overwriting of a file that exists in another package(s) due to a packaging error. A file should only exist in one package at a time and every now and again someone makes a mistake and includes it two or more packages, therefore you need to use the --force-overwrite to get by it and install the new package(s).

Cheers,

Anakin

Edit: Viking's solution will most likely work as well, but it's a work-around :P
Please Edit your initial post title and add [SOLVED] once your question is resolved.
User avatar
Anakinholland
Level 3
Level 3
 
Posts: 145
Joined: Sun Oct 30, 2011 8:09 am

Re: apt-get upgrade && apt-get dist-upgrade error

Postby ozgta on Sat Nov 26, 2011 5:02 pm

Tried:
cd /var/cache/apt/archives
dpkg -i --force-overwrite <<all_package_names_listed_at_the_bottom_of_error_output>>
dpkg --configure -a


returns:
Code: Select all
dbmt nigel # cd /var/cache/apt/archives
dbmt archives # dpkg -i --force-overwrite <<gstreamer0.10-plugins-bad_0.10.22-3_i386.deb>>
>


Not sure if this the expected result as it didn't then allow me to run 'dpkg --configure -a'

So I uninstalled 'gstreamer0.10-plugins-bad_0.10.22-3_i386.deb' and running # apt-get update && apt-get dist-upgrade however I ended up with the same error message.
The original message mentions this package is also in 'gstreamer0.10-plugins-really-bad 0.10.22-0.1' I don't know if this has to be uninstalled also.

Code: Select all
E: /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_i386.deb: trying to overwrite '/usr/lib/gstreamer-0.10/libgstxvid.so', which is also in package gstreamer0.10-plugins-really-bad 0.10.22-0.1
ozgta
Level 1
Level 1
 
Posts: 31
Joined: Thu May 26, 2011 5:34 am

Re: apt-get upgrade && apt-get dist-upgrade error

Postby zerozero on Sat Nov 26, 2011 5:33 pm

ozgta,
after the update/dist-upgrade (when you get that error) try this:

Code: Select all
sudo dpkg -i --force-overwrite /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_i386.deb

and then run dist-upgrade again;
report back.
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: apt-get upgrade && apt-get dist-upgrade error

Postby ozgta on Sat Nov 26, 2011 8:24 pm

Perfect!
Many thanks zerozero
ozgta
Level 1
Level 1
 
Posts: 31
Joined: Thu May 26, 2011 5:34 am

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 3 guests