博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何增加和删除apt-key
阅读量:6618 次
发布时间:2019-06-25

本文共 1771 字,大约阅读时间需要 5 分钟。

  hot3.png

资料来源:http://askubuntu.com/questions/107177/how-can-i-remove-gpg-key-that-i-added-using-apt-key-add

大部分软件手工增加官方软件源方法:参考(https://help.getsync.com/hc/en-us/articles/206178924-Installing-Sync-package-on-Linux 和 https://www.linuxbabe.com/desktop-linux/install-bittorrent-sync-ubuntu-16-04-official-deb-repository)

sudo nano /etc/apt/sources.list

Append the following APT line at the end of this file.

deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free

Save and close this file.

In order for APT to authenticate packages from the above repository, we need to import BitTorrent Sync’s public key. First download the public key with wget.

wget https://linux-packages.resilio.com/resilio-sync/key.asc

Import the key with apt-key.

sudo apt-key add key.asc

Now let’s update local package index and install BitTorrent Sync

sudo apt updatesudo apt install resilio-sync

Managing BitTorrent Sync

To start BitTorrent Sync, use systemctl

sudo systemctl start resilio-sync

Enable BitTorrent Sync to auto start when Ubuntu 16.04 is booted up.

sudo systemctl enable resilio-sync

Check its status.

systemctl status resilio-sync

 

如何删除呢?

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-29uid                  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: OKnits@nits-excalibur:~$ apt-key list | grep clicompannits@nits-excalibur:~$

转载于:https://my.oschina.net/lieefu/blog/756614

你可能感兴趣的文章
iOS - OC NSData 数据
查看>>
iOS - Quartz 2D 第三方框架 Charts 绘制图表
查看>>
MM顾问的常见面试问题(ZZ)
查看>>
转:Windows 8上强制Visual Studio以管理员身份运行
查看>>
迟来的加勒比海盗3 观后
查看>>
谈一谈互联网创业补贴变味后的现象
查看>>
MapGIS转Shp文件的单位问题
查看>>
使用Karate轻松实现自动API测试
查看>>
CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)
查看>>
编写一个基本的Android应用程序
查看>>
我的友情链接
查看>>
查看Linux操作系统安装的位数(getconf 命令应用)
查看>>
ifstream读取文件失败和乱码问题
查看>>
Python信息采集器使用轻量级关系型数据库SQLite
查看>>
zookeeper中的exception的问题
查看>>
final+基本类型导致只编译常量类引起的错误
查看>>
分库分表的几种常见玩法及如何解决跨库查询等问题
查看>>
把GPS经纬度放入两个字符串,写入文件
查看>>
Java操作MongoDB实现CRUD
查看>>
给js文件传参数
查看>>