Ubuntu16.04.4LTSを実行しています。
sudo apt update
の実行時 、最終行は次のとおりです。
W: GPG error: http://download.opensuse.org/repositories/home:/osmc/xUbuntu_16.04 Release: The following signatures were invalid: KEYEXPIRED 1482381670
E: The repository 'http://download.opensuse.org/repositories/home:/osmc/xUbuntu_16.04 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
apt-key list
1つのキーの有効期限が切れていることを示しています:
pub 2048R/70F1BBEA 2014-10-14 [expired: 2016-12-22]
uid home:osmc OBS Project <home:[email protected]>
(何らかの理由で、apt-key list | grep “expired:”
ただし、何も返しません。)
このキーを更新しても何も変わりません:
$ apt-key adv --keyserver keys.gnupg.net --recv-keys 70F1BBEA
Executing: /tmp/tmp.pOcDAzqSkJ/gpg.1.sh --keyserver
keys.gnupg.net
--recv-keys
70F1BBEA
gpg: requesting key 70F1BBEA from hkp server keys.gnupg.net
gpg: key 70F1BBEA: "home:osmc OBS Project <home:[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
また、Y PPA Managerを実行して、「欠落しているすべてのGPGキーをインポートしてみてください」と試しましたが、結果は同じでした。
おそらく、OpenSUSEの古いバージョンを実行していて、それを変更する必要があると思いますが、それが何であるか、そしてこれを正しく行う方法がわかりません。
承認された回答:
サードパーティのリポジトリを/etc/apt/sources.list.d/*
に追加した後 ファイルまたは/etc/apt/sources.list
、対応するgpgキーがaptキーストアに挿入されていることを確認する必要があります。
wget http://download.opensuse.org/repositories/home:/osmc/xUbuntu_16.04/Release.key -O - | sudo apt-key add -
sudo apt update
キーの有効期限が切れているためにそれが機能しない場合は、エラーメッセージと警告メッセージを削除してください。 /etc/apt/sources.list.d/osmc-installer.list
を開きます ハッシュ文字を追加します(#
)deb
の前の行の先頭 コメントに変換します。
sudo nano /etc/apt/sources.list.d/osmc-installer.list
キーボードの組み合わせCtrlを押します + O その後、 Enterを押します。 編集中のファイルを保存します。キーボードの組み合わせCtrlを押します + X nanoを終了します。
利用可能なソフトウェアパッケージのリストを更新します。
sudo apt update