LoginSignup
0
0

apt-key list から鍵を削除する方法は

Last updated at Posted at 2023-09-16

apt-key list から鍵を削除する方法は

$ sudo apt-key list
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   dsa1024 2007-03-08 [SC]
      4CCA 1EAF 950C EE4A B839  76DC A040 830F 7FAC 5991
uid           [  不明  ] Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>
sub   elg2048 2007-03-08 [E]
.
省略
.
.
.

pub 次の行にあるフィンガープリント末尾8桁を使用する
4CCA 1EAF 950C EE4A B839 76DC A040 830F 7FAC 5991

末尾8桁を抽出してスペースを無くす
7FAC5991

$ sudo apt-key del 7FAC5991
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

補足

apt-key をエクスポートして /usr/share/keyrings に保存する方法
https://askubuntu.com/questions/1398344/apt-key-deprecation-warning-when-updating-system-key-is-stored-in-legacy-trust

以上

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