package python3-apt 1.6.0~rc2ubuntu2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127

Bug #1763844 reported by Giacomo Trimarchi
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Problem occurred setting the displays arrangement

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python3-apt 1.6.0~rc2ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
Date: Fri Apr 13 17:34:14 2018
ErrorMessage: subprocess new pre-removal script returned error exit status 127
InstallationDate: Installed on 2017-04-13 (364 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-2
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu1
 apt 1.6~beta1
SourcePackage: python-apt
Title: package python3-apt 1.6.0~rc2ubuntu2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127
UpgradeStatus: Upgraded to bionic on 2018-04-13 (0 days ago)

Revision history for this message
Giacomo Trimarchi (giacomo.trimarchi3173) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

From the log file:

Preparing to unpack .../python3-apt_1.6.0~rc2ubuntu2_amd64.deb ...
/var/lib/dpkg/info/python3-apt.prerm: 6: /var/lib/dpkg/info/python3-apt.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/python3-apt_1.6.0~rc2ubuntu2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127

Revision history for this message
Brian Murray (brian-murray) wrote :

Does the file /usr/bin/py3clean exist on your system?

Changed in python-apt (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Chris Coleman (coleman-f2s) wrote :

It does in my system:
chris@ubuntu-quadcore:~$ ls -l /usr/bin/py3clean
-rwxr-xr-x 1 root root 7806 Apr 10 10:48 /usr/bin/py3clean

Revision history for this message
Julian Andres Klode (juliank) wrote :

py3clean is only executed if which tells us it exists:

if which py3clean >/dev/null 2>&1; then
        py3clean -p python3-apt
else

hence it's quite strange.

Revision history for this message
Chris Coleman (coleman-f2s) wrote :

It should be finding that it exists and should execute that version based on the following little script that I just executed:

chris@ubuntu-quadcore:~$ if which py3clean >/dev/null 2>&1; then
> echo "IT EXISTS: `which py3clean`";
> fi
IT EXISTS: /usr/bin/py3clean

Revision history for this message
Chris Coleman (coleman-f2s) wrote :

I fixed the display problem by running the following command, which appeared to work OK:

sudo apt-get install --reinstall python-apt

After that I opened "Settings" and on the "Screen Display" tab I then had the choice of choosing the proper video card driver. I chose it, and restarted, and I now have a sensible display setting of 1680*1050.

As a point of interest, when the display was set to 640*480 it was extremely difficult to use things like "Settings" due to the inability to scroll down on the wizard or the screen. Perhaps some testing of such things against what I presume is the default screen setting of 640*480 would make trouble shooting easier.

Thanks,
Chris

tags: added: pyclean-not-found
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.