package python3 3.9.7-4 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4

Bug #1958266 reported by shemgp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Upgraded to jammy and this crash showed up.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: python3 3.9.7-4
ProcVersionSignature: Ubuntu 5.13.0-25.26-generic 5.13.19
Uname: Linux 5.13.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Jan 18 23:57:23 2022
ErrorMessage: installed python3 package post-installation script subprocess returned error exit status 4
InstallationDate: Installed on 2021-10-05 (105 days ago)
InstallationMedia: Ubuntu-Server 21.10 "Impish Indri" - Beta amd64 (20211004)
Python3Details: /usr/bin/python3.9, Python 3.9.9, python3-minimal, 3.9.7-4
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.20.9ubuntu3
 apt 2.3.14
SourcePackage: python3-defaults
Title: package python3 3.9.7-4 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4
UpgradeStatus: Upgraded to jammy on 2022-01-18 (0 days ago)

Revision history for this message
shemgp (shemgp) wrote :
Revision history for this message
shemgp (shemgp) wrote :

Upgrade was successful but there were problems in the rtupdate like:

Exception: cannot get content of ibus-hangul

so had to:

cd /usr/share/python3/runtime.d
sudo mkdir temp
sudo mv ibus-hangul.rtupdate temp

Had to move all of those those .rtupdate that said cannot get content of. Then dpkg --configure -a continued successfully.

Revision history for this message
Stefano Rivera (stefanor) wrote :

What was the dpkg state of ibus-hangul?

It sounds like it wasn't installed, but the rtupdate file still existed on disk.

Revision history for this message
shemgp (shemgp) wrote : Re: [Bug 1958266] Re: package python3 3.9.7-4 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4

Yes, it said somewhere after the error that ibus-hangul is not installed.

On Wed, Jan 19, 2022 at 11:25 PM Stefano Rivera <email address hidden>
wrote:

> What was the dpkg state of ibus-hangul?
>
> It sounds like it wasn't installed, but the rtupdate file still existed
> on disk.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1958266
>
> Title:
> package python3 3.9.7-4 failed to install/upgrade: installed python3
> package post-installation script subprocess returned error exit status
> 4
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1958266/+subscriptions
>
>

Revision history for this message
Stefano Rivera (stefanor) wrote :

Given the inconsistency, marking as invalid. Unless that was caused by something in the archive, there's not much we can do here.

Changed in python3-defaults (Ubuntu):
status: New → Invalid
Revision history for this message
shemgp (shemgp) wrote :

Another office mate upgraded to jammy jellyfish development and this error
showed up:

Setting up python3 (3.9.7-4) ...
running python rtupdate hooks for python3.9...
E: py3compile:212: cannot create directory
/usr/share/sqlmap/thirdparty/gprof2dot/__pycache__: FileNotFoundError(2,
'No such
file or directory')
E: py3compile:212: cannot create directory
/usr/share/sqlmap/thirdparty/xdot/__pycache__: FileNotFoundError(2, 'No
such file
or directory')
[Errno 2] No such file or directory:
'/usr/share/sqlmap/thirdparty/gprof2dot/gprof2dot.py'
[Errno 2] No such file or directory:
'/usr/share/sqlmap/thirdparty/xdot/xdot.py'
error running python rtupdate hook sqlmap

On Thu, Jan 20, 2022 at 1:45 AM Stefano Rivera <email address hidden>
wrote:

> Given the inconsistency, marking as invalid. Unless that was caused by
> something in the archive, there's not much we can do here.
>
> ** Changed in: python3-defaults (Ubuntu)
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1958266
>
> Title:
> package python3 3.9.7-4 failed to install/upgrade: installed python3
> package post-installation script subprocess returned error exit status
> 4
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1958266/+subscriptions
>
>

Revision history for this message
shemgp (shemgp) wrote :

The fix was the same:

cd /usr/share/python3/runtime.d
sudo mkdir temp
sudo mv * temp

Revision history for this message
Vitalicus (lisnic-v) wrote :

mv: cannot move 'temp' to a subdirectory of itself, 'temp/temp'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.