Sionの日記

オッサンゲーマー

Debian 12 bookworm

Raspberry pi osにもbookwormの波が押し寄せてきました。まぁ、そろそろだろうと思ってたので、早起き(3時w)してアップデート始めましたよ。一応、手順書いておく。

ハードウェア:Raspberry pi 4

ソフトウェア:ほぼいじってない。NASNFSでマウントしてるくらい。

※apt full-upgrade中のConfiguration系の質問は、環境に応じて回答を変えてね。自分で設定いじってる人はパッケージの内容で上書きすると設定が吹っ飛びますよ。

    1. sudo apt update
    2. sudo apt full-upgrade
      (bullseyeに来てるアップデートをすべて適用)
    3. /etc/apt/sources.list を編集
      bullseye → bookworm
      bullseye-security → bookworm-security
      bullseye-updates → bookworm-updates
    4. sudo apt update
      (bullseyeからbookwormに切り替え)
    5. sudo apt full-upgrade
      (bookwormにアップグレード)
    6. 「Configuring libc6:arm64」で
      「Restart services during package upgrades without asking?」と聞かれたので<Yes>回答 (アップグレード中のサービス再起動を問い合わせなしで実施)
    7. 「Configuration file '/etc/default/useradd'」で
      「==> Package distributor has shipped an updated version.」と聞かれたので<Y>回答(パッケージの内容で上書き)
    8. 「Configuration file '/etc/login.defs'」で
      「==> Package distributor has shipped an updated version.」と聞かれたので、<Y>回答(パッケージの内容で上書き)
    9. 「Configuration file '/etc/logrotate.d/rsyslog'」で
      「 ==> Package distributor has shipped an updated version.」と聞かれたので、<N>回答(設定いじってたので、今の設定を維持)
    10. 「Configuration file '/etc/plymouth/plymouthd.conf'」で
      「 ==> Package distributor has shipped an updated version.」と聞かれたの<Y>回答(パッケージの内容で上書き)
    11. 「Configuration file '/etc/ntpsec/ntp.conf'」で
      「 ==> File also in package provided by package maintainer.」と聞かれたので<N>回答(設定いじってたので、今の設定を維持)
    12. sudo apt autoremove
      「Removing fonts-piboto (1.2) ...
      dpkg: warning: while removing fonts-piboto, directory '/usr/share/fonts/truetype/piboto' not empty so not removed」と表示されたので、裏からターミナルでログインして
      cd /usr/share/fonts/truetype
      sudo rm -rf piboto
      ディレクトリを消しておいた
    13. sudo apt autoclean
    14. sudo reboot -h

再起動後にdmesgで起動時のログを確認。問題なさそうでした。さて、あと2台アップデートするか...

自宅鯖(Raspberry pi 2)をアップデート。apt full-upgradeでconfig変わってるのが結構出る(apacheとかDBとか立ち上がってるからなぁ)。設定ファイルを比較して必要/不要を判断。ファイル数はX立ち上がってないので一番少なめ。

音楽用(Raspberry pi 3)はやばい感じ。パッケージだけで1200オーバー。いろいろやってたので残骸とか多そうだけど、すでに触れない領域。立ち上がらなくなりそうw(まだアップグレード中)

 

自宅鯖のapt updateでワーニング

$ sudo apt update
ヒット:1 http://raspbian.raspberrypi.org/raspbian bookworm InRelease
ヒット:2 http://archive.raspberrypi.org/debian bullseye InRelease
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
パッケージはすべて最新です。
W: http://raspbian.raspberrypi.org/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://archive.raspberrypi.org/debian/dists/bullseye/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
$

言われるがままにapt-keyを見てみると

$ apt-key list
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D 90FD DD2E
uid           [  不明  ] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <mpthompson@gmail.com>
sub   rsa2048 2012-04-01 [E]

pub   rsa2048 2012-06-17 [SC]
      CF8A 1AF5 02A2 AA2D 763B  AE7E 82B1 2992 7FA3 303E
uid           [  不明  ] Raspberry Pi Archive Signing Key
sub   rsa2048 2012-06-17 [E]

なんか不明なのが残ってる。とりあえずExportして(gpgの名前は適当。キーIDはlistで出るIDの後ろから2つを連結して指定)

$ sudo apt-key export 90FDDD2E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/MikeThompson.gpg
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
$ sudo apt-key export 7FA3303E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/RaspberryPiArchive.gpg
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

キーリングを削除

$ sudo apt-key --keyring /etc/apt/trusted.gpg del 90FDDD2E
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
$ sudo apt-key --keyring /etc/apt/trusted.gpg del 7FA3303E
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

で、apt updateを再実施。ワーニングが出なくなりましたよ。

$ sudo apt update
ヒット:1 http://archive.raspberrypi.org/debian bullseye InRelease
ヒット:2 http://raspbian.raspberrypi.org/raspbian bookworm InRelease
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
パッケージはすべて最新です。
$

 

