注:使用非官方源需慎重,尤爲是驅動部分的更新可能會致使登陸X的問題,具體是xserver-xorg的更新可能會出現問題php
普通升級用 apt-get upgrade , 發行版升級用 apt-get dist-upgrade
一、sources.list書寫的方法
(1)地址:找到包含dists和pool這兩個目錄的地址,好比
http://mirrors.geekbone.org/debian/;
(2)目錄名:打開dists,裏面包含的目錄名字,記下來。好比dists/包含sarge、etch、woody、sid。
(3)名字:打開以上目錄,看看裏面包含哪些組件名字,好比main、cont
rib、non-free;
4)書寫格式:deb <1記下來的地址> <2記下來的目錄名> <3記下來的名字>,如:
deb ftp://ftp.linuxforum.net/debian/ sarge main contrib non-free
發現一個比較快的臺灣地址: http://ftp.isu.edu.tw/pub/Linux/Debian/debian/
書寫了一下:deb http://ftp.isu.edu.tw/pub/Linux/Debian/debian/ sarge main contrib non-free
二、國內安裝源:
deb http://mirror.geekbone.org/debian woody mian contrib non-free, 升級前,修改/etc/apt/souces.list的內容以下:
deb http://mirror.geekbone.org/debian sarge main contrib non-free
三、經常使用安裝源
安全更新,安裝的時候能夠選擇,不用本身加。
deb http://security.debian.org/ sarge/updates main contrib non-free
比較快的Asia安裝源
deb http://mirror.vmmatrix.net/debian/ testing main
deb-src http://mirror.vmmatrix.net/debian/ testing main
發現一個比較快的臺灣地址:
deb http://ftp.isu.edu.tw/pub/Linux/Debian/debian/ sarge main contrib non-free
國內安裝源:
deb http://debian.ustc.edu.cn/debian sarge main non-free contrib
deb http://debian.ustc.edu.cn/debian-non-US sarge/non-US main non-free contrib
deb http://debian.ustc.edu.cn/debian-uo sid marillat rareware misc ustc firefly jrfonseca java
教育網經常使用sources.list(如下只適用於sid即unstable用戶,其它版本用戶請酌情更改)
中科大
deb ftp://debian.ustc.edu.cn/debian unstable main non-free contrib
deb-src ftp://debian.ustc.edu.cn/debian unstable main non-free contrib
大連理工
deb ftp://mirror.dlut.edu.cn/debian unstable main non-free contrib
deb-src ftp://mirror.dlut.edu.cn/debian unstable main non-free contrib
清華大學
deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable main non-free cont
rib
deb-src ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable main non-free
contrib
非官方軟件包(uo)
中科大uo倉庫:
wma、ape插件for xmms,以及 realplay等:
deb ftp://debian.ustc.edu.cn/rarewares.org unstable main
mplayer等:
deb ftp://debian.ustc.edu.cn/debian-uo sid marillat
j2re, j2sdk or mozilla java plugin:
deb ftp://debian.ustc.edu.cn/debian-uo sid java
firefly fake bold font style package:慎重使用
deb ftp://debian.ustc.edu.cn/debian-uo sid firefly
gbkfonts、xpdf等:
deb ftp://debian.ustc.edu.cn/debian-uo sid ustc
其它一些uo:
Bootsplash patches and utils:
deb http://www.bootsplash.de/files/debian unstable main
Fangzheng Fonts、Matlab七、Mathematica、cedega等:
deb ftp://202.38.73.198/debian sid foo
xmms2:
deb http://exodus.xmms.se/debian stable main
非官方軟件包查詢地址:
http://www.apt-get.org/search.php
2) blackdown Java
代碼:
deb ftp://metalab.unc.edu/pub/linux/ ... lackdown.org/debian unstable main non-free
4) USTC 的非官方資源
代碼:
deb ftp://debian.ustc.edu.cn/debian-uo sid marillat rareware ustc java misc jrfonseca firefly
deb-src ftp://debian.ustc.edu.cn/debian-uo sid marillat rareware ustc java misc jrfonseca firefly
5) 豐富資源
代碼:
deb http://debian.okey.net/debian/sarge main non-free contrib
deb http://debian.okey.net/debian-uo/ unstable firefly java jrfonseca marillat misc rareware ustc
deb http://debian.okey.net/debian-non-US/ sarge/non-US main contrib
6) 提供realplayer,mplayer, acroreader, w32codecs, 等等
代碼:
deb ftp://ftp.nerim.net/debian-marillat/ unstable main
deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main
使用時添加到/etc/apt/sources.list裏便可,可是非官方的uo軟件包,使用時要慎重,以
免發生依賴性錯誤;如需下載sources,請自行添加deb-src,後面內容相同。
四、交大的源:源碼則把加上deb-src源
有各個發行版本的源,能夠參考地址ftp://ftp.sjtu.edu.cn/sites/而後寫出源:
Debian:sjtu主要有這些版本:sarge,stable,etch,sid,testing,unstable,woody等版本,其中還有 etch-proposed-updates,sarge-proposed-updates,stable-proposed- updates,testing-proposed-updates,woody-proposed-updates等五個。
好比sarge版本的源能夠寫(其它版本只要把sarge換成相應的版本便可):
deb ftp://ftp.sjtu.edu.cn/debian sarge contrib main non-free
deb ftp://ftp.sjtu.edu.cn/debian sarge-proposed-update contrib main non-free
安全更新的源:有etch,sarge,stable,testing,woody等五個版本
以sarge版本爲例:
deb ftp://ftp.sjtu.edu.cn/debian-security sarge/updates contrib main non-free
&nbshtml
文章出處:飛諾網(www.firnow.com):http://dev.firnow.com/course/6_system/linux/Linuxjs/20091101/180818.htmljava