# 日報(2025-12-26) Raspbian buster で apt を使おうとしてエラーになる時

# 背景

動画再生に omxplayer を使いたいので Raspberry Pi を Raspbian buster でつかっているのですが、 先日、こんな感じで 404 Not Found とか does not have a Release file. とか不穏な事をいわれて apt がつかえませんでした

sudo apt update
Ign:1 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                     
Hit:2 http://archive.raspberrypi.org/debian buster InRelease                                                        
Err:3 http://raspbian.raspberrypi.org/raspbian buster Release
  404  Not Found [IP: 93.93.128.193 80]
Reading package lists... Done                              
E: The repository 'http://raspbian.raspberrypi.org/raspbian buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

# 原因

buster ではなく stretch なのですが、こちら (opens new window) の記事によるとサポートを終了したリポジトリは legacy リポジトリに移したのだそうです
なので /etc/apt/sources.list のraspbian.raspberrypi.orglegacy.raspbian.org に変えてみたらうまくいきました

sudo apt update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease                  
Hit:2 http://legacy.raspbian.org/raspbian buster InRelease  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

# スクリプト

RPi4 や RPi5 だとどうなのかしりませんが、RPi2 とか RPi3 とかだと vlc ではまともに再生できないのでまだまだ omxplayer を使いたいので、まだまだ buster を使い続けようと思うので、次に buster をインストールした時の為に スクリプト (opens new window) にしておきました


Last Updated: 2025/12/26 11:47:49