Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Before releasing packages to Debian (and later sync them to Ubuntu) I need to test them in a sid chroot, but I get this error on a clean 14.04 system:

$ sudo DIST=sid ARCH=i386 pbuilder create
[sudo] password for u: 
I: Distribution is unstable.
I: Current time: Mon Mar 17 09:37:53 EDT 2014
I: pbuilder-time-stamp: 1395063473
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
E: Release signed by unknown key (key id 8B48AD6246925553)
E: debootstrap failed
W: Aborting with an error
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//8688 and its subdirectories

What type of keys do I have to install to avoid such failure?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

In order to get it fixed I had to install:

sudo apt-get install debian-archive-keyring

And then create the chroot with

sudo DIST=sid ARCH=i386 pbuilder create --debootstrapopts \
--keyring=/usr/share/keyrings/debian-archive-keyring.gpg
share|improve this answer

With Ubuntu 12.04 Precise you might want to check the comment #18 at https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/599695

In short:

  1. The key ID 8B48AD6246925553 in the error message is for Debian 7.0 Wheezy, so...
  2. ... find the corresponding key 46925553 from http://keyserver.ubuntu.com:11371/pks/lookup?op=vindex&search=debian+archive&fingerprint=on
  3. Save the key to <file>
  4. Add it with
sudo apt-key add <file>

Now you can do

pbuilder-dist sid create --debootstrapopts --keyring=/etc/apt/trusted.gpg

and after this you can build stuff without having to give the keyring option anymore.

Even better would be to add the key directly to /usr/share/keyrings/debian-archive-keyring.gpg.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.