add_source fails: add-apt-repository not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
Unassigned |
Bug Description
From the topbeat charm:
Traceback (most recent call last):
File "hooks/install", line 19, in <module>
main()
File "/var/lib/
bus.dispatch()
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
configure_
File "/var/lib/
add_
File "/var/lib/
subprocess.
File "/usr/lib/
retcode = call(*popenargs, **kwargs)
File "/usr/lib/
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'add-apt-
add-apt-repository is not present on all Ubuntu instances. Some don't have it by default.
Changed in charm-helpers: | |
status: | Triaged → Fix Released |
bootstrap needs to ensure the relevant package is installed. I think it is software- properties- common, but I'm not sure if it is the same across all releases.