Raspberry pi 4のapt updateでN(otification?)が出る

$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Get:5 http://deb.debian.org/debian bookworm/main arm64 DEP-11 Metadata [4,311 kB]
Get:6 http://deb.debian.org/debian bookworm/contrib arm64 DEP-11 Metadata [14.7 kB]
Get:7 http://deb.debian.org/debian bookworm/non-free arm64 DEP-11 Metadata [2,088 B]
Fetched 4,380 kB in 5s (887 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/arm64/release-notes/ch-information.html#non-free-split

non-freeがnon-free non-free-firmwareに変更になったから変更しろとのこと。

$ cd /etc/apt
$ sudo vi sources.list

で、non-freeのあとにnon-free-firmwareを追加

$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Get:4 http://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages [5,848 B]
Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease
Get:6 http://deb.debian.org/debian bookworm/non-free-firmware armhf Packages [5,512 B]
Get:7 http://deb.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]
Get:8 http://deb.debian.org/debian bookworm/non-free-firmware arm64 DEP-11 Metadata [15.6 kB]
Fetched 47.9 kB in 2s (27.1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  libwacom2
The following NEW packages will be installed:
  libwacom9
The following packages have been kept back:
  libcamera-tools
The following packages will be upgraded:
  bluez-firmware libinput-bin libinput10 libwacom-common
  xserver-xorg-input-libinput
5 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
Need to get 462 kB of archives.
After this operation, 279 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bookworm/main arm64 libinput10 arm64 1.22.1-1 [112 kB]
Get:2 http://deb.debian.org/debian bookworm/main arm64 libinput-bin arm64 1.22.1-1 [23.0 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 libwacom-common all 2.6.0-1 [58.4 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 libwacom9 arm64 2.6.0-1 [20.7 kB]
Get:5 http://deb.debian.org/debian bookworm/non-free-firmware arm64 bluez-firmware all 1.2-9 [185 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 xserver-xorg-input-libinput arm64 1.2.1-1+b1 [62.2 kB]
Fetched 462 kB in 0s (1,198 kB/s)
Reading changelogs... Done
(Reading database ... 98480 files and directories currently installed.)
Preparing to unpack .../libinput10_1.22.1-1_arm64.deb ...
Unpacking libinput10:arm64 (1.22.1-1) over (1.16.4-3) ...
Preparing to unpack .../libinput-bin_1.22.1-1_arm64.deb ...
Unpacking libinput-bin (1.22.1-1) over (1.16.4-3) ...
(Reading database ... 98489 files and directories currently installed.)
Removing libwacom2:arm64 (1.8-2) ...
(Reading database ... 98484 files and directories currently installed.)
Preparing to unpack .../libwacom-common_2.6.0-1_all.deb ...
Unpacking libwacom-common (2.6.0-1) over (1.8-2) ...
Selecting previously unselected package libwacom9:arm64.
Preparing to unpack .../libwacom9_2.6.0-1_arm64.deb ...
Unpacking libwacom9:arm64 (2.6.0-1) ...
Preparing to unpack .../bluez-firmware_1.2-9_all.deb ...
Unpacking bluez-firmware (1.2-9) over (1.2-4+rpt10) ...
Preparing to unpack .../xserver-xorg-input-libinput_1.2.1-1+b1_arm64.deb ...
Unpacking xserver-xorg-input-libinput (1.2.1-1+b1) over (0.30.0-1) ...
Setting up bluez-firmware (1.2-9) ...
Setting up libwacom-common (2.6.0-1) ...
Setting up libwacom9:arm64 (2.6.0-1) ...
Setting up libinput-bin (1.22.1-1) ...
Setting up libinput10:arm64 (1.22.1-1) ...
Setting up xserver-xorg-input-libinput (1.2.1-1+b1) ...
Processing triggers for udev (252.6-1) ...
Processing triggers for libc-bin (2.36-9) ...
Processing triggers for man-db (2.11.2-2) ...
$

あと、libcamera-toolsがアップデートされないが放置(いずれ落ちてくるだろう。カメラ無いのでわからん)

$ sudo apt list --upgradable
Listing... Done
libcamera-tools/stable 0.0.3-6 arm64 [upgradable from: 0~git20230302+923f5d70-1]
N: There is 1 additional version. Please use the '-a' switch to see it

 

音楽用でアップグレード中にWiFiが切れる

これは盲点だった。アップグレード中にWiFi系のアプリがアップデートされてWiFiが切れました。アップグレードは有線LAN接続でやりましょう(他の2台は問題なかったんで有線なら切れないみたい)dpkgのロックファイルが残ってしまったので手動で消して、

sudo dpkg --configure -a

を実行。設定のみ実施し直しました。で、起動できました。スマホからBluetoothで音楽再生してスピーカーからなることも確認。壊れなかったようです。よかったw