Installation on 20.04

Questions about Wine on Linux
Locked
VARN
Newbie
Newbie
Posts: 4
Joined: Sat Mar 16, 2019 8:55 pm

Installation on 20.04

Post by VARN »

I've followed the instructions on this site:

Code: Select all

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.

Code: Select all

$ sudo apt-key add winehq.key
OK

Code: Select all

$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' 
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
... 
Reading package lists... Done                         
I go into 'Software & Updates' and check the two entries for wine are enabled.

Code: Select all

https://dl.winehq.org/wine-builds/ubuntu/ focal main (Source Code)
https://dl.winehq.org/wine-builds/ubuntu/ main

Code: Select all

$ sudo apt update
...          
Hit:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                 
... 
Reading package lists... Done

Code: Select all

$ sudo apt install --install-recommends winehq-stable
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 resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
OK, an error. Let's try installing dependencies.

Code: Select all

$ sudo apt install wine-stable
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 resolve the situation:

The following packages have unmet dependencies:
 wine-stable : Depends: wine-stable-i386 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
another one...

Code: Select all

$ sudo apt install wine-stable-i386
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 resolve the situation:

The following packages have unmet dependencies:
 wine-stable-i386:i386 : Depends: libsane:i386 (>= 1.0.24)
E: Unable to correct problems, you have held broken packages.

Code: Select all

$ sudo apt install libsane:i386
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 resolve the situation:

The following packages have unmet dependencies:
 libsane:i386 : Depends: libsnmp35:i386 (>= 5.8+dfsg) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

$ sudo apt install libsnmp35:i386
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 resolve the situation:

