1、獲取codelite的公鑰
sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
2、查看自己系統信息
sudo lsb_release -a
例如:
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
3、根據上面的Codename,選擇更新源
sudo apt-add-repository "deb http://repos.codelite.org/ubuntu/ precise universe"
sudo apt-get update
istro/release Lines to appenddebian squeeze
deb http://repos.codelite.org/debian/ squeeze contrib
debian wheezy
deb http://repos.codelite.org/debian/ wheezy contrib
ubuntu lucid
deb http://repos.codelite.org/ubuntu/ lucid universe
ubuntu oneiric
deb http://repos.codelite.org/ubuntu/ oneiric universe
ubuntu precise
deb http://repos.codelite.org/ubuntu/ precise universe
ubuntu quantal
deb http://repos.codelite.org/ubuntu/ quantal universe
ubuntu raring
deb http://repos.codelite.org/ubuntu/ raring universe
更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2