完全无法安装 python2.7-dev

完全无法安装 python2.7-dev

完全陷入困境!

无法在我的 Ubuntu13.04 上完全安装 python2.7-dev。我尝试了此网站 (askubuntu.com) 和网络上许多其他网站上提到的所有技巧,但仍然无济于事!

我在虚拟机上运行 Ubuntu 13.04 64 位,但每次运行时sudo apt-get install python2.7-dev都会出现以下错误;

python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3.5) but 2.7.4-2ubuntu3 is to be installed
                 Depends: libpython2.7 (= 2.7.3-0ubuntu3.5) but 2.7.4-2ubuntu3 is to be installed
                 Depends: libexpat1-dev but it is not going to be installed
                 Depends: libssl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试过apt-get 更新,但还是没有结果!我甚至尝试从源代码安装 Python2.7,但还是没有结果!

是否有一个包含所有依赖项的单一软件包可供我下载,可以安装所有内容(Python2.7-dev)或者是否有另一个技巧可以用来在我的计算机上安装 Python-dev 标头。

提示:我注意到当我运行时sudo apt-get update,在更新的某个地方我看到了一些错误;

...
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Ign http://us.archive.ubuntu.com raring Release      
Ign http://us.archive.ubuntu.com raring-updates Release
Ign http://us.archive.ubuntu.com raring-backports Release
Ign http://us.archive.ubuntu.com raring-security Release
Get:2 http://us.archive.ubuntu.com precise-updates Release [98.7 kB]
Err http://extras.ubuntu.com raring/main Sources         
  404  Not Found
Err http://extras.ubuntu.com raring/main amd64 Packages  
  404  Not Found
Err http://extras.ubuntu.com raring/main i386 Packages
  404  Not Found
Ign http://extras.ubuntu.com raring/main Translation-en_US
Ign http://extras.ubuntu.com raring/main Translation-en
...

在我的精确更新列表文件是一个单独的条目;

deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

我不知道这是否有帮助

帮助!

保罗

答案1

谢谢大家,

@Benoit 的想法对我有用,安装了最新的 Ubuntu14.04LTS 并且 apt-get install python2.7-dev 安装成功!

保罗

相关内容