package apport 2.20.1-0ubuntu2.5 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127

Bug #1702319 reported by Srikanth
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Incomplete
Undecided
Srikanth

Bug Description

I tried so many alternatives i didn't found relevant bug to fix it.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: apport 2.20.1-0ubuntu2.5
ProcVersionSignature: Ubuntu 4.8.0-54.57~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-54-generic x86_64
ApportLog:

ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CrashReports: 600:0:116:180223:2017-07-04 20:24:38.287366390 +0530:2017-07-04 20:24:39.287366390 +0530:/var/crash/apport.0.crash
Date: Tue Jul 4 20:24:38 2017
DpkgTerminalLog:
 Preparing to unpack .../apport_2.20.1-0ubuntu2.4_all.deb ...
 /var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: pyclean: not found
 dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb (--unpack):
  subprocess installed pre-removal script returned error exit status 127
DuplicateSignature:
 package:apport:2.20.1-0ubuntu2.5
 Preparing to unpack .../apport_2.20.1-0ubuntu2.4_all.deb ...
 /var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: pyclean: not found
 dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb (--unpack):
  subprocess installed pre-removal script returned error exit status 127
ErrorMessage: subprocess installed pre-removal script returned error exit status 127
InstallationDate: Installed on 2017-03-30 (95 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: apport
Title: package apport 2.20.1-0ubuntu2.5 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Srikanth (sri1992) wrote :
Changed in apport (Ubuntu):
assignee: nobody → Srikanth (sri1992)
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 apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

The relevant apport.prerm code for Ubuntu 16.04:

```
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
 pyclean -p apport
else
 dpkg -L apport | grep \.py$ | while read file
 do
  rm -f "${file}"[co] >/dev/null
   done
fi
```

pyclean should not be called if it is not found. Do you still experience this issue or can reproduce it?

Changed in apport (Ubuntu):
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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