apt-get“损坏的软件包”

apt-get“损坏的软件包”

安装 python-dev 时:

sudo apt-get install python-dev

我收到以下错误:

The following packages have unmet dependencies:
python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed
                Depends: libpython2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

我已经安装了python2.7和libpython2.7。我不明白错误中的“0ubuntu3”和“0ubuntu3.1”是什么意思。

我使用的是 Ubuntu 12.04。我试过好apt-get update几次apt-get upgrade。我试过在谷歌上搜索这个问题,但找不到任何解决办法。我不想autoremove python,它会删除 300MB 的东西,所以我猜不止一个东西会停止工作。

从那时起,我重新安装了 Ubuntu 12.04,之后几乎没有安装任何东西,也没有安装安全更新等。这次 python-dev 和 libboost-dev 安装顺利。但我遇到了同样的问题freeglut3-dev

The following packages have unmet dependencies:
freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                      libgl-dev
                Depends: libglu1-mesa-dev but it is not going to be installed or
                      libglu-dev
E: Unable to correct problems, you have held broken packages.

到目前为止,我收到的反馈表明这应该与包管理器有关。有人遇到过这个问题吗?有人能帮忙吗?

谢谢

相关内容