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
Bugs, which is subscribed to 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/1902022/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs