web-dev-qa-db-fra.com

Dépendances cassées d'Ubuntu 18.04:

J'ai récemment effectué une mise à niveau dist sur Ubuntu bionic. La mise à niveau dist a procédé à la suppression de certains logiciels que j'avais l'intention de conserver, comme shutter et Pidgin. Chaque fois que j'ai essayé d'installer ceux-ci et gcc-multilib, j'ai eu une erreur de dépendances non satisfaite. Afin de résoudre ce problème, j'ai suivi ce lien. Lorsque j'ai essayé aptitude, il s'est écrasé à mi-chemin de l'installation de gcc-multilib avec une erreur dpkg:

dpkg: error processing package libc6:AMD64 (--configure):
 installed libc6:AMD64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for libc-bin:
 libc-bin depends on libc6 (>> 2.28); however:
  Version of libc6:AMD64 on system is 2.27-3ubuntu1.
 libc-bin depends on libc6 (<< 2.29); however:
  Package libc6:AMD64 is not configured yet.

dpkg: error processing package libc-bin (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for man-db:
 man-db depends on libc6 (>= 2.17); however:
  Package libc6:AMD64 is not configured yet.

Actuellement, je suis coincé à essayer d'installer quoi que ce soit, même une mise à niveau apt-get échoue. Toute aide est appréciée.

$ Sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (> 2.28) but 2.27-3ubuntu1 is installed
 libc6-dbg : Depends: libc6 (= 2.28-8) but 2.27-3ubuntu1 is installed
 libev-Perl : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 Perl-base : PreDepends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

$ Sudo apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libc-bin : Depends: libc6 (> 2.28) but 2.27-3ubuntu1 is installed
 libc6-dbg : Depends: libc6 (= 2.28-8) but 2.27-3ubuntu1 is installed
 libev-Perl : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
 Perl-base : PreDepends: libc6 (>= 2.28) but 2.27-3ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

$ apt-mark showhold   
$ dpkg -l | grep "^hi"

Apparemment, il n'y a pas de colis en attente.

Certaines informations: principal, restreint, univers, multivers, mises à jour bioniques et sécurité bionique sont activées. Tous les autres ppa ont été désactivés ou purgés, à l'exception de y-ppa-manager. Si plus d'informations sont nécessaires, veuillez me le faire savoir.

Mise à jour 1 : J'ai essayé d'exécuter la commande suivante pour rétrograder les versions, mais je ne sais pas comment procéder.

$ Sudo apt install libc-bin=2.27-3ubuntu1 libc6-dbg=2.27-3ubuntu1 libev-
Perl=4.22-1build2 Perl-base=5.26.1-6ubuntu0.3                          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libalgorithm-diff-xs-Perl : Depends: perlapi-5.28.0
 libanyevent-Perl : Depends: perlapi-5.28.1
                    Recommends: libguard-Perl but it is not going to be installed
 libapt-pkg-Perl : Depends: Perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                   Depends: perlapi-5.28.0
 libasync-interrupt-Perl : Depends: perlapi-5.28.0
 libbit-vector-Perl : Depends: perlapi-5.28.0
 libcairo-gobject-Perl : Depends: perlapi-5.28.0
 libcairo-Perl : Depends: perlapi-5.28.0
 libclone-Perl : Depends: perlapi-5.28.0
 libcommon-sense-Perl : Depends: perlapi-5.28.1
 libdate-calc-xs-Perl : Depends: perlapi-5.28.0
 libfcgi-Perl : Depends: perlapi-5.28.0
 libfile-fcntllock-Perl : Depends: perlapi-5.28.0
 libglib-object-introspection-Perl : Depends: perlapi-5.28.1
 libglib-Perl : Depends: perlapi-5.28.1
 libhtml-parser-Perl : Depends: perlapi-5.28.0
 libio-pty-Perl : Depends: perlapi-5.28.0
 libjson-xs-Perl : Depends: perlapi-5.28.0
 liblist-moreutils-Perl : Depends: perlapi-5.28.0
 liblocale-gettext-Perl : PreDepends: Perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                          PreDepends: perlapi-5.28.0
 libnet-dbus-Perl : Depends: perlapi-5.28.0
 libnet-libidn-Perl : Depends: perlapi-5.28.0
 libnet-ssleay-Perl : Depends: perlapi-5.28.0
 libpango-Perl : Depends: perlapi-5.28.0
 libpcsc-Perl : Depends: perlapi-5.28.0
 libperl5.28 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is to be installed
 libperlio-gzip-Perl : Depends: perlapi-5.28.0
 libsocket6-Perl : Depends: perlapi-5.28.0
 libsub-name-Perl : Depends: perlapi-5.28.0
 libtext-charwidth-Perl : Depends: Perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                          Depends: perlapi-5.28.0
 libtext-iconv-Perl : Depends: Perl-base (>= 5.28.0-3) but 5.26.1-6ubuntu0.3 is to be installed
                      Depends: perlapi-5.28.0
 libunicode-linebreak-Perl : Depends: perlapi-5.28.1
 libunicode-map-Perl : Depends: perlapi-5.28.0
 libxml-libxml-Perl : Depends: perlapi-5.28.1
 libxml-parser-Perl : Depends: perlapi-5.28.1
 libyaml-libyaml-Perl : Depends: perlapi-5.28.1
 locales : Depends: libc-bin (> 2.28)
 Perl : Depends: Perl-base (= 5.28.1-6) but 5.26.1-6ubuntu0.3 is to be installed
 Perl-modules-5.28 : Depends: Perl-base (>= 5.28.1-1) but 5.26.1-6ubuntu0.3 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Mise à jour 2 : J'ai réussi à corriger beaucoup de dépendances avec une longue commande spécifiant la version exacte de chaque paquet comme trouvé sur packages.ubuntu.com et l'exécuter à la fois sur aptitude et apt-get. Actuellement, il me reste à essayer de résoudre les derniers packages, mais j'ai rencontré le problème suivant:

$ Sudo apt-get install Perl-base=5.26.1-6ubuntu0.3 locales=2.27-3ubuntu1 libanyevent-Perl=7.140-2 libc-bin=2.27-3ubuntu1 libev-Perl=4.22-1build2 liblocale-gettext-Perl=1.07-3build2 libxml-libxml-Perl=2.0128+dfsg-5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libevent-Perl libio-async-Perl libpoe-Perl libtask-weaken-Perl
Recommended packages:
  libguard-Perl
The following NEW packages will be installed:
  locales
The following packages will be DOWNGRADED:
  libanyevent-Perl libc-bin libev-Perl liblocale-gettext-Perl libxml-libxml-Perl perl-base
0 upgraded, 1 newly installed, 6 downgraded, 0 to remove and 8 not upgraded.
37 not fully installed or removed.
Need to get 0 B/6570 kB of archives.
After this operation, 12.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
/usr/bin/Perl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/bin/Perl)
Setting up libc6:AMD64 (2.27-3ubuntu1) ...
/usr/bin/Perl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/bin/Perl)
dpkg: error processing package libc6:AMD64 (--configure):
 installed libc6:AMD64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libc6:AMD64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Apparemment, j'ai besoin d'installer GLIBC_2.28 pour utiliser Perl qui est requis pour installer les packages, mais c'est la version dont je veux m'éloigner, c'est-à-dire que je veux revenir à 2.27.

