ubuntu เพิ่ม source เพิ่ม key ให้ apt

# Edit apt-get server list
gksu gedit /etc/apt/sources.list

# Add the following two lines to sources.list:
# deb http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main
# deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main

# Update apt-get
sudo apt-get update

# If you get this error:

# W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available:
# NO_PUBKEY XXXXXXXXXXXXXXXX

# Do This:
## request key from pubkey
gpg --keyserver subkeys.pgp.net --recv XXXXXXXX
## add key to repository
gpg --export --armor XXXXXXXX | sudo apt-key add -
## หรือ
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com XXXXXXXX

อ้างอิง
http://snipt.net/jonbiddle/add-ppalaunchpadnet-to-apt-get-repositories-in-intrepid-ibex/
http://ppa.launchpad.net/

No comments: