TL;DR
apt-get
関連のコマンドが死ぬ.
例: Ubuntu 16.10の場合
この図からもわかるようにUbuntu 16.10は現時点でEOLです.使ってはいけません.
しかし生きているとうっかりEOLなバージョンが残っていることもあるでしょう.あったのです……
で,EOLを迎えているUbuntuを使い続けるとどうなるか.特筆すべきは apt-get update
が死ぬという点でしょう.
$ sudo apt-get update ... Err:6 http://security.ubuntu.com/ubuntu yakkety-security/universe Sources 404 Not Found [IP: 91.189.88.152 80] ... Err:14 http://archive.ubuntu.com/ubuntu yakkety/universe Sources 404 Not Found [IP: 91.189.88.149 80] ... Err:27 http://archive.ubuntu.com/ubuntu yakkety-updates/universe Sources 404 Not Found [IP: 91.189.88.149 80] ... Err:37 http://archive.ubuntu.com/ubuntu yakkety-backports/multiverse amd64 Packages 404 Not Found [IP: 91.189.88.149 80] ... Reading package lists... W: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does not have a Release file. W: The repository 'http://archive.ubuntu.com/ubuntu yakkety Release' does not have a Release file. W: The repository 'http://archive.ubuntu.com/ubuntu yakkety-updates Release' does not have a Release file. W: The repository 'http://archive.ubuntu.com/ubuntu yakkety-backports Release' does not have a Release file. E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/yakkety-security/universe/source/Sources 404 Not Found [IP: 91.189.88.152 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety/universe/source/Sources 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety-updates/universe/source/Sources 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/yakkety-backports/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.88.149 80] E: Some index files failed to download. They have been ignored, or old ones used instead. $ echo $? 100
ワーオ,repositoryが404になっていますね.それが起因してコマンドが100でexitしています.
curlを打ってみましょう.
$ curl -I http://security.ubuntu.com/ubuntu/yakkety-security/universe HTTP/1.1 404 Not Found
無慈悲にdistのパッケージがremoveされてる!! マジかよ.
解決するには
- Ubuntuのバージョンを上げる
結論
apt-get
系のコマンドがしくじるだけでなく様々な悪いことが起きる.
EOLなUbuntuを使うのをやめよ.