メインコンテンツへスキップ

VM上のDebian 12 bookwormをDebian 13 trixieへアップグレードした記録

目次
Debian 12から13へのアップグレード手順を記録した作業ログです。VMでの実施例をまとめています。

作業ログ
#

Bash
# rootで作業する
sudo -i
Bash
# Debian 12の更新
apt update
apt full-upgrade
Bash
# リポジトリ更新

sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/docker.list

apt update
Bash
# Debian 13に最小アップグレードする
apt upgrade --without-new-pkgs
Bash
apt-listchanges: News
→ q

Configuring console-setup
→ Guess optimal character set

Configuring libc6:amd64
→ Yes (Restart services during package upgrades)
Bash
# Debian 13に完全アップグレードする
apt full-upgrade
Bash
apt-listchanges: News
→ q

Modified configuration file '/etc/chrony/chrony.conf'
→ keep the local version currently installed

Configuring grub-pc
→ install the package maintainer's version
Bash
update-grub
reboot
Bash
# 再起動後

sudo -i

apt modernize-sources
sed -i '/^# Modernized from/d' /etc/apt/sources.list.d/debian.sources
rm /etc/apt/sources.list.bak
rm /etc/apt/sources.list.d/docker.list.bak

# 掃除
apt autoremove
apt clean
apt purge '~o'
apt purge '~c'

参考
#

prata0x
著者
prata0x
Game programmer

関連記事

Proxmox VE 8から9への更新作業ログ
Pi-holeが自身のホスト名を0.0.0.0と返す問題の対処方法
Intel e1000e NICのHardware Unit Hang対策