## set up a container with software-properties installed from -proposed
$ rel=yakkety
$ name=yakkety-1
$ lxc launch ubuntu-daily:$rel $name
$ lxc exec $name -- sh -c 'while ! [ -e /run/cloud-init/result.json ]; do echo
.; sleep 1; done' </dev/null
$ lxc exec $name -- sh -e <<"EOF"
rel=$(lsb_release -sc)
line=$(awk '$1 == "deb" && $2 ~ /ubuntu.com/ {
printf("%s %s %s-proposed main universe\n", $1, $2, rel); exit(0) };
' "rel=$rel" /etc/apt/sources.list)
echo "$line" | sudo tee /etc/apt/sources.list.d/proposed.list
apt-get update -qq
apt-get install -qy software-properties-common </dev/null
EOF
$ lxc exec $name -- dpkg-query --show software-properties-common </dev/null
software-properties-common 0.96.24.7.1
$ lxc exec $name -- sh <<"EOF"
> add-apt-repository ppa:launchpad/buildd-staging -k hkp://bad-server
> echo exited with $?
> EOF
Buildd staging packages for Launchpad. New packages are staged here for
testing on the staging PPA buildds.
More info: https://launchpad.net/~launchpad/+archive/ubuntu/buildd-staging
gpg: keybox '/tmp/tmpx3nk68ee/pubring.gpg' created
gpg: keyserver receive failed: No keyserver available
Failed to add key.
exited with 1
** Tags removed: verification-needed
** Tags added: verification-done-xenial verification-done-yakkety
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1532855
Title:
add-apt-repository exits with 0 even when adding key failed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1532855/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs