Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-18-2007, 03:49 PM   #1
Free Thinker
LQ Newbie
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
apt-key gpg error

i have a problem with adding gpg keys with apt-key add. the (.asc) keys are added fine, but if i want to add (.gpg) key, thats what i get:

sudo apt-key add A42A6CF5.gpg 
gpg: [don't know]: invalid packet (ctb=0a)
gpg: keydb_get_keyblock failed: eof
gpg: [don't know]: invalid packet (ctb=0a)
gpg: /etc/apt/trusted.gpg: copy to `/etc/apt/trusted.gpg.tmp' failed: invalid packet
gpg: error writing keyring `/etc/apt/trusted.gpg': invalid packet
gpg: error reading `A42A6CF5.gpg': invalid packet
gpg: import from `A42A6CF5.gpg' failed: invalid packet
and here is the apt-keys list. note the bottom lines:

sudo apt-key list
pub   1024D/2D230C5F 2006-01-03 [expired: 2007-02-07]
uid                  Debian Archive Automatic Signing Key (2006) <>

pub   1024D/6070D3A1 2006-11-20 [expires: 2009-07-01]
uid                  Debian Archive Automatic Signing Key (4.0/etch) <>

pub   1024D/ADB11277 2006-09-17
uid                  Etch Stable Release Key <>

pub   1024D/BBE55AB3 2007-03-31 [expires: 2010-03-30]
uid                  Debian-Volatile Archive Automatic Signing Key (4.0/etch)
sub   2048g/36CA98F3 2007-03-31 [expires: 2010-03-30]

pub   1024D/927CCC73 2007-06-04
uid                  innotek GmbH (archive signing key) <>
sub   2048g/F0C31E29 2007-06-04

pub   1024D/1F41B907 1999-10-03
uid                  Christian Marillat <>
uid                  Christian Marillat <>
sub   1536g/C28DCC42 1999-10-03
sub   1024D/5D3877A7 2002-08-26

gpg: [don't know]: invalid packet (ctb=0a)
gpg: keyring_get_keyblock: read error: invalid packet
gpg: keydb_get_keyblock failed: invalid keyring
Old 09-04-2015, 02:37 AM   #2
LQ Newbie
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
Hello everybody!

Even if this post is 8 years old, I have exactly the same problem. I am using Debian Sid. Is there somebody who have an answer?


error, gpg, keys

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
Import GPG Key Error Peter_APIIT Fedora 3 06-30-2007 03:37 AM
I get an error message when I try to get a GPG key royeo Linux - General 1 11-12-2006 02:27 AM
can see gpg key in apt-key, still can't update Dan63043 Ubuntu 2 09-25-2006 11:35 AM
Error: Could not find the GPG Key necessary to validate pkg pbd22 Linux - Kernel 3 07-29-2006 02:53 PM
Apt GPG error! please help THEHERO Debian 6 10-19-2005 07:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:34 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