用如下兩句命令修改更新軟件源列表
# sudo gedit /etc/apt/sources.list
# sudo apt-get update – 列舉本地更新
# sudo apt-get upgrade – 安裝可用更新
# sudo apt-get install 軟件包名 – 安裝指定軟件包
# sudo apt-get remove 軟件包名 – 刪除指定軟件包
#163源(推薦,速度很快):
deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
# 臺灣的官方源速度也相當(dāng)不錯,有時甚至快于內(nèi)陸的:
deb http://tw.archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu maverick-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu maverick-proposed main restricted universe multiverse
# Archive.ubuntu.com更新服務(wù)器(歐洲,此為官方源,電信網(wǎng)通用戶使用):
deb http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# 系統(tǒng)默認(rèn)更新源 (注意順序,原樣拷貝):
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick universe
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical’s
## ‘partner’ repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main
deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
大家在更新軟件包時,,可以打開/etc/apt/sources.list ,這個文件里保存了所有l(wèi)inux網(wǎng)絡(luò)鏈接,大家在里面,把上述的網(wǎng)路路徑添加
進(jìn)入這個文件中,以后輸入sudo apt-get update時就可以自動鏈接你自己添加的網(wǎng)路路徑,從中添加更新liux下的安裝包!
當(dāng)時,我碰到的是libncurses5-dev安裝失敗的問題,以此引申出對源的添加操作,linux本身自帶的網(wǎng)絡(luò)路徑更新,不是太穩(wěn)定,建議有需要的添加別的路徑!!