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

Bug #1605657 reported by Alaa
184
This bug affects 42 people
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Invalid
High
Unassigned

Bug Description

I delet python3.5 by wrong using sudo apt-get remove python3.5 and to fix that I logged in from terminal because I lost my desktop terminal and I reinstalled the ubuntu dektop

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python3 3.5.1-3
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Fri Jul 22 14:48:23 2016
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 (--remove):
  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-04-18 (94 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
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: Upgraded to xenial on 2016-06-01 (50 days ago)

Revision history for this message
Alaa (r11alaa) 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
Changed in python3-defaults (Ubuntu):
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

the logs are from the removal. what should I say? not a bug if you remove it

Removing update-notifier (3.168.1) ...
Removing update-notifier-common (3.168.1) ...
Removing update-manager (1:16.04.3) ...
Removing ubuntu-release-upgrader-gtk (1:16.04.14) ...
Removing update-manager-core (1:16.04.3) ...
dpkg: warning: while removing update-manager-core, directory '/var/lib/update-manager' not empty so not removed
Removing ubuntu-release-upgrader-core (1:16.04.14) ...
Removing python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu14) ...
Removing python3-aptdaemon (1.1.1+bzr982-0ubuntu14) ...
Removing python3-dbus (1.2.0-3) ...
Removing python3-distupgrade (1:16.04.14) ...
Removing python3-gi (3.20.0-0ubuntu1) ...
Removing python3-update-manager (1:16.04.3) ...
Removing python3-apt (1.1.0~beta1build1) ...
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-2~16.01) ...
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-2~16.01) ...
Unlinking and removing bytecode for runtime python3.5
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~).
 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-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 (>= 3.3.2-2~).
 python3-problem-report depends on python3:any (>= 3.3.2-2~).
 python3-defer depends on pyt
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 (--remove):
 subprocess installed pre-removal script returned error exit status 127

Changed in python3-defaults (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jess Stuart (mr.entropy) wrote :

If this is an "Invalid" bug, can anyone offer help on how to correct this problem? Matthias Klose (doko), any help?

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.