Sionの日記

オッサンゲーマー

Debian 13 trixie released

www.debian.org

夏休みの宿題が追加に...

 

2025/8/11 追記 夏休みの宿題は早めに終わらせるタイプなんだよね

 

まず、自宅鯖をアップデートしようとしたら公開キーが利用できなくてエラーになる。

$ sudo apt update
ヒット:1 http://deb.debian.org/debian bookworm InRelease
ヒット:2 http://deb.debian.org/debian-security bookworm-security InRelease
取得:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
ヒット:4 http://archive.raspberrypi.com/debian bookworm InRelease
エラー:3 http://deb.debian.org/debian bookworm-updates InRelease
  公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
パッケージはすべて最新です。
W: 署名照合中にエラーが発生しました。リポジトリは更新されず、過去のインデックスファイルが使われます。GPG エラー: http://deb.debian.org/debian bookworm-updates InRelease: 公開鍵を利用できな いため、以下の署名は検証できませんでした: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265
W: http://deb.debian.org/debian/dists/bookworm-updates/InRelease の取得に失敗しました  公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265
W: いくつかのインデックスファイルのダウンロードに失敗しました。これらは無視されるか、古いものが代わりに使われます。

公開鍵を更新しないと...

zenn.dev

上のリンクを参考にtrixieのキーを取得(キーはここ

$ sudo wget -q --directory-prefix /etc/apt/keyrings https://ftp-master.debian.org/keys/archive-key-13.asc
$ sudo wget -q --directory-prefix /etc/apt/keyrings https://ftp-master.debian.org/keys/archive-key-13-security.asc

/etc/apt/sources.listをtrixieに書き換え(署名チェックも追加)

deb [signed-by=/etc/apt/keyrings/archive-key-13.asc] http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb [signed-by=/etc/apt/keyrings/archive-key-13-security.asc] http://deb.debian.org/debian-security/ trixie-security main contrib non-free non-free-firmware
deb [signed-by=/etc/apt/keyrings/archive-key-13.asc] http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware

/etc/apt/sources.list.d/raspi.listをtrixieに書き換え

deb http://archive.raspberrypi.com/debian/ trixie main

apt updateを実施

$ sudo apt update
ヒット:1 http://deb.debian.org/debian trixie InRelease
ヒット:2 http://deb.debian.org/debian-security trixie-security InRelease
ヒット:3 http://deb.debian.org/debian trixie-updates InRelease
取得:4 http://archive.raspberrypi.com/debian trixie InRelease [54.8 kB]
取得:5 http://archive.raspberrypi.com/debian trixie/main armhf Packages [316 kB]
371 kB を 4秒 で取得しました (99.6 kB/s)
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
状態情報を読み取っています... 完了
アップグレードできるパッケージが 788 個あります。表示するには 'apt list --upgradable' を実行してください。

おぅ...788個

$ sudo apt full-upgrade
(途中で差分確認あったが、必要なものは残す方向で)

$ sudo apt autoremove

$ sudo apt  autoclean

再起動後に再度パッケージ更新確認してみるとワーニング出る。

$ sudo apt update
ヒット:1 http://deb.debian.org/debian trixie InRelease
ヒット:2 http://deb.debian.org/debian-security trixie-security InRelease
ヒット:3 http://deb.debian.org/debian trixie-updates InRelease
ヒット:4 http://archive.raspberrypi.com/debian trixie InRelease
パッケージはすべて最新です。
Warning: http://archive.raspberrypi.com/debian/dists/trixie/InRelease: Policy will reject signature within a year, see --audit for details

再起動したら/etc/apt/sources.listがsources.list.dに配置しなおされてたが、対処方法が不明。raspi.sourcesの「Signed-By:」が空っぽでちゃんとしたキーを設定しないとダメっぽい。誰かが解決してくれるのを期待して放置するw

 

2025/8/11 追記2

mediawikiが立ち上がってない。

$ systemctl status apache2.servic
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2025-08-11 10:53:36 JST; 11s ago
 Invocation: 1912cc6c6eac49be86cc6b8834833e97
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1158 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 142ms

 8月 11 10:53:36 rpi1 systemd[1]: Starting apache2.service - The Apache HTTP Server...
 8月 11 10:53:36 rpi1 apachectl[1160]: apache2: Syntax error on line 147 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php8.2.load>
 8月 11 10:53:36 rpi1 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
 8月 11 10:53:36 rpi1 systemd[1]: apache2.service: Failed with result 'exit-code'.
 8月 11 10:53:36 rpi1 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.

phpが8.2→8.4に上がったので使うジュールも変更が必要。

$ sudo a2dismod php8.2
$ sudo a2enmod php8.4
$ sudo service apache2 restart

で起動しました。

 

2025/8/11 追記3

bluetoothがつながらない

stackoverflow.com

いつも探してしまうので、操作を書いておく(大元のbluetoothをOFFされているのでそれをONにするだけ)

$ rfkill block bluetooth
$ rfkill unblock bluetooth