ubuntu13 下无法安装 python-dev 的解决办法 (problem-installing-python-dev in ubuntu 13 )
访问量: 7186
昨天废了很多时间来装 django-cas, 其中就要用到 python的mysql 客户端。 解决遇到问题: ( it costs me hours to solve this problem when installing python mysql client: )
The following packages have unmet dependencies: python-dev : Depends: python (= 2.7.3-0ubuntu2) but 2.7.3-0ubuntu2.2 is to be installed Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed
搜了N久,才发现了这个不错的解决办法: (apt-get install -f, 也不行。) 貌似直接下载 tar.gz, 然后 make install... 忘记行不行了。。。 (after googled a lot, I found this solution)
$ echo "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted" | sudo tee -a /etc/apt/sources.list.d/precise-updates.list
$ sudo apt-get update
$ sudo apt-get install python2.7-dev
原文见: (refer to http://askubuntu.com/questions/275861/problem-installing-python-dev)