Cannot install wine because libpcre3:i386 not compatible with libcre3

Questions about Wine on Linux
Locked
mystiquewolf
Newbie
Newbie
Posts: 4
Joined: Fri Aug 21, 2020 3:34 pm

Cannot install wine because libpcre3:i386 not compatible with libcre3

Post by mystiquewolf »

I tried to install Wine with the official mentioned command:

Code: Select all

sudo apt install --install-recommends winehq-stable
This started a series of packages with errors like "Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed".
Finally:

Code: Select all

sudo apt install libpcre3:i386
showed error "The following NEW packages will be installed
libpcre3:i386 libutempter0 php7.4-fpm xterm
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
grep libpcre3 (due to grep)
0 to upgrade, 4 to newly install, 643 to remove and 0 not to upgrade.
Need to get 2438 kB of archives.
After this operation, 2687 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!’"

Unfortunately i cannot manage to install Wine because it wants to wipe gnome and about 650 other packages because of libpcre3:i386. How do i proceed?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Cannot install wine because libpcre3:i386 not compatible with libcre3

Post by dimesio »

The versions of i386 and amd64 packages must match. Either change the version of libpcre3:amd64 to match the i386 version you are trying to install or find an i386 version that matches your existing amd64 package.
mystiquewolf
Newbie
Newbie
Posts: 4
Joined: Fri Aug 21, 2020 3:34 pm

Re: Cannot install wine because libpcre3:i386 not compatible with libcre3

Post by mystiquewolf »

Yes, i found what was the issue. For future reference, what i did is i installed "ppa-purge" and used it to restore the packages from the "ondrej/php" ppa (which somehow included libpcre3) to the one in the ubuntu repo, and then was able to install winehq-stable with no problems.
Locked