The following packages have unmet dependencies:
 libsnmp35:i386 : Depends: libmysqlclient21:i386 (>= 8.0.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

$ sudo apt install libmysqlclient21:i386
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 resolve the situation:

The following packages have unmet dependencies:
 libmysqlclient21:i386 : Depends: mysql-common:i386 (>= 5.5)
E: Unable to correct problems, you have held broken packages.

Code: Select all

$ sudo apt install mysql-common:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mysql-common:i386 is a virtual package provided by:
  mysql-common 5.8+1.0.5ubuntu2 [Not candidate version]

E: Package 'mysql-common:i386' has no installation candidate

Code: Select all

$ sudo apt install mysql-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-common is already the newest version (1:10.3.27+maria~bionic).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
After all that there isn't even an error, wine is not installed.

Code: Select all

$ wine --version

Command 'wine' not found, but can be installed with:

sudo apt install wine              # version 5.0-3ubuntu1, or
sudo apt install wine-development  # version 5.5-3ubuntu1
I don't know what to do now as I don't have an error to search. Those two versions 5.0 and 5.5 are in the snap store.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Installation on 20.04

Post by dimesio »

VARN
Newbie
Newbie
Posts: 4
Joined: Sat Mar 16, 2019 8:55 pm

Re: Installation on 20.04

Post by VARN »

Thanks,
typing

Code: Select all

sudo apt-get install mysql-common=5.8+1.0.5ubuntu2
from that page allows wine install.
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

I've a similar issue so I find it's better to continue using this thread instead of opening a new one. May you please help me to fix it.

Code: Select all

sudo apt install wine-stable-i386
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:
 wine-stable-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                         Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
                         Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
                         Depends: libsane:i386 (>= 1.0.24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo apt-get install mysql-common=5.8+1.0.5ubuntu2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-common is already the newest version (5.8+1.0.5ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Code: Select all

sudo apt install --install-recommends winehq-stable
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 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
I couldn't figure out how to fix this issue although I tried tons of fixes

Code: Select all

grep -R ^deb /etc/apt/sources.list*
/etc/apt/sources.list.d/mkusb-ppa-focal.list:deb http://ppa.launchpad.net/mkusb/ppa/ubuntu focal main
/etc/apt/sources.list.d/ondrej-php-focal.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
/etc/apt/sources.list.d/uget-team-ppa-focal.list:deb http://ppa.launchpad.net/uget-team/ppa/ubuntu focal main
/etc/apt/sources.list.d/nilarimogard-webupd8-focal.list:deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal main
/etc/apt/sources.list.d/stk-dev-focal.list:deb http://ppa.launchpad.net/stk/dev/ubuntu focal main
/etc/apt/sources.list.d/linuxgndu-sqlitebrowser-focal.list:deb http://ppa.launchpad.net/linuxgndu/sqlitebrowser/ubuntu focal main
/etc/apt/sources.list.d/mjasnik-ppa-focal.list:deb http://ppa.launchpad.net/mjasnik/ppa/ubuntu focal main
/etc/apt/sources.list.d/graphics-drivers-ppa-focal.list:deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
/etc/apt/sources.list.d/linrunner-tlp-focal.list:deb http://ppa.launchpad.net/linrunner/tlp/ubuntu focal main
/etc/apt/sources.list.d/team-xbmc-ppa-focal.list:deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu focal main
/etc/apt/sources.list.d/musicbrainz-developers-stable-focal.list:deb http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu focal main
/etc/apt/sources.list.d/lutris-team-lutris-focal.list:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
/etc/apt/sources.list.d/teejee2008-ppa-focal.list:deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal main
/etc/apt/sources.list.d/openshot_developers-ppa-focal.list:deb http://ppa.launchpad.net/openshot.developers/ppa/ubuntu focal main
/etc/apt/sources.list.d/phoerious-keepassxc-focal.list:deb http://ppa.launchpad.net/phoerious/keepassxc/ubuntu focal main
/etc/apt/sources.list.d/gezakovacs-ppa-focal.list:deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal main
/etc/apt/sources.list.d/audio-recorder-ppa-focal.list:deb http://ppa.launchpad.net/audio-recorder/ppa/ubuntu focal main
/etc/apt/sources.list.d/vscodium.list:deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main
/etc/apt/sources.list.d/jonaski-strawberry-focal.list:deb http://ppa.launchpad.net/jonaski/strawberry/ubuntu focal main
/etc/apt/sources.list.d/remmina-ppa-team-remmina-next-focal.list:deb http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu focal main
/etc/apt/sources.list.d/lakinduakash-lwh-focal.list:deb http://ppa.launchpad.net/lakinduakash/lwh/ubuntu focal main
/etc/apt/sources.list.d/skype-stable.list:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/maarten-baert-simplescreenrecorder-focal.list:deb http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu focal main
/etc/apt/sources.list.d/alexlarsson-flatpak-focal.list:deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal main
/etc/apt/sources.list.d/inkscape_dev-stable-focal.list:deb http://ppa.launchpad.net/inkscape.dev/stable/ubuntu focal main
/etc/apt/sources.list.d/jcfp-ppa-focal.list:deb http://ppa.launchpad.net/jcfp/ppa/ubuntu focal main
/etc/apt/sources.list.d/blaze-main-focal.list:deb http://ppa.launchpad.net/blaze/main/ubuntu focal main
/etc/apt/sources.list.d/slimbook-slimbook-focal.list:deb http://ppa.launchpad.net/slimbook/slimbook/ubuntu focal main
/etc/apt/sources.list.d/additional-repositories.list:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
/etc/apt/sources.list.d/additional-repositories.list:deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe restricted multiverse
/etc/apt/sources.list.d/obsproject-obs-studio-focal.list:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
/etc/apt/sources.list.d/signal-xenial.list:deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
/etc/apt/sources.list.d/mediaelch-mediaelch-stable-focal.list:deb http://ppa.launchpad.net/mediaelch/mediaelch-stable/ubuntu focal main
/etc/apt/sources.list.d/xubuntu-dev-extras-focal.list:deb http://ppa.launchpad.net/xubuntu-dev/extras/ubuntu focal main
/etc/apt/sources.list.d/qbittorrent-team-qbittorrent-stable-focal.list:deb http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal main
/etc/apt/sources.list.d/official-package-repositories.list:deb https://mirror.turhost.com/linuxmint/repo una main upstream import backport 
/etc/apt/sources.list.d/official-package-repositories.list:deb http://ubuntu.turhost.com/ubuntu focal main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://ubuntu.turhost.com/ubuntu focal-updates main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://ubuntu.turhost.com/ubuntu focal-backports main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://archive.canonical.com/ubuntu/ focal partner
/etc/apt/sources.list.d/flacon-ppa-focal.list:deb http://ppa.launchpad.net/flacon/ppa/ubuntu focal main
/etc/apt/sources.list.d/linuxuprising-apps-focal.list:deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main
/etc/apt/sources.list.d/peek-developers-stable-focal.list:deb http://ppa.launchpad.net/peek-developers/stable/ubuntu focal main
/etc/apt/sources.list.d/gnumdk-lollypop-focal.list:deb http://ppa.launchpad.net/gnumdk/lollypop/ubuntu focal main
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

Try to install the unmet dependencies by hand:

Code: Select all

sudo apt install libglib2.0-0:i386
# Some error about dependency <package-1:i386>
# sudo apt install package-1:i386
# Some error about dependency <package-2:i386>
# sudo apt install package-2:i386
# etc.
# When all the dependencies are installed, you can try installing the next package.
sudo apt install libgphoto2-6:i386
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

jkfloris wrote: Sun Apr 17, 2022 6:27 am Try to install the unmet dependencies by hand:
This doesn't fix the issue because it drive me to endless dependencies!
See one of my trials:

Code: Select all

$ sudo apt install --install-recommends winehq-stable
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 (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
$ sudo apt install wine-stable-i386
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:
 wine-stable-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                         Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                         Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
                         Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
                         Depends: libsane:i386 (>= 1.0.24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libglib2.0-0-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libglib2.0-0-i386
E: Couldn't find any package by glob 'libglib2.0-0-i386'
$ sudo apt install libglib2.0-0:i386
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:
 libglib2.0-0:i386 : Depends: libmount1:i386 (>= 2.28) but it is not going to be installed
                     Depends: libselinux1:i386 (>= 1.32) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libmount1:i386
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:
 libmount1:i386 : Depends: libselinux1:i386 (>= 2.6-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libselinux1:i386
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:
 libselinux1:i386 : Depends: libpcre2-8-0:i386 (>= 10.22) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libpcre2-8-0:i386
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:
 dictionaries-common : Depends: debconf (>= 1.5.5) but it is not going to be installed or
                                debconf-2.0
                       Depends: libtext-iconv-perl but it is not going to be installed
 emacs : Depends: emacs-gtk (>= 1:26.3) but it is not going to be installed or
                  emacs-lucid (>= 1:26.3) but it is not going to be installed or
                  emacs-nox (>= 1:26.3) but it is not going to be installed
 fontconfig : Depends: fontconfig-config but it is not going to be installed
 libcurl3-gnutls : Depends: libgssapi-krb5-2 (>= 1.17) but it is not going to be installed
                   Depends: libssh-4 (>= 0.8.0) but it is not going to be installed
                   Recommends: ca-certificates but it is not going to be installed
 libfontconfig1 : Depends: fontconfig-config (>= 2.13.1-2ubuntu3) but it is not going to be installed
 libgdk-pixbuf2.0-0 : Depends: shared-mime-info
                      Recommends: libgdk-pixbuf2.0-bin
 libglib2.0-0 : Depends: libmount1 (>= 2.28) but it is not going to be installed
                Recommends: shared-mime-info
 libgpgmepp6 : Depends: libgpgme11 (>= 1.9.0) but it is not going to be installed
 libicu66 : Depends: tzdata (> 2019c-3ubuntu1~) but it is not going to be installed
 libmagickcore-6.q16-6 : PreDepends: dpkg (>= 1.17.6)
                         Depends: liblqr-1-0 (>= 0.4.0) but it is not going to be installed
                         Recommends: ghostscript
 libmagickwand-6.q16-6 : PreDepends: dpkg (>= 1.17.6)
 libneon27-gnutls : Depends: libgssapi-krb5-2 (>= 1.17) but it is not going to be installed
                    Recommends: ca-certificates but it is not going to be installed
 libpaper-utils : Depends: libpaper1 but it is not going to be installed
 librdf0 : Depends: libraptor2-0 (>= 2.0.14) but it is not going to be installed
           Depends: librasqal3 (>= 0.9.31) but it is not going to be installed
 librsvg2-2 : Depends: libcairo-gobject2 (>= 1.10.0) but it is not going to be installed
              Depends: libpango-1.0-0 (>= 1.38.0) but it is not going to be installed
              Depends: libpangocairo-1.0-0 (>= 1.38.0) but it is not going to be installed
              Recommends: librsvg2-common but it is not going to be installed
 libselinux1 : Depends: libpcre2-8-0 (>= 10.22) but it is not going to be installed
 steam-installer : Depends: steam (= 1:1.0.0.61-2ubuntu3)
 ure : Depends: liblangtag1 (>= 0.4.0) but it is not going to be installed
       Depends: libuno-purpenvhelpergcc3-3 (>= 1.4.0) but it is not going to be installed
       Recommends: libjuh-java
       Recommends: libjurt-java
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
$ 

jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

libpcre2-8-0:i386 only has libc6 as a dependency.
What is the output of:

Code: Select all

apt policy libc6 libc6:i386
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

jkfloris wrote: Tue Apr 19, 2022 11:26 am apt policy libc6 libc6:i386

Code: Select all

$ sudo apt policy libc6 libc6:i386
libc6:
  Installed: 2.31-0ubuntu9.7
  Candidate: 2.31-0ubuntu9.7
  Version table:
 *** 2.31-0ubuntu9.7 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://ubuntu.turhost.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.31-0ubuntu9 500
        500 http://ubuntu.turhost.com/ubuntu focal/main amd64 Packages
libc6:i386:
  Installed: 2.31-0ubuntu9.7
  Candidate: 2.31-0ubuntu9.7
  Version table:
 *** 2.31-0ubuntu9.7 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
        500 http://ubuntu.turhost.com/ubuntu focal-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages
        100 /var/lib/dpkg/status
     2.31-0ubuntu9 500
        500 http://ubuntu.turhost.com/ubuntu focal/main i386 Packages

jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

If libc6 is already installed, then there are probably multiple versions of libpcre2-8-0 available.

Code: Select all

apt policy libpcre2-8-0 libpcre2-8-0:i386
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

jkfloris wrote: Wed Apr 20, 2022 4:09 am apt policy libpcre2-8-0 libpcre2-8-0:i386

Code: Select all

$ sudo apt policy libpcre2-8-0 libpcre2-8-0:i386
libpcre2-8-0:
  Installed: 10.39-3+ubuntu20.04.1+deb.sury.org+2
  Candidate: 10.39-3+ubuntu20.04.1+deb.sury.org+2
  Version table:
 *** 10.39-3+ubuntu20.04.1+deb.sury.org+2 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     10.34-7 500
        500 http://ubuntu.turhost.com/ubuntu focal/main amd64 Packages
libpcre2-8-0:i386:
  Installed: (none)
  Candidate: 10.34-7
  Version table:
     10.34-7 500
        500 http://ubuntu.turhost.com/ubuntu focal/main i386 Packages
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

This is an example of why it's not always convenient to install packages from a PPA.
Ondrej does offer a 64-bit version of libpcre2-8-0, but not a 32-bit version.
You can downgrade libpcre2-8-0 (64-bit) and install libpcre2-8-0 (32-bit) with:

Code: Select all

sudo apt install libpcre2-8-0=10.34-7 libpcre2-8-0:i386=10.34-7
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

jkfloris wrote: Wed Apr 20, 2022 11:00 am This is an example of why it's not always convenient to install packages from a PPA.
I completely disabled http://ppa.launchpad.net/ondrej/php/ubuntu then run

Code: Select all

apt update && apt full-upgrade -y && apt autoremove -y && apt autoclean -y && apt clean -y
sudo apt install libpcre2-8-0=10.34-7 libpcre2-8-0:i386=10.34-7

Code: Select all

# apt install libpcre2-8-0=10.34-7 libpcre2-8-0:i386=10.34-7
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:
 lcl-2.0 : Depends: lcl-units-2.0 but it is not going to be installed
           Recommends: fpc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Code: Select all

# apt policy libpcre2-8-0 libpcre2-8-0:i386
libpcre2-8-0:
  Installed: 10.39-3+ubuntu20.04.1+deb.sury.org+2
  Candidate: 10.39-3+ubuntu20.04.1+deb.sury.org+2
  Version table:
 *** 10.39-3+ubuntu20.04.1+deb.sury.org+2 100
        100 /var/lib/dpkg/status
     10.34-7 500
        500 http://ubuntu.turhost.com/ubuntu focal/main amd64 Packages
libpcre2-8-0:i386:
  Installed: (none)
  Candidate: 10.34-7
  Version table:
     10.34-7 500
        500 http://ubuntu.turhost.com/ubuntu focal/main i386 Packages
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

Code: Select all

apt update && apt full-upgrade -y && apt autoremove -y && apt autoclean -y && apt clean -y
Unfortunately, apt has no option to automatically downgrade packages.
You have to do this manually. When I look at the PPA all packages have "deb.sury.org" in the version number. You can list all installed packages with:

Code: Select all

dpkg -l | grep "deb.sury.org"
Find the official Ubuntu version number of each package and install them with:

Code: Select all

sudo apt install [package name]=<version number>
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

jkfloris wrote: Thu Apr 21, 2022 3:42 am Find the official Ubuntu version number of each package and install them with:
How can I recognize the official packages?

Code: Select all

$ dpkg -l | grep "deb.sury.org"
ii  libargon2-1:amd64                                           0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1                                     amd64        memory-hard hashing function - runtime library
ii  libgd-dev:amd64                                             2.3.0-2+ubuntu20.04.1+deb.sury.org+1                                            amd64        GD Graphics Library (development version)
ii  libgd3:amd64                                                2.3.0-2+ubuntu20.04.1+deb.sury.org+1                                            amd64        GD Graphics Library
ii  libidn2-0:amd64                                             2.3.0-1+ubuntu20.04.1+deb.sury.org+2                                            amd64        Internationalized domain names (IDNA2008/TR46) library
ii  libidn2-0:i386                                              2.3.0-1+ubuntu20.04.1+deb.sury.org+2                                            i386         Internationalized domain names (IDNA2008/TR46) library
ii  libidn2-dev:amd64                                           2.3.0-1+ubuntu20.04.1+deb.sury.org+2                                            amd64        Internationalized domain names (IDNA2008/TR46) development files
ii  libpcre16-3:amd64                                           2:8.44-2+ubuntu20.04.1+deb.sury.org+1                                           amd64        Perl 5 Compatible Regular Expression Library - 16 bit runtime files
ii  libpcre2-16-0:amd64                                         10.39-3+ubuntu20.04.1+deb.sury.org+2                                            amd64        New Perl Compatible Regular Expression Library - 16 bit runtime files
ii  libpcre2-32-0:amd64                                         10.39-3+ubuntu20.04.1+deb.sury.org+2                                            amd64        New Perl Compatible Regular Expression Library - 32 bit runtime files
ii  libpcre2-8-0:amd64                                          10.39-3+ubuntu20.04.1+deb.sury.org+2                                            amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files
ii  libpcre2-dev:amd64                                          10.39-3+ubuntu20.04.1+deb.sury.org+2                                            amd64        New Perl Compatible Regular Expression Library - development files
ii  libpcre2-posix3:amd64                                       10.39-3+ubuntu20.04.1+deb.sury.org+2                                            amd64        New Perl Compatible Regular Expression Library - posix-compatible runtime files
ii  libpcre3:amd64                                              2:8.44-2+ubuntu20.04.1+deb.sury.org+1                                           amd64        Perl 5 Compatible Regular Expression Library - runtime files
ii  libpcre3-dev:amd64                                          2:8.44-2+ubuntu20.04.1+deb.sury.org+1                                           amd64        Perl 5 Compatible Regular Expression Library - development files
ii  libpcre32-3:amd64                                           2:8.44-2+ubuntu20.04.1+deb.sury.org+1                                           amd64        Perl 5 Compatible Regular Expression Library - 32 bit runtime files
ii  libpcrecpp0v5:amd64                                         2:8.44-2+ubuntu20.04.1+deb.sury.org+1                                           amd64        Perl 5 Compatible Regular Expression Library - C++ runtime files
ii  libxml2:amd64                                               2.9.13+dfsg-0+ubuntu20.04.1+deb.sury.org+1                                      amd64        GNOME XML library
ii  libxml2-dev:amd64                                           2.9.13+dfsg-0+ubuntu20.04.1+deb.sury.org+1                                      amd64        Development files for the GNOME XML library
ii  libxml2-utils                                               2.9.13+dfsg-0+ubuntu20.04.1+deb.sury.org+1                                      amd64        XML utilities
ii  libzstd1:amd64                                              1.4.8+dfsg-2+ubuntu20.04.1+deb.sury.org+4                                       amd64        fast lossless compression algorithm
ii  libzstd1:i386                                               1.4.8+dfsg-2+ubuntu20.04.1+deb.sury.org+4                                       i386         fast lossless compression algorithm
ii  php-cli                                                     2:8.1+92+ubuntu20.04.1+deb.sury.org+2                                           all          command-line interpreter for the PHP scripting language (default)
ii  php-common                                                  2:92+ubuntu20.04.1+deb.sury.org+2                                               all          Common files for PHP packages
ii  php-mbstring                                                2:8.1+92+ubuntu20.04.1+deb.sury.org+2                                           all          MBSTRING module for PHP [default]
ii  php8.1-cli                                                  8.1.4-1+ubuntu20.04.1+deb.sury.org+1                                            amd64        command-line interpreter for the PHP scripting language
ii  php8.1-common                                               8.1.4-1+ubuntu20.04.1+deb.sury.org+1                                            amd64        documentation, examples and common module for PHP
ii  php8.1-mbstring                                             8.1.4-1+ubuntu20.04.1+deb.sury.org+1                                            amd64        MBSTRING module for PHP
ii  php8.1-opcache                                              8.1.4-1+ubuntu20.04.1+deb.sury.org+1                                            amd64        Zend OpCache module for PHP
ii  php8.1-readline                                             8.1.4-1+ubuntu20.04.1+deb.sury.org+1                                            amd64        readline module for PHP
ii  python3-libxml2:amd64                                       2.9.13+dfsg-0+ubuntu20.04.1+deb.sury.org+1                                      amd64        Python3 bindings for the GNOME XML library

jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Installation on 20.04

Post by jkfloris »

You can find the official Ubuntu package version number with:

Code: Select all

apt policy <package name>
For example, if you want to restore libpcre*, you would use:

Code: Select all

sudo apt install libpcre16-3=2:8.39-12build1 libpcre2-16-0=10.34-7 libpcre2-32-0=10.34-7 libpcre2-8-0=10.34-7 libpcre2-dev=10.34-7 libpcre2-posix3=10.34-7 libpcre3=2:8.39-12build1 libpcre3-dev=2:8.39-12build1 libpcre32-3=2:8.39-12build1 libpcrecpp0v5=2:8.39-12build1
mbnoimi
Level 1
Level 1
Posts: 7
Joined: Sat Apr 16, 2022 8:32 am

Re: Installation on 20.04

Post by mbnoimi »

Thanks a lot jkfloris.
The problem fixed although downgrade process was really painful
Locked