Re: import key failure, apparent bug
john doe via Gnupg-users <[email protected]> Fri, 29 May 2026 07:21:47 +0200
| Newsgroups | gmane.comp.encryption.gpg.user |
|---|---|
| Message-ID | <[email protected]> |
On 5/28/26 19:55, Joshua Hudson via Gnupg-users wrote: > I have here a private key that gpg won't import. > > ~/keystest$ gpg --homedir home --import private2.gpg > gpg: WARNING: unsafe permissions on homedir '/home/DEXTER2/jhudson/ > keystest/home' > gpg: read_block: read error: Invalid packet > gpg: import from 'private2.gpg' failed: Invalid keyring > gpg: Total number processed: 0 > > The problem with the error message is it's wrong. I have hand verified > the packet structure > is correct. The file can be imported by https://github.com/mattosaurus/ > pgpcore (which isn't > where it came from) and the resulting imported key is a working key. > > This is a test key file being imported into a test keyring; I don't mind > publishing the private key > in entirety. > > Apologies for the headerless base64, gpg won't armor the file for me > So you have twoerrors with the gpg installation that you have.. How did you install it and what version is this? -- John Doe