1
python2.7-dev Ubuntu 12.04上的unmet依赖项
几个月前我通过PPA在Ubuntu Lucid上安装了python2.7。一切都很顺利,没有问题。昨天,我从lucid升级到Ubuntu Precise,升级进展顺利。现在,我需要安装python2.7-dev并且我得到unment依赖项错误: sudo apt-get install python2.7-dev ... The following packages have unmet dependencies: python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3.2) but 2.7.4-1+lucid1 is to be installed Depends: libpython2.7 (= 2.7.3-0ubuntu3.2) but 2.7.4-1+lucid1 is to be installed E: Unable to correct problems, you have held broken packages. 这显然是由我在lucid上安装的旧python2.7引起的。为了解决这个问题,我想删除python2.7并重新安装它(apt-get remove python2.7),但我意识到它会删除很多软件包并安装python3。所以我没有这样做。我如何摆脱旧的python2.7并安装一个与Precise一起使用的新版本? 请注意,我的PPA都已禁用。