[Bug 2078356] Re: python3 preinst failure to run pre-rtupdate hooks
Andreas Hasenack
2078356 at bugs.launchpad.net
Thu Sep 12 17:18:53 UTC 2024
Oracular also affected, obviously:
Good case:
root at o-py3-errors:~# apt install --reinstall python3
Summary:
Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
Download size: 0 B / 24.0 kB
Space needed: 0 B / 98.5 GB available
(Reading database ... 35925 files and directories currently installed.)
Preparing to unpack .../python3_3.12.5-1_amd64.deb ...
running python pre-rtupdate hooks for python3.12...
Unpacking python3 (3.12.5-1) over (3.12.5-1) ...
Setting up python3 (3.12.5-1) ...
running python rtupdate hooks for python3.12...
running python post-rtupdate hooks for python3.12...
Processing triggers for man-db (2.12.1-3) ...
The bug:
root at o-py3-errors:~# errors=andreas-was-here apt install --reinstall python3
Summary:
Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
Download size: 0 B / 24.0 kB
Space needed: 0 B / 98.5 GB available
(Reading database ... 35925 files and directories currently installed.)
Preparing to unpack .../python3_3.12.5-1_amd64.deb ...
running python pre-rtupdate hooks for python3.12...
dpkg: error processing archive /var/cache/apt/archives/python3_3.12.5-1_amd64.deb (--unpack):
new python3 package pre-installation script subprocess returned error exit status 3
Errors were encountered while processing:
/var/cache/apt/archives/python3_3.12.5-1_amd64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
** Also affects: python3-defaults (Ubuntu Focal)
Importance: Undecided
Status: New
** Also affects: python3-defaults (Ubuntu Jammy)
Importance: Undecided
Status: New
** Also affects: python3-defaults (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: python3-defaults (Ubuntu Oracular)
Importance: Undecided
Status: Confirmed
** Description changed:
# README first
- If you are hit by this bug, please provide the information asked in the
- comment #53 further down in this page, thanks
+ If you are hit by this bug, please check if your root user's environment
+ has the "errors" variable set:
+
+ env | grep errors
+
+ sudo env | grep errors
+
[ Original Description ]
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 .../libpython3-stdlib_3.12.3-0ubuntu2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.12.3-0ubuntu2) over (3.12.3-0ubuntu1) ...
Preparing to unpack .../libsmartcols1_2.39.3-9ubuntu6.1_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.39.3-9ubuntu6.1) over (2.39.3-9ubuntu6) ...
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)
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3 3.12.3-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-41.41-generic 6.8.12
Uname: Linux 6.8.0-41-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Aug 29 10:52:19 2024
InstallationDate: Installed on 2024-07-13 (47 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
SourcePackage: python3-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
** Changed in: python3-defaults (Ubuntu Focal)
Status: New => Confirmed
** Changed in: python3-defaults (Ubuntu Jammy)
Status: New => Confirmed
** Changed in: python3-defaults (Ubuntu Noble)
Status: New => Confirmed
** Changed in: python3-defaults (Ubuntu Focal)
Importance: Undecided => High
** Changed in: python3-defaults (Ubuntu Jammy)
Importance: Undecided => High
** Changed in: python3-defaults (Ubuntu Noble)
Importance: Undecided => High
** Changed in: python3-defaults (Ubuntu Oracular)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2078356
Title:
python3 preinst failure to run pre-rtupdate hooks
Status in python3-defaults package in Ubuntu:
Confirmed
Status in python3-defaults source package in Focal:
Confirmed
Status in python3-defaults source package in Jammy:
Confirmed
Status in python3-defaults source package in Noble:
Confirmed
Status in python3-defaults source package in Oracular:
Confirmed
Bug description:
# README first
If you are hit by this bug, please check if your root user's
environment has the "errors" variable set:
env | grep errors
sudo env | grep errors
[ Original Description ]
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 .../libpython3-stdlib_3.12.3-0ubuntu2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.12.3-0ubuntu2) over (3.12.3-0ubuntu1) ...
Preparing to unpack .../libsmartcols1_2.39.3-9ubuntu6.1_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.39.3-9ubuntu6.1) over (2.39.3-9ubuntu6) ...
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)
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3 3.12.3-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-41.41-generic 6.8.12
Uname: Linux 6.8.0-41-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Aug 29 10:52:19 2024
InstallationDate: Installed on 2024-07-13 (47 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
SourcePackage: python3-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2078356/+subscriptions
More information about the foundations-bugs
mailing list