Mise à jour 3 :

$ apt list --installed | grep -v bionic
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Listing...
containerd.io/now 1.2.5-1 AMD64 [installed,local]
distro-info-data/now 0.37ubuntu0.4 all [installed,upgradable to: 0.37ubuntu0.5]
gemalto-smartcard0/now 161-2 AMD64 [installed,local]
google-chrome-stable/now 74.0.3729.131-1 AMD64 [installed,local]
icaclient/now 13.10.0.20 AMD64 [installed,local]
ipsec-tools/now 1:0.8.2+20140711-12 AMD64 [installed,local]
libanyevent-Perl/now 7.140-3 AMD64 [installed,local]
libboost-date-time1.62.0/now 1.62.0+dfsg-10+b1 AMD64 [installed,local]
libboost-filesystem1.62.0/now 1.62.0+dfsg-10+b1 AMD64 [installed,local]
libboost-serialization1.62.0/now 1.62.0+dfsg-10+b1 AMD64 [installed,local]
libboost-system1.62.0/now 1.62.0+dfsg-10+b1 AMD64 [installed,local]
libboost-thread1.62.0/now 1.62.0+dfsg-10+b1 AMD64 [installed,local]
libc-bin/now 2.28-8 AMD64 [installed,local]
libc-l10n/now 2.28-8 all [installed,local]
libev-Perl/now 4.25-1 AMD64 [installed,local]
libfl2/now 2.6.4-6.2 AMD64 [installed,local]
libgdbm-compat4/now 1.18.1-4 AMD64 [installed,local]
libgdbm6/now 1.18.1-4 AMD64 [installed,local]
libidn2-0/now 2.0.5-1 AMD64 [installed,local]
liblocale-gettext-Perl/now 1.07-3+b4 AMD64 [installed,local]
libssl1.1/now 1.1.1b-1 AMD64 [installed,local]
libxml-libxml-Perl/now 2.0134+dfsg-1 AMD64 [installed,local]
nessus/now 6.9.1 AMD64 [installed,local]
pcsc-tools/now 1.5.4-1 AMD64 [installed,local]
pdftk/now 3.0.0~malteworld1 all [installed,local]
pdftk-Java/now 3.0.0~malteworld1 all [installed,local]
Perl-base/now 5.28.1-6 AMD64 [installed,local]
realpath/now 8.26-3ubuntu4 all [installed,local]
rocketchat/now 2.14.7-1215 AMD64 [installed,local]
sublime-text/now 3207 AMD64 [installed,local]
unattended-upgrades/now 1.1ubuntu1.18.04.10 all [installed,upgradable to: 1.1ubuntu1.18.04.11]
1
Thomas

J'ai réussi à résoudre le problème en téléchargeant manuellement le package deb Perl-base sur packages.ubuntu.com et en exécutant la commande suivante Sudo dpkg -i Perl-base_5.26.1-6ubuntu0.3_AMD64.deb, cela semblait être en train de rétrograder avec succès Perl-base mais a signalé quelques erreurs de dépendances. Après cela, aptitude a pu résoudre les autres conflits en rétrogradant les autres packages libc6. Comme dernière étape, je vérifierai tous les packages qui ne sont pas des référentiels officiels répertoriés dans la mise à jour 3 et supprimer ceux dont je n'ai plus besoin.

1
Thomas