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

Archived topics about LMDE 1 and LMDE 2
Locked
ozgta

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

Post by ozgta »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10405
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

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

Post by Oscar799 »

Moved here from the main forum
Image
viking777

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

Post by viking777 »

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

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

Post by Anakinholland »

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
ozgta

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

Post by ozgta »

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
zerozero

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

Post by zerozero »

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

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

Post by ozgta »

Perfect!
Many thanks zerozero
Locked

Return to “LMDE Archive”