adding a PPA key in pbuilder fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
I am trying to add the GPG key for my "stable" PPA (https:/
$ sudo pbuilder --login --save-after-login
[...] #pbuilder starts up
# apt-key adv --keyserver keyserver.
Executing: gpg --ignore-
gpg: requesting key B72FD7EC from hkp server keyserver.
gpgkeys: key 15331454B72FD7EC not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
# gpg import --ignore-
gpg: fatal: can't create directory `/home/
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768
# aptitude search ~i\!~M
i apt - Advanced front-end for dpkg
i aptitude - terminal-based package manager
i build-essential - Informational list of build-essential packages
i debhelper - helper programs for debian/rules
i dpkg-dev - Debian package development tools
i less - pager program similar to more
i libcapi20-3 - ISDN utilities - CAPI support libraries
i libcapi20-dev - ISDN utilities - CAPI development libraries
i nano - small, friendly text editor inspired by Pico
i sudo - Provide limited super user privileges to specific users
The second command was a desperate attempt to install the gpg key directly. The last command shows which packages are explicitly installed. My gut feeling tells me there is a package missing in a normal pbuilder installation for gpg to work and make a connection here, but of course, the problem could be elsewhere.
JFTR: The key exists of course on the keyserver in question. The apt-key command outside the pbuilder chroot works just fine. Try it!
Command in question run directly on the host:
$ sudo apt-key adv --keyserver keyserver.
Executing: gpg --ignore-
gpg: requesting key B72FD7EC from hkp server keyserver.
gpg: key B72FD7EC: public key "Launchpad PPA for Rolf Leggewie" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
Link to the key which of course is available
http://
I can't reproduce it.
As I didn't use my lucid pbuilder for some time, I updated it before I tried it (note: I use a precise host).
# apt-key adv --keyserver keyserver. ubuntu. com --recv-keys 15331454B72FD7EC time-conflict --no-options --no-default- keyring --secret-keyring /etc/apt/ secring. gpg --trustdb-name /etc/apt/ trustdb. gpg --keyring /etc/apt/ trusted. gpg --primary-keyring /etc/apt/ trusted. gpg --keyserver keyserver. ubuntu. com --recv-keys 15331454B72FD7EC secring. gpg' created ubuntu. com trustdb. gpg: trustdb created trusted. gpg ------- ------
Executing: gpg --ignore-
gpg: keyring `/etc/apt/
gpg: requesting key B72FD7EC from hkp server keyserver.
gpg: /etc/apt/
gpg: key B72FD7EC: public key "Launchpad PPA for Rolf Leggewie" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
# apt-key list
/etc/apt/
-------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <email address hidden>
sub 2048g/79164387 2004-09-12
pub 1024R/B72FD7EC 2009-01-19
uid Launchpad PPA for Rolf Leggewie