当我试图安装python3-dev
使用sudo apt-get install python3-dev
我得到了以下信息
python3-dev : Depends: libpython3-dev (= 3.4.0-0ubuntu2) but it is not going to be installed
Depends: python3.4-dev (>= 3.4.0-0~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
所以我尝试安装依赖项,libpython3-dev
然后收到此消息
The following packages have unmet dependencies:
libpython3.4-dev : Depends: libpython3.4-stdlib (= 3.4.0-2ubuntu1.1) but 3.4.3-1ubuntu1~14.04.1 is to be installed
Depends: libpython3.4 (= 3.4.0-2ubuntu1.1) but 3.4.3-1ubuntu1~14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
但是两个依赖都已经安装了,我正在使用Ubuntu 14.04
当我跑步时,apt-cache policy python3.4
我得到了
python3.4:
Installed: 3.4.3-1ubuntu1~14.04.1
Candidate: 3.4.3-1ubuntu1~14.04.1
Version table:
*** 3.4.3-1ubuntu1~14.04.1 0
100 /var/lib/dpkg/status
3.4.0-2ubuntu1.1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
3.4.0-2ubuntu1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
仍然是相同的错误
—
iLoveCamelCase 2015年
您如何调用该命令?确保您的系统是最新的。
—
Aizuddin Zali 2015年
什么命令 我用过
—
iLoveCamelCase 2015年
sudo apt-get clean all
我的意思是当您尝试安装时。
—
Aizuddin Zali 2015年
apt-get clean all
然后再试一次。