如何修复损坏或未完全安装的软件包?

如何修复损坏或未完全安装的软件包?

在虚拟机上运行后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

解决方法错误报告

sudo dpkg-reconfigure libc6
sudo dpkg --configure libssl1.1

相关内容