Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

KDE - Bullseye - Issues after update with old dependencies

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

KDE - Bullseye - Issues after update with old dependencies

#1 Post by anmime »

Hi, although I got a quite traumatic experience after updating into Bullseye. I could got rid over all major issues, but I still got some mistakes that I can't get rid off.

This particular issue is located at libavcodec58. When I try to install some packages like winehq-stable, ffmpeg, ... I got unfulfilled dependencies error like this:

Code: Select all

root@vault:/var/lib/dpkg# apt install ffmpeg
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 ffmpeg : Depende: libavcodec58 (= 7:4.3.2-0+deb11u2)[
          Depende: libavdevice58 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libavfilter7 (= 7:4.3.2-0+deb11u2)
          Depende: libavformat58 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libavresample4 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libavutil56 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libpostproc55 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libswresample3 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
          Depende: libswscale5 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.



I get noticed over this:

ffmpeg : Depende: libavcodec58 (= 7:4.3.2-0+deb11u2)[
Depende: libavdevice58 (= 7:4.3.2-0+deb11u2) pero 10:4.1.6-dmo1+deb10u1 va a ser instalado



If a run command apt-cache showpkg libavcodec58 y could check that I got deb11 bullseye version abailable in repository , but also still deb10 versions at /var/lib/dpkg/status.

Code: Select all

root@vault:/etc/apt/sources.list.d# apt-cache showpkg libavcodec58 
Package: libavcodec58
Versions: 
10:4.1.6-dmo1+deb10u1 (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/dpkg/status
                  MD5: a9372c706b20a8dc28728517068d88c6

7:4.3.2-0+deb11u2 (/var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages) (/var/lib/apt/lists/ftp.es.debian.org_debian_dists_bullseye_main_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages
                  MD5: b6405aed870af39811ea887203c50393
 Description Language: 
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-i386_Packages
                  MD5: b6405aed870af39811ea887203c50393
 Description Language: en
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_i18n_Translation-en
                  MD5: b6405aed870af39811ea887203c50393


I'm trying to avoid libavcodec deletion because It's a so basic package that apt ask me to remove almost all related with desktop and some more things.

¿Can anyone help me to know how to force apt/dpkg to set and update right version of sources? ¿Is there a way to set all other dependencies in this situation?

TY

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: KDE - Bullseye - Issues after update with old dependencies

#2 Post by sunrat »

See that "dmo" in the package name? That means the package is from Deb Multimedia, an unofficial third party repo which is notorious for creating dependency problems like this. That prefix "10" in the dmo one causes it to be the preferred version when it is actually older than the Debian one.
Remove deb-multimedia.org from your sources then force install the version from the official Debian repo. You may need to uninstall any other packages you have from the deb-multimedia repo as well.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

Re: KDE - Bullseye - Issues after update with old dependencies

#3 Post by anmime »

Hi sunrat, thank you for your helpfull explanations.

I checked my sources.list but no reference to deb-multimedia exists inside debian 11 lists, the only references were in disabled lists, and /var/lib/dpkg/status. I guess it remains in status because older installation, and remains there because higher dmo.

The way I found to "bulk set" the right packages was force repository priory, pinning packages adding this rule in a new custom file at /etc/apt/preferences.d/myfile.pref

Code: Select all

Package: *
Pin: release a=stable
Pin-Priority: 1001
When I tried to install ffmpeg this time, the dependencies could be all satisfied, and older packages get updated.

After all got updated, I disable my custom rule.

Still find some dependency errors when I install wine-stable, but is different case.

Cheers

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: KDE - Bullseye - Issues after update with old dependencies

#4 Post by sunrat »

Where did you get wine-stable from? There is no package in Bullseye repo by that name. I use the WineHQ version but that is called winehq-stable and is problem-free here. Do you still have other non-Debian repos active? That can cause exactly those problems. Please post output of

Code: Select all

apt policy
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

Re: KDE - Bullseye - Issues after update with old dependencies

#5 Post by anmime »

Yes, I have some other repos like teamviewer, nvidia-drivers ,skype , brave-browser... But I don't think that was the cause.

this is the result of apt-policy

Code: Select all

 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/debian bullseye/main all Packages
     release o=dl.winehq.org,a=stable,n=bullseye,l=winehq,c=main,b=all
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bullseye/main i386 Packages
     release o=dl.winehq.org,a=stable,n=bullseye,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bullseye/main amd64 Packages
     release o=dl.winehq.org,a=stable,n=bullseye,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 500 http://download.virtualbox.org/virtualbox/debian bullseye/contrib amd64 Packages
     release o=Oracle Corporation,n=bullseye,l=Oracle Corporation,c=contrib,b=amd64
     origin download.virtualbox.org
 500 http://linux.teamviewer.com/deb stable/main i386 Packages
     release o=TeamViewer GmbH,a=stable,l=TeamViewer,c=main,b=i386
     origin linux.teamviewer.com
 500 http://linux.teamviewer.com/deb stable/main amd64 Packages
     release o=TeamViewer GmbH,a=stable,l=TeamViewer,c=main,b=amd64
     origin linux.teamviewer.com
 500 https://repo.skype.com/deb stable/main amd64 Packages
     release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
     origin repo.skype.com
 500 http://ftp.es.debian.org/debian bullseye/non-free i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=i386
     origin ftp.es.debian.org
 500 http://ftp.es.debian.org/debian bullseye/non-free amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=amd64
     origin ftp.es.debian.org
 500 http://ftp.es.debian.org/debian bullseye/contrib i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=i386
     origin ftp.es.debian.org
 500 http://ftp.es.debian.org/debian bullseye/contrib amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=amd64
     origin ftp.es.debian.org
 500 http://ftp.es.debian.org/debian bullseye/main i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=i386
     origin ftp.es.debian.org
 500 http://ftp.es.debian.org/debian bullseye/main amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=amd64
     origin ftp.es.debian.org
 500 https://deb.nodesource.com/node_9.x buster/main i386 Packages
     release o=Node Source,n=buster,l=Node Source,c=main,b=i386
     origin deb.nodesource.com
 500 https://deb.nodesource.com/node_9.x buster/main amd64 Packages
     release o=Node Source,n=buster,l=Node Source,c=main,b=amd64
     origin deb.nodesource.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 http://ppa.launchpad.net/dlech/keepass2-plugins/ubuntu zesty/main i386 Packages
     release v=17.04,o=LP-PPA-dlech-keepass2-plugins,a=zesty,n=zesty,l=Plugins for KeePass 2.x,c=main,b=i386
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/dlech/keepass2-plugins/ubuntu zesty/main amd64 Packages
     release v=17.04,o=LP-PPA-dlech-keepass2-plugins,a=zesty,n=zesty,l=Plugins for KeePass 2.x,c=main,b=amd64
     origin ppa.launchpad.net
 500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     release o=Brave Software,a=stable,n=stable,l=Brave Browser,c=main,b=amd64
     origin brave-browser-apt-release.s3.brave.com
 500 http://deb.debian.org/debian bullseye-proposed-updates/main i386 Packages
     release v=11-updates,o=Debian,a=proposed-updates,n=bullseye-proposed-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-proposed-updates/main amd64 Packages
     release v=11-updates,o=Debian,a=proposed-updates,n=bullseye-proposed-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-proposed-updates/contrib i386 Packages
     release v=11-updates,o=Debian,a=proposed-updates,n=bullseye-proposed-updates,l=Debian,c=contrib,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-proposed-updates/contrib amd64 Packages
     release v=11-updates,o=Debian,a=proposed-updates,n=bullseye-proposed-updates,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://security.debian.org bullseye-security/main i386 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://security.debian.org bullseye-security/main amd64 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://deb.debian.org/debian bullseye-updates/main i386 Packages
     release v=11-updates,o=Debian,a=stable-updates,n=bullseye-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye-updates/main amd64 Packages
     release v=11-updates,o=Debian,a=stable-updates,n=bullseye-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian-security bullseye-security/main i386 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/non-free i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/non-free amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/contrib amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main i386 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian bullseye/main amd64 Packages
     release v=11.0,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=amd64
     origin deb.debian.org
This is the "apt install wine-stable" output

Code: Select all

root@vault:/etc/apt/sources.list.d# apt install wine-stable
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 libcurl3-gnutls : Depende: librtmp1 (>= 2.4+20131018.git79459a2-3~) pero no es instalable
 libcurl4 : Depende: librtmp1 (>= 2.4+20131018.git79459a2-3~) pero no es instalable
E: Error, pkgProblemResolver::Resolve generó cortes, esto puede deberse a paquetes retenidos.


seeker5528
Posts: 61
Joined: 2021-09-18 00:37
Been thanked: 2 times

Re: KDE - Bullseye - Issues after update with old dependencies

#6 Post by seeker5528 »

All the dependencies of ffmpeg are the different parts of ffmpeg that have been split into different packages, so they all have to be the deb-multimedia version or the Debian version.

The easy solution is to install the deb-multimedia version. Switching back to the Debian version is probably something that is considered 'not for the feint of heart'. You can try to force the downgrade and see what wants to be removed.

If you have deb-multimedia in your sources.list you may need to edit the entry for it to get the bullseye versions of the packages. If you have a separate file in /etc/apt/sources.list.d/ then you would have to edit that file, and it may have got renamed during the upgrade, so you may have to rename it. Not 100% sure, but I think the files in /etc/apt/sources.list.d/ need to have a .conf extension, but that was not necessary for pinning files, so maybe not.

If you have to go the purge, download, install route....

I just went through the purging of these things so I could install the Debian packages. If I cat the pinning file I created for deb-multimedia this is what it looks like.

Code: Select all

cat /etc/apt/preferences.d/99-deb-multimedia 
Package: *
Pin: origin deb-multimedia.org
Pin-Priority: 450
Just to make things easier if you do 'su -' to log in as root you want to create a directory in your root home directory for the file downloads.
If you use 'sudo command argument' to do these things you want to create a directory in your user home directory for the downloaded files.

Then cd into that directory.

Over the course of doing this I did discover that if I do

Code: Select all

dpkg --purge packag1 package2 etc...
tab completion works, but if I do

Code: Select all

dpkg --purge --force-depends package1 package2 etc...
tab completion doesn't work. so I ended up using the 'dpkg --purge' so I could use tab completion to help fill in the list of packges, then used the left arrow key to get to the beginning of the list of packages to make the command/options part of the line 'dpkg --purge --force-depends' before hitting the enter key.

To download the Debian versions you can use the up arrow to get back to the dpkg command you just ran, then left arrow over to the beginning of the list of packages, use backspace to get rid of everything else, if are using sudo you can get rid of that too, elevated permission are not required for apt download, you want the command to look like

Code: Select all

apt download package1 package2 etc...
This will download the packages to the current directory and you can do

Code: Select all

dpkg -i *
If you get messages about things being left unconfigured, then you will have to review those to see what other packages may be needed that you might have to purge, download and install along with the packages that were left unconfigured. Unless you missed a package when you were purging and downloading the ffmpeg packages I don't think this will be an issue, but there could be some other stuff.

Once everything installs without getting any error messages, then do

Code: Select all

apt -f install
to see if it wants to install or remove anything. Hopefully not a big list of removals and only wanting to remove stuff that was installed from deb-multimedia.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: KDE - Bullseye - Issues after update with old dependencies

#7 Post by sunrat »

seeker5528 wrote: 2021-09-26 20:19The easy solution is to install the deb-multimedia version. Switching back to the Debian version is probably something that is considered 'not for the feint of heart'. You can try to force the downgrade and see what wants to be removed.

If you have deb-multimedia in your sources.list you may need to edit the entry for it to get the bullseye versions of the packages. If you have a separate file in /etc/apt/sources.list.d/ then you would have to edit that file, and it may have got renamed during the upgrade, so you may have to rename it. Not 100% sure, but I think the files in /etc/apt/sources.list.d/ need to have a .conf extension, but that was not necessary for pinning files, so maybe not.
/etc/apt/sources.list.d/ is for sources and they require a ".list" extension. Please check facts before posting. Preferences files go in /etc/apt/preferences.d/ and don't need an extension at all.

Code: Select all

cat /etc/apt/preferences.d/99-deb-multimedia 
Package: *
Pin: origin deb-multimedia.org
Pin-Priority: 450
I would never put dmo in sources. Or at best pin it to -1. With pin 450 it will still install a higher epoch as in this case with the "10" prefix even though the actual package is older, and cause dependency issues. There are no packages in dmo required for normal use. libdvdcss from there may be needed to play DRM protected DVDs, but the safe way to install is just download the package and install locally with apt or gdebi.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: KDE - Bullseye - Issues after update with old dependencies

#8 Post by arzgi »

Curios tha dmo stil exists. Don't use it.

seeker5528
Posts: 61
Joined: 2021-09-18 00:37
Been thanked: 2 times

Re: KDE - Bullseye - Issues after update with old dependencies

#9 Post by seeker5528 »

sunrat wrote: 2021-09-26 23:39 I would never put dmo in sources. Or at best pin it to -1. With pin 450 it will still install a higher epoch as in this case with the "10" prefix even though the actual package is older, and cause dependency issues. There are no packages in dmo required for normal use. libdvdcss from there may be needed to play DRM protected DVDs, but the safe way to install is just download the package and install locally with apt or gdebi.
Is that how it is supposed to work?

The behavior I'm seeing with deb-multimedia at pin priority 450 the Debian version of everything gets installed regardless of version, unless something being installed from deb-multimedia has a version specific dependency. Things installed from deb-multimedia continue to be updated from deb-multimedia if they are available in both.

From deb-multimedia

Package: audacious
Version: 1:4.1-dmo2

From Debian

Package: audacious
Version: 4.0.5-1

After purging all the Audacious packages 'apt show audacious' shows me only the Debian version unless I use -a to see all available versions and when I install it the Debian version gets installed.

anmime
Posts: 7
Joined: 2021-06-04 16:39
Been thanked: 1 time

Re: KDE - Bullseye - Issues after update with old dependencies

#10 Post by anmime »

I come back just to say "thank you" to all respones and all effort that people puts in this forum. I'm sure it helps to keep the "freedom" who inhabits inside this amazing operating system.

I was running this set up since Jessie release and It works like a charm almost all the time. Actually I found today that is "cheaper" to me (in time) to cleanse the system that get rid over all package dependencie issues, on the way I will put out tons of obsolete configuration files, etc... It's time to new fresh install.

Sooo thank you and keep on!

Post Reply