ubuntu 命令行刪除apt-key

如何刪除呢?

First you need to find the key id of the key you added. Do this by the command:

sudo apt-key list

It will list all the keys that you have, with each entry looking like this:

pub   1024R/B455BEF0 2010-07-29
uid                  Launchpad clicompanion-nightlies

Once you have figured out which key to remove, use the command sudo apt-key del <keyid>where is replaced with the actual keyid of the key you want to remove from your keyring.

nits@nits-excalibur:~$ sudo apt-key del B455BEF0
[sudo] password for nits: 
OK
nits@nits-excalibur:~$ apt-key list | grep clicompan
nits@nits-excalibur:~$ 

裝載自:https://my.oschina.net/lieefu/blog/756614

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章