"Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Questions about Wine on Linux
Post Reply
artik
Level 2
Level 2
Posts: 10
Joined: Sun Mar 15, 2015 6:32 am

"Unmet dependencies" after linuxmmint 19 to 19.1 upgrade

Post by artik » Fri Dec 21, 2018 10:53 am

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

jkfloris
Level 6
Level 6
Posts: 660
Joined: Thu Aug 14, 2014 10:10 am

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

Post by jkfloris » Fri Dec 21, 2018 11:07 am

winehq-staging : Depends: wine-staging (= 4.0~rc2~cosmic)
Somewhere in the past you have added the Ubuntu 18.10 repository.
Probably there is a file in /etc/apt/sources.list.d which contains the wrong repository.

artik
Level 2
Level 2
Posts: 10
Joined: Sun Mar 15, 2015 6:32 am

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

Post by artik » Fri Dec 21, 2018 11:16 am

I forgot to mentioned that I tried the repository cosmic:
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.

jkfloris
Level 6
Level 6
Posts: 660
Joined: Thu Aug 14, 2014 10:10 am

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

Post by jkfloris » Fri Dec 21, 2018 11:28 am

Linux Mint 19.x needs the bionic repo and isn't compatible with cosmic.
You have to remove the cosmic repo from your sources.

artik
Level 2
Level 2
Posts: 10
Joined: Sun Mar 15, 2015 6:32 am

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

Post by artik » Fri Dec 21, 2018 11:40 am

Sorry jkfloris I'm confused. I removed the cosmic, ok.

But Which wine repo shall I add so ?

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Because if yes, it's what I did at the beginning.

jkfloris
Level 6
Level 6
Posts: 660
Joined: Thu Aug 14, 2014 10:10 am

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

Post by jkfloris » Fri Dec 21, 2018 12:28 pm

Yes, that should be the correct repo. And make sure you removed cosmic one.
wine-staging-i386:i386 :
...
Depends: libc6:i386 (>= 2.28) but 2.27-3ubuntu1 is installed
...
The cosmic wine-staging-i386 package depends on libc6 >=2.28
That is way I expect you have a cosmic line somewhere in your sources.

artik
Level 2
Level 2
Posts: 10
Joined: Sun Mar 15, 2015 6:32 am

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

Post by artik » Fri Dec 21, 2018 12:37 pm

Found it... and fixed!
cd /etc/apt/sources.list.d
edited the file
sudo subl additional-repositories.list
I removed the line:
then normal procedure:
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 for help

Post Reply