drone.io で apt-get install したら 404 Not Found になったのでメモ
drone.io の blockdiag プロジェクトでは python2.6 でのテストのために
テスト開始時に python2.6 パッケージを入れるようにしているのだが、
先日からその部分でテストがコケるようになっていた。
ネットワークとかそういった問題で一時的なものかな、と放っておいたのだが
2日経っても状況が変わらないので対応策をメモっておく。
出ているエラーは以下のもの。
$ sudo apt-get install python2.6 python2.6-dev fonts-ipafont-gothic fonts-vlgothic Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: fonts-ipafont-mincho libpython2.6 python2.6-minimal Suggested packages: python2.6-doc The following NEW packages will be installed: fonts-ipafont-gothic fonts-ipafont-mincho fonts-vlgothic libpython2.6 python2.6 python2.6-dev python2.6-minimal 0 upgraded, 7 newly installed, 0 to remove and 13 not upgraded. Need to get 33.6 MB of archives. After this operation, 63.4 MB of additional disk space will be used. Err http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/ precise/main python2.6-minimal amd64 2.6.8-4+precise1 404 Not Found Err http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/ precise/main python2.6 amd64 2.6.8-4+precise1 404 Not Found Err http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/ precise/main libpython2.6 amd64 2.6.8-4+precise1 404 Not Found Get:1 http://archive.ubuntu.com/ubuntu/ precise/main fonts-ipafont-gothic all 00303-5 [8,560 kB] Err http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/ precise/main python2.6-dev amd64 2.6.8-4+precise1 404 Not Found Get:2 http://archive.ubuntu.com/ubuntu/ precise/main fonts-ipafont-mincho all 00303-5 [11.5 MB] Get:3 http://archive.ubuntu.com/ubuntu/ precise/main fonts-vlgothic all 20120325-1 [5,007 kB] Fetched 25.0 MB in 4s (5,879 kB/s) Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/pool/main/p/python2.6/python2.6-minimal_2.6.8-4+precise1_amd64.deb 404 Not Found Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/pool/main/p/python2.6/python2.6_2.6.8-4+precise1_amd64.deb 404 Not Found Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/pool/main/p/python2.6/libpython2.6_2.6.8-4+precise1_amd64.deb 404 Not Found Failed to fetch http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu/pool/main/p/python2.6/python2.6-dev_2.6.8-4+precise1_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
エラー内容を読むとすぐわかるが apt が持っているパッケージリストが古いものになっており、
deb パッケージを取りに行っても 404 が返ってきてしまっている。
これ、単に apt-get update してないだけですね。
というわけで、テストスクリプトの先頭に
$ sudo apt-get upadte
と入れておけば回避できます。おわり。