最後更新: 2022-08-29
介紹
ppa 全名是 Personal Package Archives
Personal Package Archives (PPA) allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.
Ubuntu >= 9.10 才用到
使用的 Example
# corosync pacemaker libqb
!! 錯誤方式 !!
修改 /etc/apt/sources.list 加入
deb http://ppa.launchpad.net/asmartin/cluster-stable/ubuntu precise main
之後如果直接 apt-get 安 package 會有以下 Error
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FF1694940C6C5BB8
!! 正確方式 !!
安裝 add-apt-repository
apt-get install python-software-properties
Example:
add-apt-repository ppa:asmartin/cluster-stable
You are about to add the following PPA to your system: Backported cluster packages for the latest Ubuntu LTS More info: https://launchpad.net/~asmartin/+archive/cluster-stable Press [ENTER] to continue or ctrl-c to cancel adding it 按 ENTER gpg: keyring `/tmp/tmpN0AjZa/secring.gpg' created gpg: keyring `/tmp/tmpN0AjZa/pubring.gpg' created gpg: requesting key 0C6C5BB8 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpN0AjZa/trustdb.gpg: trustdb created gpg: key 0C6C5BB8: public key "Launchpad PPA for Andrew Martin" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK
它會把那 ppa 放到
- /etc/apt/sources.list.d/
移除一個 PPA
add-apt-repository -r ppa:serge-hallyn/virt
You are about to remove the following PPA from your system: Virtualization packages, i.e.: kvm, qemu, libvirt, virt-manager. More info: https://launchpad.net/~serge-hallyn/+archive/virt Press [ENTER] to continue or ctrl-c to cancel removing it
不錯的 PPA
PPA for Ubuntu Virtualisation team
https://launchpad.net/~ubuntu-virt/+archive/ppa
ppa:ubuntu-virt/ppa