kali linuxでapt-get updateで404 not foundのエラーが出る件

投稿日時 2016/9/29 6:06:00 | トピック: その他

kali linuxを久々立ち上げて、更新してみると


Err http://security.kali.org sana/updates/main Sources
404 Not Found
Err http://security.kali.org sana/updates/contrib Sources
404 Not Found
Err http://security.kali.org sana/updates/non-free Sources
404 Not Found

とエラーが出てupdateが上手くいかない。


http://security.kali.org/を見てみると
リポジトリが変わったって書いてあるので

This was Kali Linux's security package repository: http://security.kali.org/

With Kali Rolling (2016.x), this repository is no longer needed as security
updates come directly from new upstream releases to the Debian Testing
distribution.

It was kept alive as long as Kali 2.0 "sana" was available on the main mirror,
this is no longer the case and thus this repository is discontinued and will
be dropped in the near future.

You can find a backup of the sana/updates repository on old.kali.org if you
still need it. The corresponding entry in /etc/apt/sources.list would be:

deb http://old.kali.org/kali-security sana/updates main contrib non-free

-- 
Kali Linux, the most advanced penetration testing distribution, ever.
http://www.kali.org

READMEに書いてある通りリポジトリを変更してみる

vi /etc/apt/sources.list

# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free



# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://old.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://old.kali.org/kali-security sana/updates main contrib non-free

chrome関係でもエラーがでるのでリストを削除

rm /etc/apt/sources.list.d/google-chrome.list

apt-get update
apt-get dist-upgrade

うまくいきました。

2016-2にする場合は
kali-rollingに変えれば2016-2になります。
でもすごく時間がかかるのでクリーンインストールしたほうが早いです。


XOOPS モジュール公開 テーマ配布にて更に多くのニュース記事をよむことができます
http://www.kume.biz

このニュース記事が掲載されているURL:
http://www.kume.biz/article.php?storyid=157