GStreamer codecs can't install?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

GStreamer codecs can't install?

Post by logabe »

Heya! I'm trying to update through the update manager, but I keep getting this error:

Code: Select all

E: /tmp/apt-dpkg-install-3YmYXZ/26-libgstreamer-plugins-bad1.0-0_1%3a1.18.4-dmo4_amd64.deb: trying to overwrite '/usr/lib/x86_64-linux-gnu/libgstbasecamerabinsrc-1.0.so.0', which is also in package libgstreamer-plugins-good1.0-0:amd64 1.20.3-0ubuntu1
I can't watch some videos without this (which is bad because I'm an animator) so help would be much appreciated!
Last edited by LockBot on Sat Nov 25, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

Hey, I'm getting a message that these packages will be removed. Is this okay?

Code: Select all

cheese cinnamon cinnamon-control-center cinnamon-control-center-dbg
cinnamon-dbg evolution-data-server firefox gir1.2-webkit2-4.0 gir1.2-xreader
gnome-calendar gnome-online-accounts gnome-video-effects
gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gufw libcheese-gtk25
libcheese8 libedataserverui-1.2-3 libgoa-backend-1.0-1
libgstreamer-plugins-good1.0-0 libwebkit2gtk-4.0-37 libxreaderview3 libyelp0
metacity mint-meta-cinnamon mint-meta-core mintdrivers mintsystem muffin
muffin-dbg multimc nemo-preview orca protontricks rhythmbox
rhythmbox-plugin-tray-icon rhythmbox-plugins ubuntu-system-adjustments
xreader xreader-dbg yelp zenity
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

You run the main version of MInt, do you not?
Post your system specs so we won't have to speculate.

You tried to install a "foreign" package (dmo = Debian Multimedia repo! Pourquoi mon/ma cherie ?)
Gstreamer-plugins-bad is available in the ubuntu repos Linux Mint relies upon.
Remove the dmo package. Install the official one.

DO NOT remove all these packages printed in that message.
You'll wreck your cinnamon desktop.
Remove the offending package. Rerun update and make sure that message is gone!
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

I've removed libgstreamer-plugins-bad1.0-0, but I still have the issues I had before in terms of video playback. I can't play certain videos or they will be marked as corrupt.
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Install not a random package from the web but distro's ones. Open synaptic, search (name + description): "plugins-bad".

Image

or in a terminal

sudo apt install gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-0

Provided that you have not messed up your distro software sources, this would be enough.

Am not sure if the "bad" set is installed along with "multimedia codecs" at system installation or in the "Welcome Screen" app. I bet it does.

Also, vlc media player is quite versatile without any codecs installed system-wide.

You can retrieve codec information with the help of MediaInfo (deb or flatpak available in "Software Manager") or with command-line alternatives (ffprobe if you have ffmpeg installed, mediainfo from the command line, mkvinfo, mpv in verbose mode etc).
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

I tried running the command you posted, but I'm getting this error:

Code: Select all

The following packages have unmet dependencies:
 gstreamer1.0-plugins-bad : Depends: libchromaprint1 (>= 1:1.5.0) but it is not going to be installed
                            Depends: libfluidsynth2 (>= 2.0.5) but it is not installable
                            Depends: libssl1.1 (>= 1.1.0) but it is not installable
                            Depends: libwebp6 (>= 0.5.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Post the output of inxi -r. Your software sources may need some cleanup.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

There's a lot of things that I don't use anymore, I can removing those.

Code: Select all

Repos:
  Active apt repos in: /etc/apt/sources.list
    1: deb http://www.deb-multimedia.org stable main
  Active apt repos in: /etc/apt/sources.list.d/appimagelauncher-team-stable-jammy.list
    1: deb http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/bartbes-love-stable-jammy.list
    1: deb http://ppa.launchpad.net/bartbes/love-stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/element-io.list
    1: deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
    1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/kdenlive-kdenlive-stable-jammy.list
    1: deb http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/libretro-stable-jammy.list
    1: deb http://ppa.launchpad.net/libretro/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/mono-official-stable.list
    1: deb https://download.mono-project.com/repo/ubuntu stable-focal main
  Active apt repos in: /etc/apt/sources.list.d/mono-official-vs.list
    1: deb https://download.mono-project.com/repo/ubuntu vs-bionic main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vera main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/openrazer-stable-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/openrazer-stable-jammy.gpg] https://ppa.launchpadcontent.net/openrazer/stable/ubuntu jammy main
  No active apt repos in: /etc/apt/sources.list.d/openvpn3.list
  Active apt repos in: /etc/apt/sources.list.d/polychromatic-stable-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/polychromatic-stable-jammy.gpg] https://ppa.launchpadcontent.net/polychromatic/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/unityhub.list
    1: deb https://hub.unity3d.com/linux/repos/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Code: Select all

  Active apt repos in: /etc/apt/sources.list
      1: deb http://www.deb-multimedia.org stable main
Culprit is found.
This is an unofficial Debian repo incompatible with Mint/Ubuntu.

You can find an "app" called "Software Sources" in Mint Menu. Open it.
On the left side pick "Additional repositories".
Spot "debian multimedia" or something like that. Delete it (along with its "source" entry if any).
It will take some seconds to refresh your software sources. That's good. You need that.
Close the app. Retry any of the previously mentioned ways to install the gstreamer-plugin.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

Running sudo apt install gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-0 as suggested earlier returns

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libchromaprint1 : Depends: libavcodec58 (>= 7:4.4)
E: Unable to correct problems, you have held broken packages.
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Taking for granted that "rogue" repo is gone

apt list ~o

