Public bug reported:

Error is thrown during apt upgrade run.

I think it failed to install python-gi package based on error.

Exited with
failed to install/upgrade: subprocess new pre-removal script returned error 
exit status 1

I have set python 3 to be default because I code in python and use
python 3 regulary.

When I change back to python 2 the update went through without issues.

$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/python3.6   2         auto mode
* 1            /usr/bin/python2.7   1         manual mode
  2            /usr/bin/python3.6   2         manual mode

Press <enter> to keep the current choice[*], or type selection number:

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: python-gi 3.24.1-2build1
ProcVersionSignature: Ubuntu 4.12.0-11.12-generic 4.12.5
Uname: Linux 4.12.0-11-generic x86_64
ApportVersion: 2.20.6-0ubuntu6
Architecture: amd64
Date: Wed Aug 23 20:47:45 2017
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2017-08-11 (12 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170807)
Python3Details: /usr/bin/python3.6 Python 3.6.2
PythonDetails: /usr/bin/python3.6 Python 3.6.2
RelatedPackageVersions:
 dpkg 1.18.24ubuntu1
 apt  1.5~beta1
SourcePackage: pygobject
Title: package python-gi 3.24.1-2build1 failed to install/upgrade: subprocess 
new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: pygobject (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package artful

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1712892

Title:
  Error is thrown when package python-gi 3.24.1-2build1 is upgraded when
  python3 is default in update-alternatives

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/1712892/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to