Updating from terminal 16.04
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.
command-line
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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.
command-line
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Runsudo apt -f install.
– George Udosen
Dec 24 at 18:04
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07
add a comment |
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.
command-line
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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.
command-line
command-line
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Dec 24 at 18:03
George Udosen
19.7k94267
19.7k94267
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Dec 24 at 17:58
Anand Arun
61
61
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Anand Arun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Runsudo apt -f install.
– George Udosen
Dec 24 at 18:04
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07
add a comment |
Runsudo apt -f install.
– George Udosen
Dec 24 at 18:04
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07
Run
sudo apt -f install.– George Udosen
Dec 24 at 18:04
Run
sudo apt -f install.– George Udosen
Dec 24 at 18:04
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07
add a comment |
1 Answer
1
active
oldest
votes
The package having issues is python-cryptography , NOT dpkg. dpkg is fine.
Try doing:
sudo apt-get -f install
If that fails, then try:
sudo dpkg --configure -a
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Anand Arun is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104293%2fupdating-from-terminal-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The package having issues is python-cryptography , NOT dpkg. dpkg is fine.
Try doing:
sudo apt-get -f install
If that fails, then try:
sudo dpkg --configure -a
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
|
show 2 more comments
The package having issues is python-cryptography , NOT dpkg. dpkg is fine.
Try doing:
sudo apt-get -f install
If that fails, then try:
sudo dpkg --configure -a
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
|
show 2 more comments
The package having issues is python-cryptography , NOT dpkg. dpkg is fine.
Try doing:
sudo apt-get -f install
If that fails, then try:
sudo dpkg --configure -a
The package having issues is python-cryptography , NOT dpkg. dpkg is fine.
Try doing:
sudo apt-get -f install
If that fails, then try:
sudo dpkg --configure -a
answered Dec 24 at 18:07
Domo N Car
545
545
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
|
show 2 more comments
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo apt-get -f install i got: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
sudo dpkg --configur -a 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
– Anand Arun
Dec 24 at 18:23
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
@AnandArun are you sure you put sudo before? Otherwise it seems that one apt/dpkg command is still running. Only one program dpkg/apt/synaptic, etc can access the dpkg database, so running two commands simultaneously will give that error (13: Permission denied). Try rebooting and issuing the command again. Or try killing/closing any other program accessing database.
– Domo N Car
Dec 24 at 18:32
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
Thanks!! It worked! I restarted the terminal and now i may continue updating, upgrading. Thanks a lot!
– Anand Arun
Dec 24 at 19:06
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
@AnandArun :) Please mark this answer as solved.
– Domo N Car
Dec 24 at 19:12
|
show 2 more comments
Anand Arun is a new contributor. Be nice, and check out our Code of Conduct.
Anand Arun is a new contributor. Be nice, and check out our Code of Conduct.
Anand Arun is a new contributor. Be nice, and check out our Code of Conduct.
Anand Arun is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104293%2fupdating-from-terminal-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Run
sudo apt -f install.– George Udosen
Dec 24 at 18:04
@George Udosen Thanks! I missed your answer!
– Anand Arun
Dec 24 at 20:07