在论坛中搜索后,我发现了许多与软链接相关的链接,但与我面临的问题无关。我尝试运行以下命令。——
apt upgrade
我希望将 dist-upgrade 从 20.04 运行到 22.04,但无法解决此错误。
apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up ca-certificates (20211016~20.04.1) ...
Updating certificates in /etc/ssl/certs...
ln: failed to create symbolic link '/etc/ssl/certs/.pem' -> '': No such file or directory
dpkg: error processing package ca-certificates (--configure):
installed ca-certificates package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不明白下面这一行想要创建什么链接。
ln: failed to create symbolic link '/etc/ssl/certs/.pem' -> '': No such file or directory
它似乎正在搜索 .pem 文件,但没有与此相关的文件名。
我也尝试过运行以下命令,但没有成功。
dpkg-reconfigure ca-certificates
/usr/sbin/dpkg-reconfigure: ca-certificates is broken or not fully installed.
我也运行了这个来删除这个包。
dpkg -P --force-depends ca-certificates
(Reading database ... 180559 files and directories currently installed.)
Removing ca-certificates (20211016~20.04.1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
Purging configuration files for ca-certificates (20211016~20.04.1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
Processing triggers for man-db (2.9.1-1) ...
我现在已经没有什么主意了,在论坛上也找不到任何主意。有谁知道我该如何修复这个损坏的软件包吗