package python-requests 2.2.1-1ubuntu0.3 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration

Bug #1734661 reported by natraj
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Somethign is messed up after linking python to python 3 and after this all these issues started cropping up.

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: python-requests 2.2.1-1ubuntu0.3
ProcVersionSignature: Ubuntu 4.4.0-101.124~14.04.1-generic 4.4.95
Uname: Linux 4.4.0-101-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.27
Architecture: amd64
Date: Mon Nov 27 16:18:42 2017
DuplicateSignature: package:python-requests:2.2.1-1ubuntu0.3:package is in a very bad inconsistent state; you should reinstall it before attempting configuration
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting configuration
InstallationDate: Installed on 2017-11-16 (10 days ago)
InstallationMedia: Ubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.7
 apt 1.0.1ubuntu2.17
SourcePackage: requests
Title: package python-requests 2.2.1-1ubuntu0.3 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration
UpgradeStatus: Upgraded to trusty on 2017-11-27 (0 days ago)

Revision history for this message
natraj (pnatraj) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Did you really link python to python3? Can you elaborate on what you did?

Changed in requests (Ubuntu):
status: New → Incomplete
Revision history for this message
natraj (pnatraj) wrote :

I was installing coursera-dl (https://github.com/coursera-dl/coursera-dl) and this had a specific crypto dependency and i starting installing the same with pip. But the crypto dependency had python3 as a requirement

Then i did the below
1) Moved /usr/bin/python to /usr/bin/python2
2) Linked /usr/bin/python to /usr/bin/python3.7
3) Executed the below commands

       coursera-dl virtualenv my-coursera
  180 virtualenv my-coursera
  181 sudo apt-get install python-virtualenv
  182 sudo apt-get install python3-virtualenv
  183 sudo apt-get install python-virtualenv
  184 coursera-dl
  185 pip3 install cffi
  186 sudo pip3 install cffi
......

   Was able to use coursera-dl

Then on the apt-get update started failing please i have attached the complete command line history in the attachment "aptcommandhistory.txt"

Revision history for this message
Joshua Powers (powersj) wrote :

Thanks for taking the time to file the bug and explain what you did. However, we do not support running with /usr/bin/python pointing to Python 3. For Python 3 you should use /usr/bin/python3.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for requests (Ubuntu) because there has been no activity for 60 days.]

Changed in requests (Ubuntu):
status: Incomplete → Expired
Changed in requests (Ubuntu):
status: Expired → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.