Was the software title installed freshly or updated/migrated? updated
Steps to reproduce
sudo dietpi-update
.error below
Expected behaviour
Continue without errors
Actual behaviour
Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease
│ Certificate verification failed: The certificate is NOT trusted. The
│ certificate issuer is unknown. Could not handshake: Error in the
│ certificate verification. [IP: 104.18.19.96 443]
dietpi@DietPi:~$ sudo apt update
Err:1 https://downloads.plex.tv/repo/deb public InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 104.18.19.96 443]
Err:2 https://download.docker.com/linux/debian bullseye InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 52.85.158.79 443]
Err:3 https://deb.debian.org/debian bullseye InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
Err:4 https://archive.raspberrypi.org/debian bullseye InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 46.235.230.122 443]
Err:5 https://deb.debian.org/debian bullseye-updates InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
Err:6 https://deb.debian.org/debian-security bullseye-security InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
Err:7 https://deb.debian.org/debian bullseye-backports InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
22 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://downloads.plex.tv/repo/deb/dists/public/InRelease: No system certificates available. Try installing ca-certificates.
W: https://download.docker.com/linux/debian/dists/bullseye/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.debian.org/debian/dists/bullseye/InRelease: No system certificates available. Try installing ca-certificates.
W: https://archive.raspberrypi.org/debian/dists/bullseye/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.debian.org/debian/dists/bullseye-updates/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.debian.org/debian-security/dists/bullseye-security/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.debian.org/debian/dists/bullseye-backports/InRelease: No system certificates available. Try installing ca-certificates.
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye-updates/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
W: Failed to fetch https://deb.debian.org/debian-security/dists/bullseye-security/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye-backports/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
W: Failed to fetch https://download.docker.com/linux/debian/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 52.85.158.79 443]
W: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 104.18.19.96 443]
W: Failed to fetch https://archive.raspberrypi.org/debian/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 46.235.230.122 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20210119).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
dietpi@DietPi:~$ dietpi@DietPi:~$ sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20210119).
It seems i have the latest version of certificates.
dietpi@DietPi:~$ sudo apt install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 22 not upgraded.
Need to get 158 kB of archives.
After this operation, 0 B of additional disk space will be used.
Err:1 https://deb.debian.org/debian bullseye/main arm64 ca-certificates all 20210119
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
W: https://deb.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_20210119_all.deb: No system certificates available. Try installing ca-certificates.
E: Failed to fetch https://deb.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_20210119_all.deb Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 146.75.2.132 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
dietpi@DietPi:~$ sudo sed -i 's/https/http/g' /etc/apt/sources.list
dietpi@DietPi:~$ sudo apt install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 22 not upgraded.
Need to get 158 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 ca-certificates all 20210119 [158 kB]
Fetched 158 kB in 0s (915 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
dpkg: error: error trying to open /var/lib/dpkg/info/format: Bad message
E: Sub-process /usr/bin/dpkg returned an error code (2)
dietpi@DietPi:~$
dietpi@DietPi:~$ sudo apt install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 32 not upgraded.
Need to get 158 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 ca-certificates all 20210119 [158 kB]
Fetched 158 kB in 0s (925 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 74571 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20210119_all.deb ...
Unpacking ca-certificates (20210119) over (20210119) ...
Setting up ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Now working just fine.
Should I do update the dietpi?