+ -
当前位置:首页 → 问答吧 → 如何编写apt source.lst文件?

如何编写apt source.lst文件?

时间:2007-08-07

来源:互联网

大家好。
我是从red hat过来的,刚刚安装了Debian4.0,可是不会写apt的source.lst文件,到网上找了很久,可是没有解释该文件的具体写法和具体含义,谁能给我一个教育网内的source.lst的写法和这个文件的具体含义呢?最好是能用的,先谢过大家了。

作者: dan_chaos   发布时间: 2007-08-07

引用:
作者: dan_chaos
大家好。
我是从red hat过来的,刚刚安装了Debian4.0,可是不会写apt的source.lst文件,到网上找了很久,可是没有解释该文件的具体写法和具体含义,谁能给我一个教育网内的source.lst的写法和这个文件的具体含义呢?最好是能用的,先谢过大家了。

注意,我的例子里 unstable 是Debian的版本,你需要根据自己使用的版本名称进行替换。

编辑文件如下:
vi /etc/apt/sources.list
代码:
#*** this is my debian cdrom install source
#deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-2 (20021218)]/ untesting contrib main non-US/contrib non-US/main
#deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-1 (20021218)]/ untesting contrib main non-US/contrib non-US/main


#*** this is my debian stable install source
deb http://www.debian-multimedia.org/ unstable main
deb http://debian.cn99.com/debian unstable main non-free contrib
deb-src http://debian.cn99.com/debian unstable main non-free contrib

作者: 听峰   发布时间: 2007-08-07

4.0, 就是Etch, 或者叫做Stable。


把我的这个, 里面所有的Sarge,改成Etch,就可以了。


#
# Debian sources list:
#

deb http://security.debian.org/ sarge/updates main contrib
deb http://http.us.debian.org/debian sarge main contrib non-free
deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free
deb http://debian.cn99.com/debian sarge main non-free contrib
deb http://debian.cn99.com/debian-security sarge/updates main contrib non-free
deb-src http://debian.cn99.com/debian sarge main non-free contrib

作者: Macolex   发布时间: 2007-08-07

引用:
作者: Macolex
4.0, 就是Etch, 或者叫做Stable。


把我的这个, 里面所有的Sarge,改成Etch,就可以了。


#
# Debian sources list:
#

deb http://security.debian.org/ sarge/updates main contrib
deb http://http.us.debian.org/debian sarge main contrib non-free
deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free
deb http://debian.cn99.com/debian sarge main non-free contrib
deb http://debian.cn99.com/debian-security sarge/updates main contrib non-free
deb-src http://debian.cn99.com/debian sarge main non-free contrib
大家好。很感谢各位的关注和帮忙。
能否具体解释一下具体的意义?
具体地说就是:deb http://http.us.debian.org/debian sarge main contrib non-free 中,“deb”是什么意思?“http://http.us.debian.org/debian”又是什么意思?最主要的是希望大家能帮忙解释一下“sarge main contrib non-free”这一串是什么意思?是不是规定一定要这么写的?它是怎样和服务器上的目录对应上的?
呵呵,好像很菜的问题,不过我确实不知道,希望各位帮忙具体解释一下,再次谢谢啦!

作者: dan_chaos   发布时间: 2007-08-07

置顶贴
置顶贴

作者: beanya   发布时间: 2007-08-07

大家都过来看看啊,帮忙解释一下那个文件各个部分的含义啦,谢谢啦!

作者: dan_chaos   发布时间: 2007-08-07

man sources.list

作者: flycraft   发布时间: 2007-08-07

好的,谢谢啦!

作者: dan_chaos   发布时间: 2007-08-08