Debian sid を追いかける

2020年2月9日

Debianの設定

参考: https://www.debian.org/doc/manuals/debian-reference/ch02.ja.html#_tracking_literal_testing_literal_with_some_packages_from_literal_unstable_literal

sources.list を sid(unstable)に変更する

/etc/apt/sources.list を変更

deb http://ftp.jp.debian.org/debian/ unstable main contrib non-free
deb http://ftp.jp.debian.org/debian/ testing-updates main contrib
#deb-src http://ftp.jp.debian.org/debian/ unstable main contrib non-free
#deb-src http://ftp.jp.debian.org/debian/ testing-updates main contrib

sudo apt update
sudo apt upgrade
sudo apt full-upgrade
再起動

sid(unstable) から testing にダウングレードする方法

https://www.debian.org/doc/manuals/debian-reference/ch02.ja.html#_emergency_downgrading

/etc/apt/sources.list 内を testingに変更する。

変更部分
deb http://deb.debian.org/debian/ testing main contrib non-free

/etc/apt/preferences を作成
Package: *
Pin: release a=testing
Pin-Priority: 1010

sudo apt clean
sudo apt update
ログアウト
Alt+Ctrl+F1
rootでログイン

apt-get dist-upgrade
※apt full-upgrade より apt-getが良いかも知れない?!

再起動
ログイン
/etc/apt/preferences を削除
sudo apt update
sudo apt upgrade

注: ダウングレードしても sid の時の設定ファイルが残る場合がある。

[sid] apt update で 取得エラーが起きる場合はリポジトリを変更する

http://ftp.jp.debian.org を http://deb.debian.org に変更する。

/etc/apt/sources.list

deb http://deb.debian.org/debian/ sid main contrib non-free
deb http://deb.debian.org/debian/ testing-updates main contrib

次のようなエラの場合も同様にサーバーを変更する。
E: いくつかのアーカイブを取得できません。apt-get update を実行するか --fix-missing オプションを付けて試してみてください。