By Anand Arun
Hi, friends
I am trying to update and upgrade the packages in Ubuntu 16.04.
I got this:
dpkg: error processing package python-cryptography (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
python-cryptography
I tried: sudo apt-get install --reinstall dpkg
I got this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python-cryptography : Depends: python-asn1crypto but it is not going to be inst alled
Depends: python-idna (>= 2.1) but 2.0-3 is to be installe d
Breaks: python-openssl (< 16.0.0) but 0.15.1-2build1 is t o be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
Someone give a hand?
Thanks!
And then i tried sudo apt -get install dpkg
Got this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python-cryptography : Depends: python-asn1crypto but it is not going to be installed
Depends: python-idna (>= 2.1) but 2.0-3 is to be installed
Breaks: python-openssl (< 16.0.0) but 0.15.1-2build1 is to be inst alled
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.