apt update時に一部のリポジトリで以下のようなメッセージが出ていました.特に問題はないので放置していましたが直してみました.
$ sudo apt update --snip-- Notice: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386' Notice: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.vscodium.com/debs vscodium InRelease' doesn't support architecture 'i386' --snip--
この端末はamd64環境ですが,一部i386も使いたいのでdpkg –add-architectureでi386 architectureを追加してあります.でも該当リポジトリにはi386が無いのでメッセージが出されているようです.
$ dpkg --print-architecture amd64 $ dpkg --print-foreign-architectures i386
該当のsource.listを見るとアーキテクチャが書かれていません.
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
apt edit-sourcesコマンドで以下のようにアーキテクチャを追加しました.この状態でapt updateを実行するとメッセージが消えました :)
$ sudo git -C /etc diff /etc/apt/sources.list.d/brave-browser-release.list diff --git a/apt/sources.list.d/brave-browser-release.list b/apt/sources.list.d/brave-browser-release.list index 7150b62..63ac6ba 100644 --- a/apt/sources.list.d/brave-browser-release.list +++ b/apt/sources.list.d/brave-browser-release.list @@ -1 +1 @@ -deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main +deb [arch=amd64,signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
他のsource.listも同様に修正.
$ sudo git -C /etc diff /etc/apt/sources.list.d/vscodium.list diff --git a/apt/sources.list.d/vscodium.list b/apt/sources.list.d/vscodium.list index f3193db..d29fd21 100644 --- a/apt/sources.list.d/vscodium.list +++ b/apt/sources.list.d/vscodium.list @@ -1 +1 @@ -deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main +deb [ arch=amd64,signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main
deb822スタイルに直してしまってもいいかもしれません.
/etc/apt/sources.list.d/brave-browser-release.sources
Types: deb URIs: https://brave-browser-apt-release.s3.brave.com/ Suites: stable Components: main Architectures: amd64 Signed-By: /usr/share/keyrings/brave-browser-archive-keyring.gpg
環境
$ dpkg-query -W apt dpkg apt 2.9.18 dpkg 1.22.11 $ lsb_release -dr Description: Debian GNU/Linux trixie/sid Release: n/a $ dpkg --print-architecture amd64 $ dpkg --print-foreign-architectures i386