can't add private ppa raw entry wihout lp login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When moving a server from focal to jammy, the basic charm layer and charm-helpers assumes add-apt-repository allows adding bare/raw source list lines.
While running somtething like:
add-apt-repository --yes "deb https:/
it fails with:
Traceback (most recent call last):
File "/usr/bin/
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/
shortcut.add()
File "/usr/lib/
self.add_key()
File "/usr/lib/
if not all((self.
File "/usr/lib/
key = self.lpppa.
File "/usr/lib/
response, content = self.root.
File "/usr/lib/
raise error
lazr.restfulcli
Response headers:
---
-content-encoding: gzip
content-length: 78
content-
content-type: text/plain;
date: Wed, 19 Apr 2023 13:36:06 GMT
server: gunicorn
status: 401
strict-
vary: Accept,
x-content-
x-frame-options: SAMEORIGIN
x-launchpad-
x-lazr-
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: 7744610e-
x-vcs-revision: 473868c1cc6b58a
x-xss-protection: 1; mode=block
---
Response body:
---
b"(<Archive at 0x7f23f8b32a30>, 'getSigningKeyD
I think is is an unhandled error in the PPAShortcutHandler and it should continue to the next one in the loop at, at least as the uri is not a `ppa:` one, see: https:/
Looked at the a bit closer and it seems that the PPAShortcutHandler is trying to handle the above raw sources.list line and trying to contact launchpad.
In this setup, which is quite common for servers, the charm takes care of calling add-apt-repository but also handles the GPG keys on it's own.