Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Debian Squeeze EC2 AMI. On booting up an instance with it and trying to install packages with apt-get I get errors saying there is no keyring installed. Here is the error with apt-get update:

root@ip:~# apt-get update
Get:1 squeeze Release.gpg [1672 B]
Ign squeeze/contrib Translation-en
Ign squeeze/main Translation-en
Ign squeeze/non-free Translation-en
Get:2 squeeze/updates Release.gpg [836 B]          
Ign squeeze/updates/contrib Translation-en                                  
Ign squeeze/updates/main Translation-en           
Hit squeeze Release                                  
Ign squeeze Release                                                         
Ign squeeze/updates/non-free Translation-en                              
Ign squeeze/main Sources/DiffIndex                                         
Get:3 squeeze/updates Release [86.9 kB]                                  
Ign squeeze/updates Release                         
Ign squeeze/contrib Sources/DiffIndex          
Ign squeeze/non-free Sources/DiffIndex
Ign squeeze/main amd64 Packages/DiffIndex
Ign squeeze/contrib amd64 Packages/DiffIndex
Ign squeeze/non-free amd64 Packages/DiffIndex
Ign squeeze/updates/main Sources/DiffIndex
Hit squeeze/main Sources                    
Hit squeeze/contrib Sources
Hit squeeze/non-free Sources
Hit squeeze/main amd64 Packages             
Hit squeeze/contrib amd64 Packages          
Ign squeeze/updates/contrib Sources/DiffIndex
Ign squeeze/updates/non-free Sources/DiffIndex
Ign squeeze/updates/main amd64 Packages/DiffIndex
Ign squeeze/updates/contrib amd64 Packages/DiffIndex
Ign squeeze/updates/non-free amd64 Packages/DiffIndex
Hit squeeze/non-free amd64 Packages         
Get:4 squeeze-backports Release.gpg [836 B]
Ign squeeze-backports/main Translation-en
Hit squeeze/updates/main Sources
Hit squeeze/updates/contrib Sources
Hit squeeze/updates/non-free Sources
Hit squeeze/updates/main amd64 Packages
Hit squeeze/updates/contrib amd64 Packages
Hit squeeze/updates/non-free amd64 Packages
Get:5 squeeze-backports Release [77.6 kB]
Ign squeeze-backports Release
Hit squeeze-backports/main amd64 Packages/DiffIndex
Hit squeeze-backports/main amd64 Packages
Fetched 3346 B in 0s (5298 B/s)
Reading package lists... Done
W: GPG error: squeeze Release: No keyring installed in /etc/apt/trusted.gpg.d/.
W: GPG error: squeeze/updates Release: No keyring installed in /etc/apt/trusted.gpg.d/.
W: GPG error: squeeze-backports Release: No keyring installed in /etc/apt/trusted.gpg.d/.

Googling around didn't really help me fix this problem. I tried installing the packages "debian-keyring" and "debian-archive-keyring" but the error does not go away. I'd like to avoid installing unstrusted packages. Any help is appreciated! Why does this error happen and where can I learn more?

share|improve this question
up vote 0 down vote accepted

Finally fixed this with:

wget --no-check-certificate
&& apt-key add archive-key-6.0.asc
apt-get update
apt-get install --reinstall debian-keyring debian-archive-keyring
apt-get update
share|improve this answer
This is a solution indeed. However, more interesting would be finding the cause of this to not exist in the AMI. What is the source of the AMI? – gertvdijk Dec 19 '12 at 14:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.