从终端 16.04 更新 python-cryptography 时出错

从终端 16.04 更新 python-cryptography 时出错

我正在尝试更新和升级 Ubuntu 16.04 中的软件包。

我懂了:

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

我试过:sudo apt-get install --reinstall dpkg

我懂了:

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).

有人能帮忙吗?

答案1

有问题的包裹是python-加密,而不是 dpkg。dpkg 就可以了。

尝试做:

sudo apt-get -f install 

如果失败,请尝试:

sudo dpkg --configure -a

相关内容