package python-requests 2.18.4-2 failed to install/upgrade: new python-requests package pre-removal script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
requests (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Preconfiguring packages ...
(Reading database ... 209169 files and directories currently installed.)
Preparing to unpack .../python-
Traceback (most recent call last):
File "/usr/bin/pyclean", line 32, in <module>
from debpython.namespace import add_namespace_files
File "/usr/share/
from debpython.pydist import PUBLIC_DIR_RE
File "/usr/share/
from debpython.version import vrepr, getver, get_requested_
File "/usr/share/
_default = _config.
File "/usr/lib/
raise NoOptionError(
ConfigParser.
dpkg: warning: old python-requests package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 32, in <module>
from debpython.namespace import add_namespace_files
File "/usr/share/
from debpython.pydist import PUBLIC_DIR_RE
File "/usr/share/
from debpython.version import vrepr, getver, get_requested_
File "/usr/share/
_default = _config.
File "/usr/lib/
raise NoOptionError(
ConfigParser.
dpkg: error processing archive /var/cache/
new python-requests package pre-removal script subprocess returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/
_default = _config.
File "/usr/lib/
raise NoOptionError(
ConfigParser.
dpkg: error while cleaning up:
installed python-requests package post-installation script subprocess returned error exit status 1
Preparing to unpack .../bsdutils_
Unpacking bsdutils (1:2.31.
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python-requests 2.18.4-2
ProcVersionSign
Uname: Linux 4.15.0-36-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.4
AptOrdering:
libsnmp-
libsnmp30:amd64: Install
python-
python3-
NULL: ConfigurePending
Architecture: amd64
Date: Mon Oct 15 23:01:11 2018
ErrorMessage: new python-requests package pre-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2018-10-07 (10 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitec
Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.3ubuntu0.1
SourcePackage: requests
Title: package python-requests 2.18.4-2 failed to install/upgrade: new python-requests package pre-removal script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I wasn't able to reproduce your problem. Installing python-requests on Bionic works fine for me in a test container.
Since there isn't enough information in your report to differentiate between a local configuration problem and a bug in Ubuntu, I'm marking this bug as Incomplete.
If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http:// www.ubuntu. com/support/ community
Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http:// www.chiark. greenend. org.uk/ ~sgtatham/ bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.