[Bug 1060335] Re: apt-add-repository fails

Scott Moser smoser at ubuntu.com
Fri Oct 5 18:33:24 UTC 2012


The change here seems not to have fixed the problem:
$ dpkg -S `which apt-add-repository`
software-properties-common: /usr/bin/apt-add-repository

$ dpkg-query --show software-properties-common
software-properties-common      0.92.9

$ sudo apt-add-repository ppa:smoser/
ppa -y
gpg: keyring `/tmp/tmps0qrz0/secring.gpg' created
gpg: keyring `/tmp/tmps0qrz0/pubring.gpg' created
gpg: requesting key 03683F77 from hkp server keyserver.ubuntu.com
gpg: fatal: /home/ubuntu/.gnupg: directory does not exist!
secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768
$ echo $?
0

$ sudo apt-get update -q
...
Fetched 15.1 kB in 0s (93.8 kB/s)
Reading package lists...
W: GPG error: http://ppa.launchpad.net quantal Release: The following signatures couldn't
 be verified because the public key is not available: NO_PUBKEY 5CFF1EA993EE8CC5
W: GPG error: http://ppa.launchpad.net quantal Release: The following signatures couldn't
 be verified because the public key is not available: NO_PUBKEY 0620BBCF03683F77

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1060335

Title:
  apt-add-repository fails

Status in “software-properties” package in Ubuntu:
  Fix Released

Bug description:
  $ sudo apt-add-repository ppa:maas-maintainers/dailybuilds -y       
  gpg: keyring `/tmp/tmpf0nr53/secring.gpg' created
  gpg: keyring `/tmp/tmpf0nr53/pubring.gpg' created
  gpg: requesting key 93EE8CC5 from hkp server keyserver.ubuntu.com
  gpg: fatal: /home/ubuntu/.gnupg: directory does not exist!
  secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768

  If I do create .gnupg for it, then:
  $ sudo apt-add-repository ppa:maas-maintainers/dailybuilds -y
  gpg: keyring `/tmp/tmp54k44x/secring.gpg' created
  gpg: keyring `/tmp/tmp54k44x/pubring.gpg' created
  gpg: requesting key 93EE8CC5 from hkp server keyserver.ubuntu.com
  gpg: /home/ubuntu/.gnupg/trustdb.gpg: trustdb created
  gpg: key 93EE8CC5: public key "Launchpad PPA for MaaS Maintainers" imported
  gpg: Total number processed: 1
  gpg:               imported: 1  (RSA: 1)
  gpg: keyring `/home/ubuntu/.gnupg/secring.gpg' created
  OK

  but
  a.) its still noisy
  b.) I now have root owned files in my .gnupg directory:
  $ ls -l .gnupg/
  total 4
  -rw------- 1 root root    0 Oct  2 17:08 secring.gpg
  -rw------- 1 root root 1200 Oct  2 17:08 trustdb.gpg

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: software-properties-common 0.92.8
  ProcVersionSignature: User Name 3.5.0-16.25-generic 3.5.4
  Uname: Linux 3.5.0-16-generic x86_64
  ApportVersion: 2.6.1-0ubuntu1
  Architecture: amd64
  Date: Tue Oct  2 17:10:44 2012
  Ec2AMI: ami-00000159
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: software-properties
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1060335/+subscriptions




More information about the foundations-bugs mailing list