python-crypto问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
TN801465
帖子: 11
注册时间: 2015-11-21 9:40
系统: 14.04

python-crypto问题

#1

帖子 TN801465 » 2017-03-08 16:44

现在我升级、安装任何软件被因安装的是python-crypto_2.6.1-6build1而不是python-crypto_2.6.1-6ubuntu0.16.04.2被迫无法前进;
google到的一些方法都没能奏效(apt -f install之类)。
请问:我该如何先卸载了python-crypto_2.6.1-6build1再去安装python-crypto_2.6.1-6ubuntu0.16.04.2 ???


$ sudo apt -y upgrade
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-crypto-dbg : Depends: python-crypto (= 2.6.1-6ubuntu0.16.04.2) but 2.6.1-6build1 is installed
E: Unmet dependencies. Try using -f.
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: python-crypto问题

#2

帖子 vickycq » 2017-03-08 17:41

执行以下指令将结果全部复制贴上来,不要节选

代码: 全选

cat /etc/issue
dpkg --print-architecture
dpkg -l | grep python-crypto
apt-cache policy python-crypto python-crypto-dbg
cat /var/log/apt/history.log | grep -C5 python-crypto
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
TN801465
帖子: 11
注册时间: 2015-11-21 9:40
系统: 14.04

Re: python-crypto问题

#3

帖子 TN801465 » 2017-03-21 19:46

$cat /etc/issue
Ubuntu 16.04.2 LTS \n \l

$dpkg --print-architecture
amd64

$dpkg -l | grep python-crypto
iFR python-crypto 2.6.1-6build1 amd64 cryptographic algorithms and protocols for Python
iU python-crypto-dbg 2.6.1-6ubuntu0.16.04.2 amd64 cryptographic algorithms and protocols for Python (debug extension)
ii python-crypto-doc 2.6.1-6ubuntu0.16.04.2 all cryptographic algorithms and protocols for Python (documentation)

$apt-cache policy python-crypto python-crypto-dbg
python-crypto:
Installed: 2.6.1-6build1
Candidate: 2.6.1-6ubuntu0.16.04.2
Version table:
2.6.1-6ubuntu0.16.04.2 500
500 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages
500 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages
500 http://cz.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
*** 2.6.1-6build1 500
500 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
python-crypto-dbg:
Installed: 2.6.1-6ubuntu0.16.04.2
Candidate: 2.6.1-6ubuntu0.16.04.2
Version table:
*** 2.6.1-6ubuntu0.16.04.2 500
500 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages
500 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages
500 http://cz.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2.6.1-6build1 500
500 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages

$cat /var/log/apt/history.log | grep -C5 python-crypto
Start-Date: 2017-03-21 19:35:17
Commandline: apt -f install
Upgrade: python-crypto:amd64 (2.6.1-6build1, 2.6.1-6ubuntu0.16.04.2)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2017-03-21 19:35:19

Start-Date: 2017-03-21 19:36:13
Commandline: apt -f install /var/cache/apt/archives/python-crypto_2.6.1-6ubuntu0.16.04.2_amd64.deb
Upgrade: python-crypto:amd64 (2.6.1-6build1, 2.6.1-6ubuntu0.16.04.2)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2017-03-21 19:36:14
回复