如何编写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
把我的这个, 里面所有的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
作者: flycraft 发布时间: 2007-08-07
作者: dan_chaos 发布时间: 2007-08-08
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28