Searching the forums I have found many links related to softlinks, but nothing related to the issue that I am facing.
I have tried to run the the following command.
apt upgrade
-- I am looking to run the dist-upgrade from 20.04 to 22.04, but cannot get past this error.
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)
I don't understand what link is trying to be created with the following line.
ln: failed to create symbolic link '/etc/ssl/certs/.pem' -> '': No such file or directory
It seems to be searching for a .pem file, there is no filename related to this.
I have also tried to run the following to no avail.
dpkg-reconfigure ca-certificates
/usr/sbin/dpkg-reconfigure: ca-certificates is broken or not fully installed.
I ran this as well to remove the package.
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) ...
I have now run out of ideas and cannot find any ideas on the forums. Does anyone have any idea how I can fix this broken package