Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main
Thank you Head_on_a_Stick.
I did this 50 times.
Like you can see, I have the file php.gpg and the php.list
I did the same installation in another server debian Jessie, everything works.
I think I have a problem in my configuration but I don't know the command to reset apt. (I did apt-get clear, and delete all the list file)
root@staging:/etc/apt/trusted.gpg.d# apt-get update
Ign:1 https://packages.sury.org/php stretch InRelease
Ign:2 https://packages.sury.org/php stretch Release
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Hit:7 http://security.debian.org stretch/updates InRelease
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch InRelease
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Get:9 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Err:7 http://security.debian.org stretch/updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Err:9 http://deb.debian.org/debian stretch-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Err:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Hit:10 http://deb.debian.org/debian stretch Release
Err:11 http://deb.debian.org/debian stretch Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
Reading package lists... Done
W: The repository 'https://packages.sury.org/php stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
E: Failed to fetch https://packages.sury.org/php/dists/stretch/main/binary-i386/Packages
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@staging:/etc/apt/trusted.gpg.d# apt-get update
Ign:1 https://packages.sury.org/php stretch InRelease
Ign:2 https://packages.sury.org/php stretch Release
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Hit:7 http://security.debian.org stretch/updates InRelease
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch InRelease
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Get:9 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Err:7 http://security.debian.org stretch/updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Err:9 http://deb.debian.org/debian stretch-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Ign:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Err:3 https://packages.sury.org/php stretch/main i386 Packages
Ign:4 https://packages.sury.org/php stretch/main all Packages
Ign:5 https://packages.sury.org/php stretch/main Translation-en_US
Ign:6 https://packages.sury.org/php stretch/main Translation-en
Hit:10 http://deb.debian.org/debian stretch Release
Err:11 http://deb.debian.org/debian stretch Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
Reading package lists... Done
W: The repository 'https://packages.sury.org/php stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
E: Failed to fetch https://packages.sury.org/php/dists/stretch/main/binary-i386/Packages
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: Some index files failed to download. They have been ignored, or old ones used instead.
Did you wipe the /etc/apt/trusted.gpg.d/ directory?
It looks like you don't even have the gpg keys for the standard debian repositories.
We cannot know what you've done, but surely the above errors didn't just occur by themselves.
The problem is not relativ to trusted or not, I had the repo [trusted=yes] I have the same problem : failed to fetch... without error after the name of file :