Let me catch up. I created the file /var/lib/dpkg/info/python3.preinst and copied in the text from your post. I added the set-x under set -e
I ran sudo -f install and this was the output: sudo apt -f install Reading package lists... Done Building dependency tree... Done Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: gnome-shell python3 ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk Suggested packages: gir1.2-malcontent-0 gir1.2-telepathyglib-0.12 gir1.2-telepathylogger-0.2 gnome-backgrounds gnome-shell-extension-prefs chrome-gnome-shell python3-doc python3-tk python3-venv The following packages will be upgraded: gnome-shell python3 ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk 4 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 2 not fully installed or removed. Need to get 988 kB/1,011 kB of archives. After this operation, 1,024 B disk space will be freed. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 ubuntu-release-upgrader-gtk all 1:24.04.22 [9,070 B] Get:2 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 ubuntu-release-upgrader-core all 1:24.04.22 [27.4 kB] Get:3 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 gnome-shell amd64 46.0-0ubuntu6~24.04.4 [952 kB] Fetched 988 kB in 1s (1,588 kB/s) (Reading database ... 218459 files and directories currently installed.) Preparing to unpack .../python3_3.12.3-0ubuntu2_amd64.deb ... running python pre-rtupdate hooks for python3.12... 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 3 Preparing to unpack .../ubuntu-release-upgrader-gtk_1%3a24.04.22_all.deb ... Unpacking ubuntu-release-upgrader-gtk (1:24.04.22) over (1:24.04.19) ... Preparing to unpack .../ubuntu-release-upgrader-core_1%3a24.04.22_all.deb ... Unpacking ubuntu-release-upgrader-core (1:24.04.22) over (1:24.04.19) ... Preparing to unpack .../gnome-shell_46.0-0ubuntu6~24.04.4_amd64.deb ... Unpacking gnome-shell (46.0-0ubuntu6~24.04.4) over (46.0-0ubuntu6~24.04.3) ... 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) -- 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 upgrade has unmet dependencies 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
