转载:Ubuntu Tweak--我用来添加第三方软件源,顺便讲讲apt-key

    As title,懒人专用...在Ubuntu Tweak"应用程序"-->"第三方源",[解锁]后可以添加很多软件噢,虽然官方源里已经有ibus,但版本不够新。。。

       [解锁]-->勾选ibus --> [Refresh]后去看sources.list(/etc/apt/sources.list,用Ubuntu的人不要告诉我不认识这个。。。)多了这行:

deb http://ppa.launchpad.net/ibus-dev/ppa/ubuntu jaunty main #ibus

       wikipadia上如是说,"Launchpad是Ubuntu母公司Canonical有限公司所架设的网站,是一个提供维护、支援或连络Ubuntu开发者的平台。"
       其实要使用Lanchpad上的软件,除了在sources.list上添加对应的源外,还要有相应的Key:

$sudo apt-key list
输出的结果中有    

pub   1024R/985E0E11 2009-02-22
uid                  Launchpad PPA for ibus-dev


       
就是这个ibus源Key,985E0E11是keyid。在这个网址PPA‘s Key有两种手动添加的方法,一种是GUI操作(有视频可参考,嘿嘿,就算不懂老外在讲什么,也可以看得懂啦 ),一种是CLI操作的。。。

GUI = Graphic User Interface,图形用户界面
CLI = Command Line Interface,命令行界面

我就来讲讲CLI下用apt-key添加
Key

先看看apt-key的帮助:

$sudo apt-key -h
Usage: apt-key [command] [arguments]

Manage apt's list of trusted keys

apt-key add           - add the key contained in ('-' for stdin)
apt-key del          - remove the key
apt-key export       - output the key
apt-key exportall           - output all trusted keys
apt-key update              - update keys using the keyring package
apt-key net-update          - update keys using the network
apt-key list                - list keys
apt-key finger              - list fingerprints
apt-key adv                 - pass advanced options to gpg (download key) 

(方法1)apt-key add ,是从file来添加key;

PPA for ibus-dev --> 
1024R/985E0E11 --> 985E0E11 得到

 
   
 
   
 
   
 
  

你可能感兴趣的:(linux)