This command can least "foreign" packages installed in your system (anything not in your software sources is considered "obsolete" and that's what your command actually does, listing obsolete packages)
You probably still have leftovers from Debian Mutlimedia repo, for instance a libavcodec58 package installed from that source preventing installation of libavcodec58 from Ubuntu sources.
Caution! You want to get rid only of the packages with dmo in their name.

You definitely need to clean up your system. This situation could lead to broken media playback altogether far beyond the videos you cannot render correctly right now.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

I ran the command and removed the DMO packages (libvmaf1, libx264-164, opentoonz-data) and autoremoving unrequired packages, but it's still returning the same error messages.
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Post here the output of
apt policy libavcodec58*
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

Code: Select all

libavcodec58:
  Installed: (none)
  Candidate: 7:4.4.2-0ubuntu0.22.04.1
  Version table:
     7:4.4.2-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
     7:4.4.1-3ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

Somehow you haven't yet cleaned your system from the "orphaned" Debian-Mutimedia packages. At least I don't have another explanation.
You may try the regular methods to repair apt: sudo apt install -f, sudo apt update --fix-missing, sudo dpkg --configure -a etc. It's uncertain they can help in your case. Your software sources should be OK by now. You have orphaned packages installed that block proper resolving of dependencies for packages you want to install.

I have gstreamer-plugins-bad installed in my system. Libchromaprint is one of its dependencies. Executing apt depends libchromaprint1 to find dependencies for libcromaprint1:

Code: Select all

  Depends: libavcodec58
    libavcodec-extra58...
It depends either on libavcodec58 or libavcodec-extra58. Latter is installed in my system and not the former. So try sudo apt install libavcodec-extra58 before installing gstreamer plugins.

If that fails, try to install or force re-installation of the mint codecs meta-package. The way those packages landed into my system I suppose. Perhaps there is some hidden magic in that meta-package.
sudo apt install mint-meta-codecs or sudo apt reinstall mint-meta-codecs.
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

I've tried all these things and more, but nothing seems to work.

Running sudo apt install libavcodec-extra58 returns:

Code: Select all

The following packages have unmet dependencies:
 libavcodec-extra58 : Depends: libavutil56 (= 7:4.4.2-0ubuntu0.22.04.1) but 10:4.4.4-dmo0+deb11u1 is to be installed
                      Depends: libswresample3 (= 7:4.4.2-0ubuntu0.22.04.1) but 10:4.4.4-dmo0+deb11u1 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt install mint-meta-codecs returns

Code: Select all

The following packages have unmet dependencies:
 gstreamer1.0-libav : Depends: libavcodec58 (>= 7:4.4)
                      Depends: libavfilter7 (>= 7:4.4)
                      Depends: libavformat58 (>= 7:4.4)
 libavcodec-extra : Depends: libavcodec-extra58 (= 7:4.4.2-0ubuntu0.22.04.1) but it is not installable
 libchromaprint1 : Depends: libavcodec58 (>= 7:4.4)
E: Unable to correct problems, you have held broken packages.
sudo apt reinstall mint-meta-codecs returns

Code: Select all

mint-meta-codecs is not currently installed, so it will not be reinstalled
mint-meta-codecs is not currently installed, so it will not be reinstalled
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
I'm at my wits ends as to what to do.
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

10:4.4.4-dmo0+deb11u1 is to be installed
This tell us that you haven't removed "Deb Multimedia" repo yet or you haven't at least done so successfully.
dmo=debian multimedia deb11u1=debian11
Mint shares a lot of code with Debian via Ubuntu but it is not Debian.
As I can see it now, I gave you inaccurate advice about how to remove that incompatible repo
and you are not very familiar with repo management to send me proper feedback.
Let's try again.

1. xed admin:///etc/apt/sources.list
Delete "deb http://www.deb-multimedia.org stable main". Leave this textfile blank. Save. Close.

2. sudo apt update

3. Retry to install mint codecs
sudo apt install mint-meta-codecs

Fingers crossed
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

Running the first command gives me a console warning that the specified location is mounted, but xed loads anyway.

Code: Select all

#deb cdrom:[Linux Mint 21 _Vanessa_ - Release amd64 20220726]/ jammy main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
Do I remove the deb cdrom line?
User avatar
MiZoG
Level 8
Level 8
Posts: 2348
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GStreamer codecs can't install?

Post by MiZoG »

You can but no need to touch that line. It is commented / disabled.
Or any line.
Deb multimedia is not there. Or did you find it and remove it?

if you did not, paste the output of
ls /etc/apt/sources.list.d
logabe
Level 1
Level 1
Posts: 21
Joined: Thu Nov 24, 2022 1:54 am

Re: GStreamer codecs can't install?

Post by logabe »

Code: Select all

appimagelauncher-team-stable-jammy.list  mono-official-stable.list
bartbes-love-stable-jammy.list           mono-official-vs.list
google-chrome.list                       official-package-repositories.list
google-earth-pro.list                    openvpn3.list
kdenlive-kdenlive-stable-jammy.list      unityhub.list
libretro-stable-jammy.list               vscode.list
I might have removed it from this post?
MiZoG wrote: Wed May 31, 2023 11:05 pm

Code: Select all

  Active apt repos in: /etc/apt/sources.list
      1: deb http://www.deb-multimedia.org stable main
Culprit is found.
This is an unofficial Debian repo incompatible with Mint/Ubuntu.

You can find an "app" called "Software Sources" in Mint Menu. Open it.
On the left side pick "Additional repositories".
Spot "debian multimedia" or something like that. Delete it (along with its "source" entry if any).
It will take some seconds to refresh your software sources. That's good. You need that.
Close the app. Retry any of the previously mentioned ways to install the gstreamer-plugin.
Locked

Return to “Software & Applications”