Error for apt update
A few machines have started throwing errors related to $ -x /usr/sbin/dsa-update-apt-status && /usr/sbin/dsa-update-apt-status
# apt update
Ign:1 https://mirror.hetzner.de/debian/packages buster-backports InRelease
Ign:2 https://db.torproject.org/torproject-admin buster InRelease
Ign:3 https://db.torproject.org/torproject-admin tpo-all InRelease
Hit:4 https://db.torproject.org/torproject-admin buster Release
Hit:5 https://db.torproject.org/torproject-admin tpo-all Release
Ign:6 https://mirror.hetzner.de/debian/packages buster InRelease
Ign:8 https://mirror.hetzner.de/debian/packages buster-updates InRelease
Hit:9 http://security.debian.org buster/updates InRelease
Err:10 https://mirror.hetzner.de/debian/packages buster-backports Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 2a01:4f8:0:1::1:97 443]
Err:12 https://mirror.hetzner.de/debian/packages buster Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 2a01:4f8:0:1::1:97 443]
Err:13 https://mirror.hetzner.de/debian/packages buster-updates Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 2a01:4f8:0:1::1:97 443]
Reading package lists... Done
E: The repository 'https://mirror.hetzner.de/debian/packages buster-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirror.hetzner.de/debian/packages buster Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirror.hetzner.de/debian/packages buster-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
The error is solved when the endpoint for the repositories are changed from https to http.