[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#887706: apt-key fails to import key.asc



Control: severity -1 minor

On Fri, Jan 19, 2018 at 10:59:43AM +0100, Harald Dunkel wrote:
> Package: apt
> Version: 1.4.8
> 
> apt-key fails to import a single public key (ascii). Sample:
> 
> % gpg --armor --export harri@afaics.de >/tmp/y.asc
> :
> # apt-key add /tmp/y.asc
> gpg: [don't know]: invalid packet (ctb=2d)
> gpg: keydb_get_keyblock failed: Value not found
> gpg: [don't know]: invalid packet (ctb=2d)
> gpg: /tmp/apt-key-gpghome.8nCyc17sTR/pubring.gpg: copy to '/tmp/apt-key-gpghome.8nCyc17sTR/pubring.gpg.tmp' failed: Invalid packet
> gpg: error writing keyring '/tmp/apt-key-gpghome.8nCyc17sTR/pubring.gpg': Invalid packet
> gpg: [don't know]: invalid packet (ctb=2d)
> gpg: error reading '/tmp/y.asc': Invalid packet
> gpg: no valid OpenPGP data found.
> gpg: import from '/tmp/y.asc' failed: Invalid packet

apt-key add is a legacy interface that should not be used. It's
also not guaranteed to work on a system, since it requires gpg.

To use asc keyfiles, please drop them in trusted.gpg.d as the
manual page says you should install key files.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: