さて、最近はあまり触っていなかった realsense ですが、ドメインが変わった関係で apt のリポジトリが移動したようです。
$ sudo apt update
.....
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://librealsense.intel.com/Debian/apt-repo jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB0B24895113F120
W: Failed to fetch https://librealsense.intel.com/Debian/apt-repo/dists/jammy/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FB0B24895113F120
W: Some index files failed to download. They have been ignored, or old ones used instead.apt update するとこんな感じに GPG エラーでアップデートに失敗します。メッセージをろくに読まずに GPG が古いのねと思ったがどうやらそうではなく、realsense が intel からスピンアウトしたのに伴い、ドメインを移ったとのこと。
なので、新しいリポジトリを登録し、古いものを削除します。
librealsense.list と .gpg はファイル名が異なればそれに合わせてほしい。
; 古い登録を削除
$ sudo rm /etc/apt/sources.list.d/librealsense.list
$ sudo rm -f /etc/apt/trusted.gpg.d/librealsense.gpg
$ sudo rm -f /etc/apt/keyrings/librealsense*
; 新しいものを登録
$ sudo mkdir -p /etc/apt/keyrings
$ curl -sSf https://librealsense.realsenseai.com/Debian/librealsenseai.asc | \
gpg --dearmor | sudo tee /etc/apt/keyrings/librealsenseai.gpg > /dev/null
$ echo "deb [signed-by=/etc/apt/keyrings/librealsenseai.gpg] https://librealsense.realsenseai.com/Debian/apt-repo $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/librealsense.list最後の行で新しく librealsense.list を作り直しているが、Linux Mint の場合は lsb_release コマンドからコードネームを持ってきてはいけない。Mint は Ubuntu とは異なる名前を使っているので、lsb_release が Linux Mint のコードネームを返しすためだ。
/etc/upstream-release/lsb-release ファイルの中に Ubuntu でのコードネームがある。
Linux Mint 22.3 の場合、Ubuntu 24.04 noble がアップストリームなので noble を指定してやる。
$ cat -p /etc/apt/sources.list.d/librealsense.list
deb [signed-by=/etc/apt/keyrings/librealsenseai.gpg] https://librealsense.realsenseai.com/Debian/apt-repo noble main
これで、apt update すれば OK。
こういうのも、Claude で最新データを見つけてきてっていうといい具合に拾ってくるので楽な世の中になった。
参考
librealsense/doc/distribution_linux.md at master · realsenseai/librealsense
コメントを残す