Cannot instal wine 5 on Ubuntu 19.10

Questions about Wine on Linux
Locked
icepro
Level 1
Level 1
Posts: 5
Joined: Tue Mar 24, 2020 7:48 pm

Cannot instal wine 5 on Ubuntu 19.10

Post by icepro »

I have followed the regular installation process, but having the following problem:

Code: Select all

$ sudo apt install --install-recommends winehq-staging

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 (= 5.4~eoan)
E: Unable to correct problems, you have held broken packages.
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by dimesio »

icepro
Level 1
Level 1
Posts: 5
Joined: Tue Mar 24, 2020 7:48 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by icepro »

I have tried that:

Code: Select all

$ sudo apt install wine-stable-i386
The following packages have unmet dependencies.
 wine-stable-i386:i386 : Depends: libfaudio0:i386
then

Code: Select all

$ sudo apt install libfaudio0:i386
The following packages have unmet dependencies.
 libfaudio0:i386 : Depends: libavcodec58:i386
next step

Code: Select all

$ sudo apt install libavcodec58:i386
The following packages have unmet dependencies.
 libavcodec58:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                     Depends: librsvg2-2:i386 (>= 2.14.4) but it is not going to be installed

at last I got this

Code: Select all

$ sudo apt install libpcre2-8-0:i386
...
0 to upgrade, 2 to newly install, 1590 to remove and 0 not to upgrade.
Need to get 218 kB of archives.
After this operation, 9.076 MB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase ‘Yes, do as I say!’
It will definitely corrupt my system.

How can I overcome this?
icepro
Level 1
Level 1
Posts: 5
Joined: Tue Mar 24, 2020 7:48 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by icepro »

note: cybermax repo I have also added but no luck
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by dimesio »

Code: Select all

$ sudo apt install libpcre2-8-0:i386
...
0 to upgrade, 2 to newly install, 1590 to remove and 0 not to upgrade.
As the FAQ article I linked to states, the versions of i386 and amd64 packages must be identical. The standard and universe repositories do have matching versions, so at some point you must have added an outside PPA that has a different version. Your choice is to either revert whatever mismatched package you installed from that PPA to the distro version or find an i386 package that matches the one you have installed.
icepro
Level 1
Level 1
Posts: 5
Joined: Tue Mar 24, 2020 7:48 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by icepro »

how can I figure out what to uninstall? and what was the wrong ppa?
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by Cybermax »

What you need to do is figure out what PPA/Repo the offending package comes from i guess.
Since i am by no means a "Ubuntu/Debian expert" i cannot really help you with whatever advanced troubleshooting you need to do, cos this is not a "wine problem" per se, but some ppa/repo you have that uses the wrong version or whatever.

You could try to do things like

Code: Select all

apt-cache policy libpcre2
or something to figure out where that package is from. I do not have that package, so i highly doubt that is necessary to run wine "for the rest of us".
icepro
Level 1
Level 1
Posts: 5
Joined: Tue Mar 24, 2020 7:48 pm

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by icepro »

I have tried to upgrade to 20.04. Then did what is written here https://wiki.winehq.org/Ubuntu.

Now I have:

Code: Select all

sudo apt install --install-recommends winehq-stable                                                                     4704  21:14:36    kubesail-alexey-anufriev/alexey-anufriev ⎈
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-stable : Depends: wine-stable (= 4.0.4~focal)
E: Unable to correct problems, you have held broken packages.
I have also tried to install from Ubuntu repo:

Code: Select all

sudo apt install wine64 wine32                                                                                    100 ↵  4705  21:15:40    kubesail-alexey-anufriev/alexey-anufriev ⎈
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.
 wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Both attempts - no luck.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Cannot instal wine 5 on Ubuntu 19.10

Post by jkfloris »

What is the output of?

Code: Select all

grep -r ^deb /etc/apt/sources.list* ; dpkg --print-foreign-architectures
Locked