sources.list书写的方法

2024-01-24 11:08
文章标签 方法 list 书写 sources

本文主要是介绍sources.list书写的方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1、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
2、国内安装源:
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
3、常用安装源
安全更新,安装的时候可以选择,不用自己加。
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、Matlab7、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,后面内容相同。
4、交大的源:源码则把加上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

版本说明:
一般有三个版本:stable,testing,unstable
当前的stable是sarge,unstable是sid,testing是etch。
stable
The “stable” distribution contains the latest officially released distribution of Debian.
This is the production release of Debian, the one which we primarily recommend using.
The current “stable” distribution of Debian GNU/Linux is version 3.1r0,codenamed sarge. It was released on June 6th, 2005.
testing
The “testing” distribution contains packages that haven't been acceptedinto a “stable” release yet, but they are in the queue for that. Themain advantage of using this distribution is that it has more recentversions of software.
The current “testing” distribution is etch.
unstable
The “unstable” distribution is where active development of Debianoccurs. Generally, this distribution is run by developers and those wholike to live on the edge.
The “unstable” distribution is called sid.
stable — 最广泛的用于架设产品化 服务器,因为它只包含安全更新。
testing — 推荐工作站用户使用的发行版,因为它包含有最近发布的桌面软件,这些软件已经接受了少量测试。
unstable — 处在悬崖边缘的版本,供 Debian 开发者选用。

原文地址:
http://www.itincn.net/thread-2222-1-1.html

这篇关于sources.list书写的方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/639503

相关文章

C++变换迭代器使用方法小结

《C++变换迭代器使用方法小结》本文主要介绍了C++变换迭代器使用方法小结,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧... 目录1、源码2、代码解析代码解析:transform_iterator1. transform_iterat

C++中std::distance使用方法示例

《C++中std::distance使用方法示例》std::distance是C++标准库中的一个函数,用于计算两个迭代器之间的距离,本文主要介绍了C++中std::distance使用方法示例,具... 目录语法使用方式解释示例输出:其他说明:总结std::distance&n编程bsp;是 C++ 标准

Linux换行符的使用方法详解

《Linux换行符的使用方法详解》本文介绍了Linux中常用的换行符LF及其在文件中的表示,展示了如何使用sed命令替换换行符,并列举了与换行符处理相关的Linux命令,通过代码讲解的非常详细,需要的... 目录简介检测文件中的换行符使用 cat -A 查看换行符使用 od -c 检查字符换行符格式转换将

SpringBoot实现数据库读写分离的3种方法小结

《SpringBoot实现数据库读写分离的3种方法小结》为了提高系统的读写性能和可用性,读写分离是一种经典的数据库架构模式,在SpringBoot应用中,有多种方式可以实现数据库读写分离,本文将介绍三... 目录一、数据库读写分离概述二、方案一:基于AbstractRoutingDataSource实现动态

Java中的String.valueOf()和toString()方法区别小结

《Java中的String.valueOf()和toString()方法区别小结》字符串操作是开发者日常编程任务中不可或缺的一部分,转换为字符串是一种常见需求,其中最常见的就是String.value... 目录String.valueOf()方法方法定义方法实现使用示例使用场景toString()方法方法

Java中List的contains()方法的使用小结

《Java中List的contains()方法的使用小结》List的contains()方法用于检查列表中是否包含指定的元素,借助equals()方法进行判断,下面就来介绍Java中List的c... 目录详细展开1. 方法签名2. 工作原理3. 使用示例4. 注意事项总结结论:List 的 contain

macOS无效Launchpad图标轻松删除的4 种实用方法

《macOS无效Launchpad图标轻松删除的4种实用方法》mac中不在appstore上下载的应用经常在删除后它的图标还残留在launchpad中,并且长按图标也不会出现删除符号,下面解决这个问... 在 MACOS 上,Launchpad(也就是「启动台」)是一个便捷的 App 启动工具。但有时候,应

SpringBoot日志配置SLF4J和Logback的方法实现

《SpringBoot日志配置SLF4J和Logback的方法实现》日志记录是不可或缺的一部分,本文主要介绍了SpringBoot日志配置SLF4J和Logback的方法实现,文中通过示例代码介绍的非... 目录一、前言二、案例一:初识日志三、案例二:使用Lombok输出日志四、案例三:配置Logback一

Python实现无痛修改第三方库源码的方法详解

《Python实现无痛修改第三方库源码的方法详解》很多时候,我们下载的第三方库是不会有需求不满足的情况,但也有极少的情况,第三方库没有兼顾到需求,本文将介绍几个修改源码的操作,大家可以根据需求进行选择... 目录需求不符合模拟示例 1. 修改源文件2. 继承修改3. 猴子补丁4. 追踪局部变量需求不符合很

mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp