Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-16-2009, 12:30 PM   #1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,619

Rep: Reputation: 50
There is no public key available for the following key ID


I would like to update my etch to lenny and getting these public keys problems:
# apt-get update
Get:1 lenny Release.gpg [386B]
Hit lenny Release
Ign lenny/main Packages/DiffIndex
Ign lenny/main Sources/DiffIndex
Hit lenny/main Packages
Hit lenny/main Sources
Hit lenny Release.gpg
Get:2 lenny/updates Release.gpg [189B]
Get:3 lenny Release [63.2kB]
Hit lenny/updates Release
Ign lenny/updates/main Packages/DiffIndex
Ign lenny/updates/contrib Packages/DiffIndex
Ign lenny/updates/non-free Packages/DiffIndex
Get:4 lenny/main Packages/DiffIndex
Ign lenny/main Packages/DiffIndex
Hit lenny/updates/main Packages
Get:5 lenny/contrib Packages/DiffIndex
Ign lenny/contrib Packages/DiffIndex
Get:6 lenny/non-free Packages/DiffIndex
Hit lenny/updates/contrib Packages
Ign lenny/non-free Packages/DiffIndex
Hit lenny/main Packages
Hit lenny/contrib Packages
Hit lenny/non-free Packages
Hit lenny/updates/non-free Packages
Fetched 63.2kB in 1s (40.2kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
W: There is no public key available for the following key IDs:
W: You may want to run apt-get update to correct these problems
Old 02-16-2009, 01:43 PM   #2
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
Try this as root:
# gpg --recv-keys 4D270D06F42584E6

# gpg --export 4D270D06F42584E6 | apt-key add -
That should download the key from a public keyserver and then the second command adds it to apt. You may need to specify a keyserver if the default doesn't work. There are several public ones available.
Old 02-16-2009, 02:01 PM   #3
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,619

Original Poster
Rep: Reputation: 50
thx, it works well, but I've found other way of life:
# apt-get install debian-keyring debian-archive-keyring
# apt-key update
1 members found this post helpful.
Old 11-30-2009, 10:11 AM   #4
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
The answer is here:
Old 07-21-2014, 12:54 AM   #5
LQ Newbie
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
It really helped!!!!

Thanks cccc
Your answer helped me.

Last edited by pathfinder123; 07-21-2014 at 12:55 AM.
Old 05-29-2015, 08:47 AM   #6
LQ Newbie
Registered: Jun 2008
Posts: 15

Rep: Reputation: 0

cccc your answered help me ))

Old 09-04-2015, 11:52 AM   #7
LQ Newbie
Registered: Sep 2015
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
Since I see that this thread was recently resurrected, and even though cccc answered their own question, I thought that I would add that as of Debian 7, you can simply open the Synaptic package manager and choose 'Mark all upgrades'.

Although the debian-keyring selection isn't checked, the debian-archive-keyring is shown as an upgrade, and once done upgrading this does fix the issue.

Cccc, I was using your solution for a long time, thank you for that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Public Key not Available CrownAmbassador Ubuntu 4 09-12-2008 03:27 AM
Public key, private key explained calande Linux - Security 3 06-12-2008 05:23 AM
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 03:20 AM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration