Apt-get upgrade blocked by gstreamer1.0-plugins-bad

Dear all,

i can’t get apt-get upgrade working, because it complains about unmet dependencies with regard to gstreamer1.0-plugins-bad.

This is what I get as an output:

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
 libspice-client-glib-2.0-8 : Depends: gstreamer1.0-plugins-bad but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

What ever I do, I can’t get it to work. I can’t even remove and purge packages, because it will always complain about the gstreamer1.0-plugins-bad package.

I’ve seen there a recent post that mentions this problem, but not a solution.

The real problem is that I auto-removed some packages which made the “System Settings”-icon disappear, so it looks I erased the gnome-control-center (I did this already once, but was able to reinstall it).

Being not too familiar with apt-get, is there anything I can do (except wait till the problmes somehow resoves by itself)?

1 Like

Just to be sure: have you tried the suggested “apt --fix-broken install”? If so, what was the output?

1 Like

Yes, I tried this - it tries to install gstreamer1.0-plugins-bad, which seems to be the source of the problem:

sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  gstreamer1.0-plugins-bad
Suggested packages:
  frei0r-plugins
The following NEW packages will be installed:
  gstreamer1.0-plugins-bad
0 upgraded, 1 newly installed, 0 to remove and 142 not upgraded.
48 not fully installed or removed.
Need to get 0 B/2,940 kB of archives.
After this operation, 7,363 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 312827 files and directories currently installed.)
Preparing to unpack .../gstreamer1.0-plugins-bad_1%3a1.10.4-dmo2_amd64.deb ...
Unpacking gstreamer1.0-plugins-bad:amd64 (1:1.10.4-dmo2) ...
dpkg: error processing archive /var/cache/apt/archives/gstreamer1.0-plugins-bad_1%3a1.10.4-dmo2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrawparse.so', which is also in package gstreamer1.0-plugins-base:amd64 1.12.1-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gstreamer1.0-plugins-bad_1%3a1.10.4-dmo2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is " apt-get --fix-broken install" supposed to do? I think I have encountered it before, but it never really helped to solve my package problems.

I remember I had the same problem, but can’t remember how I’ve solved it. I thought that command will fox things.

Have you issued sudo apt update before trying an upgrade?

Yes, this runs without problems:

sudo apt update
Hit:1 http://repo.puri.sm/pureos green InRelease
Hit:2 http://www.deb-multimedia.org stretch InRelease                          
Hit:4 https://repo.skype.com/deb stable InRelease                              
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease                
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release                  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
146 packages can be upgraded. Run 'apt list --upgradable' to see them.

I have some additional URLs in my /etc/apt/sources.list (I needed those to install some non-free packages, maybe there’s the problem):

deb http://repo.puri.sm/pureos/ green main
deb-src http://repo.puri.sm/pureos/ green main
deb http://httpredir.debian.org/debian stretch main contrib non-free
deb http://www.deb-multimedia.org stretch main non-free

(but my “gstreamer1.0-plugins-bad”-problem persists even if I remove the non-free URLs).

Try with this, please:

Remove everything from /etc/apt/sources, leave only deb http://repo.puri.sm/pureos/ green main.

Then sudo apt update, then sudo apt upgrade.

There’s your error, you are trying to install older package. Remove all sources except for the PureOS’, then run:

sudo apt clean && sudo apt update && sudo apt full-upgrade

1 Like

OK,

thanks - this seems to work. I have modified my /etc/apt/sources.list -file to keep only the PureOS stuff:

deb http://repo.puri.sm/pureos/ green main
deb-src http://repo.puri.sm/pureos/ green main

Then I tried your suggestion, and at first it didn’t work:

# sudo apt clean
# sudo apt update
Get:1 http://repo.puri.sm/pureos green InRelease [10.5 kB]
Get:2 http://repo.puri.sm/pureos green/main Sources [5,341 kB]      
Hit:3 https://repo.skype.com/deb stable InRelease                             
Get:4 http://repo.puri.sm/pureos green/main amd64 Packages [6,243 kB]         
Get:5 http://repo.puri.sm/pureos green/main Translation-en [5,557 kB]
Get:6 http://repo.puri.sm/pureos green/main amd64 DEP-11 Metadata [1,955 kB]
Get:7 http://repo.puri.sm/pureos green/main DEP-11 64x64 Icons [7,033 kB]      
Fetched 26.1 MB in 8s (3,201 kB/s)                                             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
157 packages can be upgraded. Run 'apt list --upgradable' to see them.
# sudo apt full-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libspice-client-glib-2.0-8 : Depends: gstreamer1.0-plugins-bad but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

So I needed to do ‘apt --fix-broken install’, which removed the troublesome packages, and then

# sudo apt clean && sudo apt update && sudo apt full-upgrade

ran through without errors (re-installing probably a lot of packages).

I get some warnings at the end:

Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.12.0-trunk-amd64
W: Possible missing firmware /lib/firmware/i915/bxt_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_26.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6_1.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_ver02_00_1810.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_07_1398.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_huc_ver01_07_1398.bin for module i915

But those were there also before. Don’t think they are problematic.

But now, to install gnome-control-center (which I think I need to get my system settings-icon back) it asks for libcheese8, which asks for gstreamer1.0-plugins-bad (>= 1.4), which asks for
libgstreamer-plugins-bad1.0-0 (= 1.12.2-1) but 1:1.10.4-dmo2 is to be installed

Why would it want to install an old version?

Anyway, I did give the requested version explicitely:

sudo apt-get install libgstreamer-plugins-bad1.0-0=1.12.2-1

and that allowed me to install gnome-control-center, and voila - my system settings are back!

Thanks Mladen!

1 Like