/etc/apt/sources.list

/etc/apt/sources.list

/var/lib/apt/lists

deb [web或ftp地址] [发行版名字] [main/contrib/non-free]

deb http://http.us.debian.org/debian/ lenny contrib main

debian目录中有个dist目录是默认添加的,lenny是dist目录下的一个最新的stable版本,还有其他的old或testing以及unstable版,main和contrib是lenny下的两个目录(有些还包括一个叫non-free的目录),non-US是非美国的,牵扯到一些由于版权以及加密的软件,它下面同样有main contrib。

debian 7 (Wheezy)

deb http://ftp.tw.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.tw.debian.org/debian wheezy main contrib non-free

debian 6 (squeeze)

# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 CD Binary-1 20101227-19:42]/ squeeze main
deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free

Debian Lenny源已经被官方归档

deb http://archive.debian.org/debian-archive/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian-archive/debian/ lenny main contrib non-free

提示
W: There is no public key available for the following key IDs:
AED4B06F473041FA
W: You may want to run apt-get update to correct these problems
解决办法
apt-get install debian-keyring debian-archive-keyring
apt-key update

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值