web-dev-qa-db-fra.com

Comment réparer un paquet qui est cassé ou pas complètement installé?

Après avoir exécuté apt update && apt upgrade -y sur une machine virtuelle, j'obtiens l'erreur suivante pour libssl1.1:AMD64.

dpkg --configure -a
Setting up libssl1.1:AMD64 (1.1.1-1ubuntu2.1~18.04.2) ...
Checking for services that may need to be restarted...done.
Checking for services that may need to be restarted...done.
Checking init scripts...
dpkg: error processing package libssl1.1:AMD64 (--configure):
 installed libssl1.1:AMD64 package post-installation script subprocess returned error exit status 10
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 libssl1.1:AMD64

dpkg-reconfigure libssl1.1:AMD64
/usr/sbin/dpkg-reconfigure: libssl1.1:AMD64 is broken or not fully installed

Voici mes informations de serveur,

uname -a
Linux remote 4.15.0-1040-aws #42-Ubuntu SMP Fri May 17 13:47:10 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Il s'agit d'un package vital pour toute distribution Linux, je ne peux pas simplement le désinstaller puis le réinstaller, c'est-à-dire apt remove libssl1.1 && apt install libssl1.1

C'est aussi ce qui est retourné par --reinstall.

apt install --reinstall libssl1.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for libssl1.1:AMD64

Rapport de bogue

libssl1.1 installé: le sous-processus de script de post-installation du package AMD64 a renvoyé l'état de sortie d'erreur 10 -- https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1832919

1
rage

Solution de contournement du rapport de bogue ,

Sudo dpkg-reconfigure libc6
Sudo dpkg --configure libssl1.1
1
rage