package python3-uno 4:24.2.3-0ubuntu0.24.04.2 failed to install/upgrade: new python3-uno package pre-installation script subprocess returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
libreoffice (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ucf (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Failure occurred during a dist upgrade from 23.10 to 24.04
ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: python3-uno 4:24.2.
ProcVersionSign
Uname: Linux 6.5.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
Date: Fri May 31 10:53:15 2024
DuplicateSignature:
package:
Removing obsolete configuration file /etc/libreoffic
awk: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory
dpkg: error processing archive /tmp/apt-
new python3-uno package pre-installation script subprocess returned error exit status 127
ErrorMessage: new python3-uno package pre-installation script subprocess returned error exit status 127
InstallationDate: Installed on 2023-12-15 (168 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/
PythonDetails: /usr/bin/python2.7, Python 2.7.18, unpackaged
RelatedPackageV
dpkg 1.22.6ubuntu6
apt 2.7.14build2
SourcePackage: libreoffice
Title: package python3-uno 4:24.2.
UpgradeStatus: Upgraded to noble on 2024-05-31 (0 days ago)
tags: | removed: need-duplicate-check |
Changed in libreoffice (Ubuntu): | |
status: | Confirmed → Fix Released |
The issue here is that apt is forced to remove libreadline8 to allow installing libreadline8t64. The user has gawk installed which has the higher priority for awk.
gawk is not essential so it doesn't have the immediate handling of an essential package.
The python3-uno package uses awk in its preinst which fails due to the forced removal of libreadline8.
The only way out of this issue is to use explicitly mawk in the maintainer script which is Essential. The use of awk doesn't work because it's not an Essential facility (as it may be provided by gawk), and you don't want to depend on gawk since you don't use gawk specifically, and a dependency on awk would be satisfied by mawk.