mr/aptの通知を消したい

その1

英語の例

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease' doesn't support architecture 'i386'

日本語の例

N: リポジトリ 'https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease' がアーキテクチャ 'i386' をサポートしないため設定ファイル 'main/binary-i386/Packages' の取得をスキップ

消し方

/etc/apt/sources.list.d/hoge.sources に

Architectures: amd64

を書く

その2

N: Missing Signed-By in the sources.list(5) entry for 'https://packages.microsoft.com/ubuntu/24.04/prod'

消し方

/etc/apt/sources.list.d/hoge.sources に

Signed-By: gpg鍵のパス

を書く

完成例

$cat /etc/apt/sources.list.d/microsoft-prod.sources

Types: deb
URIs: https://packages.microsoft.com/ubuntu/24.04/prod
Suites: noble
Components: main
Architectures: amd64
Signed-By: /etc/apt/trusted.gpg.d/microsoft-mdatp.asc

最後の2行を追加

関連


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS