I verified that this is fixed when upgrading from Focal to Jammy.
Method:
lxc launch ubuntu:focal test lxc exec test bash apt -y update && apt -y full-upgrade apt -y install python-is-python2 do-release-upgrade -d
do-release-upgrade does suggest removing python-is-python2 as obsolete after the upgrade. However if you say no (the default) then the package remains.
Thanks Rolf for the report and the fix.
I verified that this is fixed when upgrading from Focal to Jammy.
Method:
lxc launch ubuntu:focal test
lxc exec test bash
apt -y update && apt -y full-upgrade
apt -y install python-is-python2
do-release-upgrade -d
do-release-upgrade does suggest removing python-is-python2 as obsolete after the upgrade. However if you say no (the default) then the package remains.
Thanks Rolf for the report and the fix.