歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> 細說 Ubuntu Linux 軟件源

細說 Ubuntu Linux 軟件源

日期:2017/3/2 15:57:08   编辑:Linux基礎知識
一開始裝ubuntu的時候,好多初學者不知道如何添加源,如此問題反反復復,新手又不怎麼去GOOGLE,現在我把這些問題整理下,幫助新手理解並使用。

什麼是 Ubuntu Linux 軟件源

源,在ubuntu下,它就相當於軟件庫,需要什麼軟件,只要記得正確的軟件名並且確定在ubuntu下肯定有的軟件,就可以使用命令來安裝軟件的(當然也可以用新立得來安裝)命令是:sudo apt -get install 軟件名。

拿QQ舉例來說,你不能輸入成 sudo apt-get install qq ,這個是不對了,因為QQ沒有 linux版本【編者注:騰訊於今年的4月2日發布了MID QQ,雖然不是針對傳統的Linux發行版,但也可以預示騰訊下一步的動作,對於MID市場的信心和對Linux操作系統的轉變】,只能用代替來實現,比如代替QQ的是EVA,代替DW的是nvu等,可以輸入

sudo apt-get install eva

或者

sudo apt-get install nvu

但要確定源裡有沒有這個軟件,也就是說軟件庫裡有沒有這個軟件,如果沒有,那就要添加源了(至於如何添加,留在後面說)。這樣輸入完成的話,下面的時間就只有等待安裝,完成後,代替QQ的EVA就可以使用了,雖然功能少點,但能聊就已經不錯了。

刪除軟件是:

sudo apt-get remove 軟件名

如刪 EVA ,輸入

sudo apt-get remove eva

如何為Ubuntu Linux 添加軟件源

看了上面的講解,大家應該明白什麼是Ubuntu Linux 軟件源了,並且也知道如何安裝和刪除軟件了。如果你要的軟件沒有,那就通過添加源來解決這個問題,也就是放入更多的軟件存入軟件庫裡。

因為在圖形界面裡,常常有權限的問題,這個是很麻煩的,我個人喜歡用命令的方式來添加的,我就是用的Ubuntu.cn99.com更新服務器(江蘇省常州市電信,推薦電信用戶使用) ,查看更多的源請點擊這裡,其中源是以deb和deb-src開頭然後加網址這樣的一種格式,比如我取其中一個源,deb http://ubuntu.cn99.com/ubuntu/gutsy…..,這個就是源了,也就是軟件庫。

Ubuntu.cn99.com更新服務器(江蘇省常州市電信,推薦電信用戶使用):

deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse

中國台灣 台灣大學更新服務器(推薦網通用戶使用,強烈推薦此源,比較完整):

deb http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-proposed main multiverse restricted universe
deb-src http://ubuntu.csIE.ntu.edu.tw/ubuntu/ gutsy-proposed main restricted universe multiverse

Mirror.lupaworld.com更新服務器(浙江省杭州市雙線服務器):

deb http://mirror.lupaworld.com/ubuntu gutsy main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu gutsy-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu gutsy-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu gutsy-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu gutsy-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu gutsy main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu gutsy-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu gutsy-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu gutsy-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu gutsy-proposed main restricted universe multiverse

下面我們就開始添加了。首先打開終端輸入,

sudo gedit /etc/apt/sources.list

sources.list就是添加源的文件,只要把我上面說的那個源加到最後一行就行了,然後保存。回到終端下,更新一下軟件列表,輸入

sudo apt-get update

下面就慢慢等了,更新完後,你再看看新立得裡面的軟件 數目,是不是又增加了好多呢。這樣應該有個大概的概念了吧。

這個是我第一次寫,寫的不好的地方可以提出來,以便下次修改。

Copyright © Linux教程網 All Rights Reserved