web-dev-qa-db-ja.com

壊れている、または完全にインストールされていないパッケージを修正するにはどうすればよいですか?

仮想マシンでapt update && apt upgrade -yを実行した後、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

これが私のサーバー情報です、

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

これはどのLinuxディストリビューションにとっても重要なパッケージです。単にアンインストールしてから再インストールすることはできません。つまり、apt remove libssl1.1 && apt install libssl1.1

また、これは--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

バグレポート

インストールされたlibssl1.1:AMD64パッケージのインストール後スクリプトサブプロセスがエラー終了ステータス10を返しました-- https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1832919

1
rage

バグレポート の回避策

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