Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease

Executing in a Debian 8 an:

$ apt update

I get this error:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease
W: Some index files failed to download. They have been ignored, or old ones used instead.

This is because the DPA has a new signing key. To resolve this problem you have to update the APT signing key, downloading the new key from the repositories:

$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
--2019-03-18 22:22:18-- https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 2001:bc8:27d0:300::1, 195.154.81.200
Connecting to packages.sury.org (packages.sury.org)|2001:bc8:27d0:300::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/php.gpg’

/etc/apt/trusted.gpg.d/php.gpg 100%[=========================================================================>] 1.73K --.-KB/s in 0s

2019-03-18 22:22:18 (8.80 MB/s) - ‘/etc/apt/trusted.gpg.d/php.gpg’ saved [1769/1769]

Now the “apt update” works correctly.

Comments

8 responses to “Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease”

  1. Marangoni Avatar
    Marangoni

    Work fine, thank you very much!

  2. Nikolay Avatar
    Nikolay

    Solved my problem, thanks!

  3. Gustavo Avatar
    Gustavo

    Thank you!

  4. carlos Avatar
    carlos

    Thanks, work for me too.

  5. Patrick Avatar
    Patrick

    I’ve tried and gives me this errors:

    GnuTLS: A TLS fatal alert has been received.
    Unable to establish SSL connection.

  6. Alejandro Cruz Avatar
    Alejandro Cruz

    Thanks!! works fine!!!

  7. Art Avatar
    Art

    Thanks!!!

  8. Mehrdad Seyrafi Avatar
    Mehrdad Seyrafi

    Perfect 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.