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

Adam Conrad adconrad at 0c3.net
Tue Oct 2 18:00:06 UTC 2012


Something like this (untested) should do the trick.

** Patch added: "lp1060335.patch"
   https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1060335/+attachment/3365800/+files/lp1060335.patch

-- 
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:
  New

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