0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Linux mint20で発生したapt update時のGPGエラーを解決した

Last updated at Posted at 2020-12-06

現象と環境

  • OS:Linux Mint 20 Cinnamon
  • ミラーサーバー(メイン):Evowise CDN
  • ミラーサーバー(ベース):Tsukuba WIDE Public Mirror service

sudo apt update すると以下の警告が発生した

W: GPG エラー: http://mirrors.evowise.com/linuxmint/packages ulyana Release: 以下の署名が無効です: BADSIG A6616109451BBBF2 Linux Mint Repository Signing Key <root@linuxmint.com>
E: リポジトリ http://mirrors.evowise.com/linuxmint/packages ulyana Release は署名されていません。
N: このようなリポジトリから更新を安全に行うことができないので、デフォルトでは更新が無効になっています。
N: リポジトリの作成とユーザ設定の詳細は、apt-secure(8) man ページを参照してください。

試した方法

GPGについて学んだことを整理してみる - Qiita
などを参考に

sudo apt-key adv --recv-keys --keyserver https://keyring.debian.org A6616109451BBBF2 
sudo apt update

sudo apt clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
sudo apt clean
sudo apt update

を試してみたが変化なし。

解決した方法

あまりスマートではないが、大元のミラーサーバーを変更したところ成功した。

  1. メニューの「設定」→「システム設定」を起動する

  2. 「システム管理」タブの「ソフトウェアソース」を選択する。
    pic1.png

  3. ミラーサーバーの設定を変更する(画像赤枠部分をクリック)。
    pic3.png

  4. 別のミラーサーバー(私は適当にJAISTにした)を選択して、「適用」をクリック。
    pic4.png

  5. OKをクリックして更新。
    pic5.png

まとめ

apt update時のGPGエラー(BADSIG)が発生していたが、ミラーサーバーを変更したら解決した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?