Charm doesn't install for Focal due to lack of /usr/bin/python

Bug #1983562 reported by James Simpson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Mirror Charm
Fix Released
Undecided
Unassigned

Bug Description

Just tried a deploy on Focal:
2022-08-04 08:14:12 WARNING unit.ubuntu-mirror/0.install logger.go:60 /var/lib/juju/agents/unit-ubuntu-mirror-0/charm/hooks/install: /var/lib/juju/agents/unit-ubuntu-mirror-0/charm/hooks/install.real: /usr/bin/python: bad interpreter: No such file or directory
2022-08-04 08:14:12 WARNING unit.ubuntu-mirror/0.install logger.go:60 /var/lib/juju/agents/unit-ubuntu-mirror-0/charm/hooks/install: line 20: /var/lib/juju/agents/unit-ubuntu-mirror-0/charm/hooks/install.real: Success
2022-08-04 08:14:13 ERROR juju.worker.uniter.operation runhook.go:140 hook "install" (via explicit, bespoke hook script) failed: exit status 126
2022-08-04 08:14:13 INFO juju.worker.uniter resolver.go:144 awaiting error resolution for "install" hook

Installing "python-is-python2" and "juju resolve"ing works as a workaround.

It may be worth tackling this by implementing LP:1890205 and migrating to Python3.

Haw Loeung (hloeung)
description: updated
Revision history for this message
Junien F (axino) wrote :

Note that python-is-python2 is gone in jammy

Revision history for this message
Tom Haddon (mthaddon) wrote :

This has been addressed, marked as fix released.

Changed in ubuntu-mirror-charm:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.