[Bug 1902022] Re: package dh-python 4.20191017ubuntu7 failed to install/upgrade: installed dh-python package pre-removal script subprocess returned error exit status 127
Stefano Rivera
1902022 at bugs.launchpad.net
Tue Oct 19 18:56:24 UTC 2021
Hrm, not sure how that happened, the prerm script says:
if which py3clean >/dev/null 2>&1; then
py3clean -p dh-python
else
dpkg -L dh-python | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi
So, if py3clean isn't on PATH it should have used the second branch. Maybe /usr/bin/python3 was broken?
** Changed in: dh-python (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dh-python in Ubuntu.
https://bugs.launchpad.net/bugs/1902022
Title:
package dh-python 4.20191017ubuntu7 failed to install/upgrade:
installed dh-python package pre-removal script subprocess returned
error exit status 127
Status in dh-python package in Ubuntu:
Incomplete
Bug description:
This error occured after my attempts to correct the inability to
import pygame into PyCharm-Environment (it works in Python2.7 and
Python3.6 and 3.8). A package distutils.utils is requested, which I
cannot find anywhere and should be superseeded by setuptools.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: dh-python 4.20191017ubuntu7
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.10
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Oct 28 20:55:00 2020
DuplicateSignature:
package:dh-python:4.20191017ubuntu7
Removing dh-python (4.20191017ubuntu7) ...
/var/lib/dpkg/info/dh-python.prerm: 7: py3clean: not found
dpkg: error processing package dh-python (--remove):
installed dh-python package pre-removal script subprocess returned error exit status 127
ErrorMessage: installed dh-python package pre-removal script subprocess returned error exit status 127
InstallationDate: Installed on 2020-04-07 (205 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
PackageArchitecture: all
Python3Details: /usr/bin/python3, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.8, Python 3.8.5, python-is-python2, 2.7.17-4
RelatedPackageVersions:
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SourcePackage: dh-python
Title: package dh-python 4.20191017ubuntu7 failed to install/upgrade: installed dh-python package pre-removal script subprocess returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/1902022/+subscriptions
More information about the foundations-bugs
mailing list