"Unmet dependencies" after linuxmmint 19 to 19.1 upgrade <SOLVED>

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.
Locked
artik
Level 1
Level 1
Posts: 44
Joined: Sat Feb 23, 2013 9:13 am

"Unmet dependencies" after linuxmmint 19 to 19.1 upgrade <SOLVED>

Post by artik »

Hi, since the upgrade of Linuxmint 19 to 19.1, I'm facing an issue. When I try to install winehq-staging, I have this error message:

Code: Select all

The following packages have unmet dependencies:
 winehq-staging : Depends: wine-staging (= 4.0~rc2~cosmic)
E: Unable to correct problems, you have held broken packages.
I tried to remove all keys/repository, and from stratch:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-staging
But same result. then I tried using aptitude:

Code: Select all

sudo aptitude -f install winehq-staging

Code: Select all

The following packages have unmet dependencies:
 wine-staging-i386:i386 : Depends: libavcodec58:i386 (>= 7:4.0) which is a virtual package and is not provided by any available package

                          Depends: libavutil56:i386 (>= 7:4.0) which is a virtual package and is not provided by any available package

                          Depends: libc6:i386 (>= 2.28) but 2.27-3ubuntu1 is installed
                          Depends: libvkd3d1:i386 which is a virtual package and is not provided by any available package

 wine-staging-amd64 : Depends: libavcodec58 (>= 7:4.0) which is a virtual package and is not provided by any available package

                      Depends: libavutil56 (>= 7:4.0) which is a virtual package and is not provided by any available package

                      Depends: libvkd3d1 which is a virtual package and is not provided by any available package

The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     wine-staging [Not Installed]                       
2)     wine-staging-amd64 [Not Installed]                 
3)     wine-staging-i386:i386 [Not Installed]             
4)     winehq-staging [Not Installed]                     



Accept this solution? [Y/n/q/?] 
I'm trying to accept, but nothing change:

Code: Select all

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
artik ~ 
Using synaptic, the box becomes red and if I try to apply:

Code: Select all

Could not apply changes!
Fix broken packages first
I also tried to install wine-staging:

Code: Select all

The following packages have unmet dependencies:
 wine-staging : Depends: wine-staging-amd64 (= 4.0~rc2~cosmic) but it is not going to be installed
                Depends: wine-staging-i386 (= 4.0~rc2~cosmic)
E: Unable to correct problems, you have held broken packages.
sudo apt-get install wine-staging-amd64 :

Code: Select all

The following packages have unmet dependencies:
 wine-staging-amd64 : Depends: libavcodec58 (>= 7:4.0) but it is not installable
                      Depends: libavutil56 (>= 7:4.0) but it is not installable
                      Depends: libvkd3d1 but it is not installable
E: Unable to correct problems, you have held broken packages.
I tried to clean all cache, etc etc:

Code: Select all

sudo apt-get clean
sudo apt-get autoclean && apt-get clear cache
sudo dpkg –configure -a
sudo apt-get install -f
sudo apt-get dist-upgrade
and to change the repository source, trying another one, same result.

Code: Select all

"cat /etc/apt/sources.list.d/official-package-repositories.list" returns:

deb http://packages.linuxmint.com tessa main upstream import backport 

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
All help is welcome
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by xenopeek »

Another member looks to also have such errors about libavcodec packages after adding wine repository: viewtopic.php?f=90&t=283958. Just linking the topics.

gm10 made this recommendation on another topic about the same issue: viewtopic.php?f=47&t=283950&p=1568803#p1568803
Image
gm10

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by gm10 »

You added the wrong repository, that wine version you are trying to install is incompatible with LM19, it was created for Ubuntu 18.10. Remove what you added and do it right this time, or just go with the version from the official Mint repos.

Take note of my post in viewtopic.php?f=47&t=283950 though, it seems winehq-staging has bad packaging, anyway.
artik
Level 1
Level 1
Posts: 44
Joined: Sat Feb 23, 2013 9:13 am

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by artik »

I forgot to mentioned that I tried the repository cosmic:

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'

I updated/upgraded my cache, same error:

Code: Select all

apt install winehq-staging --install-recommends
Reading package lists... Done
Building dependency tree       
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:
 winehq-staging : Depends: wine-staging (= 4.0~rc2~cosmic)
E: Unable to correct problems, you have held broken packages.
I tried

Code: Select all

apt install winehq-staging libavcodec-extra57:i386 --install-recommends
Same error. So I tried only the libavcodec-extra57:i386

Code: Select all

apt install libavcodec-extra57:i386 --install-recommends
It installed many things, then tried again wine-staging, same error.
gm10

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by gm10 »

artik wrote: Fri Dec 21, 2018 12:18 pm I forgot to mentioned that I tried the repository cosmic:
I won't stand in the way of you breaking your system but LM19 is based on bionic so that's what you got to install.
alicuk
Level 2
Level 2
Posts: 82
Joined: Fri Mar 31, 2017 3:56 am

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by alicuk »

If you added the "cosmic" repository, you can change this by going to:

Code: Select all

cd /etc/apt/sources.list.d
sudo nano additional-repositories.list
and if you see this line:

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main
change it to:

Code: Select all

deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
Then sudo apt update.... and see if the installation works
artik
Level 1
Level 1
Posts: 44
Joined: Sat Feb 23, 2013 9:13 am

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by artik »

Found it... and fixed! thanks alicuk, you pointed the issue.

Code: Select all

cd /etc/apt/sources.list.d
edited the file

Code: Select all

sudo subl additional-repositories.list
I removed the line:

Code: Select all

deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./
then normal procedure:

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-staging
and fixed!

Thanks all for help :)
alicuk
Level 2
Level 2
Posts: 82
Joined: Fri Mar 31, 2017 3:56 am

Re: "Unmet dependencies" after linuxmmint 19 to 19.1 upgrade <SOLVED>

Post by alicuk »

:)
Locked

Return to “Software & Applications”