ubuntu 14.04でvimをinstallしようとしたら、pythonのライブラリのバージョン競合で結構はまった話
ざっくりこんな感じ
$ sudo apt-get install vim
The following packages have unmet dependencies:
vim : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
なんかエラーがでたぞ
libpython2.7がないということでインストールしてみる
$ sudo apt-get install libpython2.7
The following packages have unmet dependencies:
libpython2.7 : Depends: python2.7 (= 2.7.3-0ubuntu3.8) but 2.7.6-8ubuntu0.2 is to be installed
E: Unable to correct problems, you have held broken packages.
うん。。でもなんかエラーが出てるバージョンが合わないか
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
なるほど。。。2.7.3のバージョンでコンパイルされたやつだからうまく入れられないか
ネットでググったら
http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7_2.7.6-8ubuntu0.2_amd64.debからダウンロード可能らしいので、wget&dpkgする
$ wget http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
$sudo dpkg -i libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
あと、ubuntuのpackageサイトから以下のファイルをそれぞれwget&dpkgしたらうまく行った
vim-common_7.4.052-1ubuntu3_amd64.deb
vim-runtime_7.4.052-1ubuntu3_all.deb
vim_7.4.052-1ubuntu3_amd64.deb
以上!