久々(6,7年ぶり?)にRaspberryPiを使用したくて押し入れからとってきてRaspbianのパッケージのアップデートをしようと思ったら以下のようになってしましました。
pi@raspberrypi /etc/apt $ sudo apt-get update
Ign http://mirrordirector.raspbian.org wheezy InRelease
Ign http://mirrordirector.raspbian.org wheezy Release.gpg
Ign http://mirrordirector.raspbian.org wheezy Release
Err http://mirrordirector.raspbian.org wheezy/main armhf Packages
404 Not Found
Err http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
404 Not Found
Err http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
404 Not Found
Err http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
404 Not Found
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages 404 Not Found
どうやらリポジトリにアクセスできずに404エラーでアップデートできていないようです。
以上の2つのサイトを参考に、
/etc/apt/sources.list
/etc/apt/sources.list.d/raspi.list
の内容を変更することで問題なくapt update, upgradeすることができました。
追記
今回のアップデートはApache2をインストールしたくて行ったのですが、Dist-Upgradeが結局うまくいかずにApache2をインストールすることが来ませんでした。
Rasbianはかなり古いので結局新しい公式OSであるRaspberry Pi OSを新しくインストールすることですべて解決しました。
(古いもんは使うもんじゃないですね。)