Пример ошибки на Debian 12:
ERROR: The certificate of ‘...’ is not trusted.
ERROR: The certificate of ‘...’ doesn't have a known issuer.
Решение:
Обновить сертификаты
sudo apt update && sudo apt install --reinstall ca-certificates
sudo update-ca-certificates
или
apt update && apt install --reinstall ca-certificates
update-ca-certificates