package python3 3.5.1-3 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127

Bug #1671837 reported by hoda
70
This bug affects 13 people
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Invalid
High
Unassigned

Bug Description

I got this error by removing and installing python ! how can i fix it?

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python3 3.5.1-3
Uname: Linux 4.5.4-040504-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Thu Mar 9 20:56:19 2017
DuplicateSignature:
 package:python3:3.5.1-3
 Removing python3 (3.5.1-3) ...
 /var/lib/dpkg/info/python3.prerm: 5: /var/lib/dpkg/info/python3.prerm: py3clean: not found
 dpkg: error processing package python3 (--purge):
  subprocess installed pre-removal script returned error exit status 127
ErrorMessage: subprocess installed pre-removal script returned error exit status 127
InstallationDate: Installed on 2016-05-08 (305 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.15ubuntu0.2
SourcePackage: python3-defaults
Title: package python3 3.5.1-3 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
hoda (ehfo0) 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 python3-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

@ Hoda

This error can only be fixed by a developer. You'll be noticed when it's done.

Changed in python3-defaults (Ubuntu):
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

dpkg: python3.5: dependency problems, but removing anyway as you requested:
 python3 depends on python3.5 (>= 3.5.1-2~).

Removing python3.5 (3.5.2-2ubuntu0~16.04.1) ...
dpkg: python3.5-minimal: dependency problems, but removing anyway as you requested:
 python3-minimal depends on python3.5-minimal (>= 3.5.1-2~).

Removing python3.5-minimal (3.5.2-2ubuntu0~16.04.1) ...
Unlinking and removing bytecode for runtime python3.5
Purging configuration files for python3.5-minimal (3.5.2-2ubuntu0~16.04.1) ...
dpkg: python3: dependency problems, but removing anyway as you requested:
 python3-xkit depends on python3:any (>= 3.3.2-2~).
 python3-jwt depends on python3:any (>= 3.3.2-2~).
 python3-louis depends on python3:any (>= 3.3.2-2~).
 python3-debian depends on python3:any (>= 3.3.2-2~).
 python3-ptyprocess depends on python3:any (>= 3.3.2-2~).
 dh-python depends on python3:any (>= 3.3.2-2~).
 python3-setuptools depends on python3:any (>= 3.3.2-2~).
 gnome-menus depends on python3:any (>= 3.1~).
 python3-urllib3 depends on python3:any (>= 3.3.2-2~).
 python3-requests depends on python3:any (>= 3.3.2-2~).
 python3-pip depends on python3:any (>= 3.4~).
 python3-httplib2 depends on python3:any (>= 3.3.2-2~).
 python3-html5lib depends on python3:any (>= 3.3.2-2~).
 python3-chardet depends on python3:any (>= 3.3.2-2~).
 python3-pexpect depends on python3:any (>= 3.3.2-2~).
 python3-pyasn1 depends on python3:any (>= 3.3.2-2~).
 python3-feedparser depends on python3:any (>= 3.3.2-2~).
 python3-blinker depends on python3:any (
Removing python3 (3.5.1-3) ...
/var/lib/dpkg/info/python3.prerm: 5: /var/lib/dpkg/info/python3.prerm: py3clean: not found
dpkg: error processing package python3 (--purge):
 subprocess installed pre-removal script returned error exit status 127

don't remove it, what should I say?

Changed in python3-defaults (Ubuntu):
status: Confirmed → Invalid
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.