I have an environment behind maas-proxy, this is how machines connect to the external world. I've added an additional repository in MAAS to add a PPA, however, when the PPA is added, it fails with:
2016-08-30 13:39:39,473 - util.py[WARNING]: Failed to run debconf-set-selections for grub-dpkg
2016-08-30 13:39:52,061 - cc_apt_configure.py[ERROR]: add-apt-repository failed.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_configure.py", line 397, in add_apt_sources
util.subp(["add-apt-repository", source], target=target)
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1832, in subp
cmd=args)
cloudinit.util.ProcessExecutionError: Unexpected error while running command.
Command: ['add-apt-repository', 'ppa:andreserl/maas']
Exit code: 1
Reason: -
Stdout: "Cannot add PPA: 'ppa:~andreserl/ubuntu/maas'.\nERROR: '~andreserl' user or team does not exist.\n"
Stderr: ''
2016-08-30 13:39:52,124 - util.py[WARNING]: Running module apt-configure (<module 'cloudinit.config.cc_apt_configure' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_configure.py'>) failed
ubuntu@node01:/var/log$ sudo add-apt-repository ppa:andreserl/maas
This is probably a dupe of bug 1618467 which has more info in it.
I'm going to dupe it, if you disagree un-dupe it.