package apport 2.19.1-0ubuntu3 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127

Bug #1522714 reported by prabu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

hi

I am new to ubuntu15.10

the following error I am getting while using the following commands

sudo apt-get update

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: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.1.17+dfsg-4ubuntu3_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-samba.postinst: 6: /var/lib/dpkg/info/python-samba.postinst: pycompile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127

Preparing to unpack .../apport_2.19.1-0ubuntu5_all.deb ...
/var/lib/dpkg/info/apport.prerm: 14: /var/lib/dpkg/info/apport.prerm: pyclean: 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: 14: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/apport_2.19.1-0ubuntu5_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127

Errors were encountered while processing:
 /var/cache/apt/archives/python-samba_2%3a4.1.17+dfsg-4ubuntu3_i386.deb
 /var/cache/apt/archives/apport_2.19.1-0ubuntu5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@silico-All-Series:/home/silico# dpkg: warning: subprocess old pre-removal script returned error exit status 127
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@silico-All-Series:/home/silico# dpkg: trying script from the new package instead ...
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@silico-All-Series:/home/silico# /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
bash: /var/lib/dpkg/tmp.ci/prerm:: No such file or directory
root@silico-All-Series:/home/silico# dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.1.17+dfsg-4ubuntu3_i386.deb (--unpack):
bash: syntax error near unexpected token `('
root@silico-All-Series:/home/silico# subprocess new pre-removal script returned error exit status 127
subprocess: command not found
root@silico-All-Series:/home/silico# /var/lib/dpkg/info/python-samba.postinst: 6: /var/lib/dpkg/info/python-samba.postinst: pycompile: not found
bash: /var/lib/dpkg/info/python-samba.postinst:: No such file or directory
root@silico-All-Series:/home/silico# dpkg: error while cleaning up:
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@silico-All-Series:/home/silico# subprocess installed post-installation script returned error exit status 127
subprocess: command not found
root@silico-All-Series:/home/silico#

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: apport 2.19.1-0ubuntu3
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic i686
ApportVersion: 2.19.1-0ubuntu3
Architecture: i386
Date: Fri Dec 4 18:38:20 2015
DuplicateSignature: package:apport:2.19.1-0ubuntu3:subprocess new pre-removal script returned error exit status 127
ErrorMessage: subprocess new pre-removal script returned error exit status 127
InstallationDate: Installed on 2015-12-03 (1 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release i386 (20151021)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.2ubuntu5.1
 apt 1.0.10.2ubuntu1
SourcePackage: apport
Title: package apport 2.19.1-0ubuntu3 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
prabu (prabugajjeraman) wrote :
prabu (prabugajjeraman)
Changed in apport (Ubuntu):
status: New → Fix Released
status: Fix Released → New
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like you are missing the python-minimal package which provides the pyclean script. You'll need to reinstall that for these errors to be resolved. You may need to use 'dpkg -i' to install python-minimal after manually downloading it.

Changed in apport (Ubuntu):
status: New → Incomplete
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.