Server Certificate Verification failed CAfile (apt-get update)

Posted on October 1, 2018 at 2:56 pm

If you get this error message after apt-get update:

Err:52 https://packages.sury.org/php stretch Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Reading package lists... Done
E: The repository 'https://packages.sury.org/php stretch Release' does no longer have 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.

Probably your clock might be off (certificates are time sensitive).

To verify the current system time type:

date -R

Consider installing NTP to sync the system time with trusted timeservers:

apt-get install ntp

Then try apt-get update again:

apt-get update

Receive updates via email

Other Posts

Updated Posts