Sudo apt update fails suddenly

Hi!

I just came back from holiday and wanted to start the upgrade to 4.2. So I first started with
sudo apt update
and I get lots of errors:

Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Err:2 https://deb.nodesource.com/node_16.x bullseye InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 172.67.10.205 443]
Err:3 https://packages.grafana.com/oss/deb stable InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 151.101.130.217 443]
Err:4 https://repos.influxdata.com/debian stable InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 18.239.83.73 443]
Hit:5 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:6 http://archive.raspberrypi.org/debian bullseye InRelease
Err:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 34.74.126.177 443]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
34 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://deb.nodesource.com/node_16.x/dists/bullseye/InRelease: No system certificates available. Try installing ca-certificates.
W: https://packages.grafana.com/oss/deb/dists/stable/InRelease: No system certificates available. Try installing ca-certificates.
W: https://repos.influxdata.com/debian/dists/stable/InRelease: No system certificates available. Try installing ca-certificates.
W: https://openhab.jfrog.io/artifactory/openhab-linuxpkg/dists/stable/InRelease: No system certificates available. Try installing ca-certificates.
W: Failed to fetch https://packages.grafana.com/oss/deb/dists/stable/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 151.101.130.217 443]
W: Failed to fetch https://repos.influxdata.com/debian/dists/stable/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 18.239.83.73 443]
W: Failed to fetch https://deb.nodesource.com/node_16.x/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: 172.67.10.205 443]
W: Failed to fetch https://openhab.jfrog.io/artifactory/openhab-linuxpkg/dists/stable/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 34.74.126.177 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

I already tried to update the ca-certificates (sudo apt install ca-certificates) but they are already to the latest version.

Sorry if this is easy for some here but google is failing me here :frowning:

Thank you already for any helpful hints or help!!

BB
Peter

And to be complete, I run on a RPi4 with the openhabian install and nothing extra. And I try to keep up with OS updates.

BB
Peter

And I’ve solved it :confused:

sudo apt reinstall ca-certificates did the trick

Sorry for my panic

If you use an openHABian installation, you should not do an apt update/upgrade but use the according menu entries in openHABian-config.

Hi @hmerk !

Ah ok! I didn’t know that. I did used it now and it seems it does the same. Seems … :wink:

Thanks for sharing!!

BB
Peter