deb http://debian.cn99.com/debian-security/ etch/updates main contrib
deb-src http://debian.cn99.com/debian-security/ etch/updates main contrib
deb http://security.debian.org/ sarge/updates main contrib non-free
deb http://debian.ustc.edu.cn/debian proposed-updates main contrib non-free
deb http://debian.ustc.edu.cn/debian-security stable/updates main
然后按ESC键,输入:wq
Debian 第一组
deb http://debian.cn99.com/debian/ etch main contrib non-free
deb-src http://debian.cn99.com/debian/ etch main contrib non-free
怎样做本地源?
先把下载的三张DVD光盘挂载到三个目录下
mount -o loop /debian-dvd/i386/etch/**-dvd-1.iso /root/apt-source/i386/etch/dvd1
mount -o loop /debian-dvd/i386/etch/-dvd-2.iso /root/apt-source/i386/etch/dvd2
mount -o loop /debian-dvd/i386/etch/**-dvd-3.iso /root/apt-source/i386/etch/dvd3
再修改 /etc/apt/sources.list
deb file:/root/apt-source/i386/etch/dvd1 etch main contrib
deb file:/root/apt-source/i386/etch/dvd2 etch main contrib
deb file:///root/apt-source/i386/etch/dvd3 etch main contrib
而对于局域网内有一个机器做服务器的情况,应该这样添加:
deb http://192.168.1.43/mipsel-etch/dvd1 etch main contrib
deb http://192.168.1.43/mipsel-etch/dvd2 etch main contrib
deb http://192.168.1.43/mipsel-etch/dvd3 etch main contrib
deb http://192.168.1.43/mipsel-etch/dvd1 etch main contrib
deb http://192.168.1.43/mipsel-etch/dvd2 etch main contrib
deb http://192.168.1.43/mipsel-etch/dvd3 etch main contrib