[Bug 1806307] Re: package python-requests 2.18.4-2 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration

Ritin ritinpali at gmail.com
Wed Jan 16 06:08:58 UTC 2019


>sudo apt install --reinstall python-requests
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  python-socks
The following packages will be upgraded:
  python-requests
1 upgraded, 0 newly installed, 0 to remove and 371 not upgraded.
2 not fully installed or removed.
Need to get 0 B/58.5 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
(Reading database ... 221208 files and directories currently installed.)
Preparing to unpack .../python-requests_2.18.4-2ubuntu0.1_all.deb ...
/var/lib/dpkg/info/python-requests.prerm: 6: /var/lib/dpkg/info/python-requests.prerm: pyclean: not found
dpkg: warning: old python-requests package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/python-requests_2.18.4-2ubuntu0.1_all.deb (--unpack):
 new python-requests package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/python-requests.postinst: 6: /var/lib/dpkg/info/python-requests.postinst: pycompile: not found
dpkg: error while cleaning up:
 installed python-requests package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/python-requests_2.18.4-2ubuntu0.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

Title:
  package python-requests 2.18.4-2 failed to install/upgrade: package is
  in a very bad inconsistent state; you should  reinstall it before
  attempting configuration

Status in requests package in Ubuntu:
  Incomplete

Bug description:
  package python-requests 2.18.4-2 failed to install/upgrade: package is
  in a very bad inconsistent state; you should  reinstall it before
  attempting configuration

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: python-requests 2.18.4-2
  ProcVersionSignature: Ubuntu 4.15.0-36.39-generic 4.15.18
  Uname: Linux 4.15.0-36-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.9-0ubuntu7.2
  AptOrdering:
   libssh-4:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  Date: Mon Dec  3 07:58:06 2018
  DpkgHistoryLog:
   Start-Date: 2018-12-03  07:58:02
   Commandline: /usr/bin/unattended-upgrade
   Upgrade: libssh-4:amd64 (0.8.0~20170825.94fa1e38-1ubuntu0.1, 0.8.0~20170825.94fa1e38-1ubuntu0.2)
  DuplicateSignature:
   package:python-requests:2.18.4-2
   Setting up libssh-4:amd64 (0.8.0~20170825.94fa1e38-1ubuntu0.2) ...
   dpkg: error processing package python-requests (--configure):
    package is in a very bad inconsistent state; you should
  ErrorMessage: package is in a very bad inconsistent state; you should  reinstall it before attempting configuration
  InstallationDate: Installed on 2018-05-28 (188 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
  PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.1
   apt  1.6.3ubuntu0.1
  SourcePackage: requests
  Title: package python-requests 2.18.4-2 failed to install/upgrade: package is in a very bad inconsistent state; you should  reinstall it before attempting configuration
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list