We tried multiple things to reproduce this bug, to no avail.
My last attempt was to inject an actual error in one of the
/usr/share/python3/runtime.d/*.rtupdate scripts to see how the upgrade (or
reinstall) would behave, and it does as expected:
Preparing to unpack .../python3_3.12.3-0ubuntu2_amd64.deb ...
running python pre-rtupdate hooks for python3.12...
stdout: andreas was here
stderr: andreas was here
error running python pre-rtupdate hook byobu
running python failed-pre-rtupdate hook byobu
stdout: andreas was here
stderr: andreas was here
dpkg: error processing archive
/var/cache/apt/archives/python3_3.12.3-0ubuntu2_amd64.deb (--unpack):
new python3 package pre-installation script subprocess returned error exit
status 1
Preparing to unpack .../libpython3-stdlib_3.12.3-0ubuntu2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.12.3-0ubuntu2) over (3.12.3-0ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/python3_3.12.3-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
We can see that:
a) pre-rtupdate hooks are run ("running python pre-rtupdate hooks for
python3.12...")
b) stdout and stderr of the failing rdupdate script are shown ("andreas was
here")
c) there is an error message saying exactly which hook failed ("error running
python pre-rtupdate hook byobu")
From the logs we have seen so far attached to this bug, we only get (a)
in them. Not (b) or (c).
I also tried release upgrades from jammy to noble, desktop and server,
and python upgrades in ubuntu desktop noble, and also couldn't reproduce
the error.
I'll mark this bug as incomplete reflecting the status that we have
tried many different ways to understand and reproduce this bug, but
haven't been successful yet.
** Changed in: python3-defaults (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078356
Title:
python3 preinst failure to run pre-rtupdate hooks
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2078356/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs