ERROR
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake:
I have a clean install debian bullseye 11 on my physical machine and I get the same error when trying to update system #apt update
.
The problem is due to the lack of certificates, for me it worked, changing https to http:
nano /etc/apt/sources.list
deb [trusted=yes] http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src [trusted=yes] http://deb.debian.org/debian bullseye-updates main contrib non-free
deb [trusted=yes] http://deb.debian.org/debian bullseye main
deb-src [trusted=yes] http://deb.debian.org/debian bullseye main
deb [trusted=yes] http://security.debian.org/debian-security bullseye-security main
deb-src [trusted=yes] http://security.debian.org/debian-security bullseye-security main
deb [trusted=yes] http://deb.debian.org/debian bullseye-backports main
deb-src [trusted=yes] http://deb.debian.org/debian bullseye-backports main
Then update apt update
Then install the certificates apt install ca-certificates
Verify that the certificates are installed ls /etc/ssl/certs
Then change http to https.
nano /etc/apt/sources.list
deb [trusted=yes] https://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src [trusted=yes] https://deb.debian.org/debian bullseye-updates main contrib non-free
deb [trusted=yes] https://deb.debian.org/debian bullseye main
deb-src [trusted=yes] https://deb.debian.org/debian bullseye main
deb [trusted=yes] https://security.debian.org/debian-security bullseye-security main
deb-src [trusted=yes] https://security.debian.org/debian-security bullseye-security main
deb [trusted=yes] https://deb.debian.org/debian bullseye-backports main
deb-src [trusted=yes] https://deb.debian.org/debian bullseye-backports main
Now #apt update
should NOT give any problems.