package python-apt 1.4.0~beta2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Error dialog appeared some time after first login post upgrade from 16.10 to 17.04.
Trying to resolve issues with clamav-daemon systemd service and virtualbox at the time - not sure where this error triggered.
Was having issues with python 3.6 beta - uninstalled due to 17.04 upgrade failure.
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: python-apt 1.4.0~beta2
ProcVersionSign
Uname: Linux 4.10.0-19-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
Architecture: amd64
Date: Sun Apr 16 18:46:13 2017
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2016-05-03 (348 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: python-apt
Title: package python-apt 1.4.0~beta2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
I'm not sure what's going on here. But it seems to be a Python issue. Did you perhaps mess up your system somehow and switched /usr/bin/python to python 3, when pyclean expects python 2. That's what the error messages indicate.