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

相关文章

Nginx设置连接超时并进行测试的方法步骤

《Nginx设置连接超时并进行测试的方法步骤》在高并发场景下,如果客户端与服务器的连接长时间未响应,会占用大量的系统资源,影响其他正常请求的处理效率,为了解决这个问题,可以通过设置Nginx的连接... 目录设置连接超时目的操作步骤测试连接超时测试方法:总结:设置连接超时目的设置客户端与服务器之间的连接

Java判断多个时间段是否重合的方法小结

《Java判断多个时间段是否重合的方法小结》这篇文章主要为大家详细介绍了Java中判断多个时间段是否重合的方法,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录判断多个时间段是否有间隔判断时间段集合是否与某时间段重合判断多个时间段是否有间隔实体类内容public class D

Python使用国内镜像加速pip安装的方法讲解

《Python使用国内镜像加速pip安装的方法讲解》在Python开发中,pip是一个非常重要的工具,用于安装和管理Python的第三方库,然而,在国内使用pip安装依赖时,往往会因为网络问题而导致速... 目录一、pip 工具简介1. 什么是 pip?2. 什么是 -i 参数?二、国内镜像源的选择三、如何

IDEA编译报错“java: 常量字符串过长”的原因及解决方法

《IDEA编译报错“java:常量字符串过长”的原因及解决方法》今天在开发过程中,由于尝试将一个文件的Base64字符串设置为常量,结果导致IDEA编译的时候出现了如下报错java:常量字符串过长,... 目录一、问题描述二、问题原因2.1 理论角度2.2 源码角度三、解决方案解决方案①:StringBui

Linux使用nload监控网络流量的方法

《Linux使用nload监控网络流量的方法》Linux中的nload命令是一个用于实时监控网络流量的工具,它提供了传入和传出流量的可视化表示,帮助用户一目了然地了解网络活动,本文给大家介绍了Linu... 目录简介安装示例用法基础用法指定网络接口限制显示特定流量类型指定刷新率设置流量速率的显示单位监控多个

Java覆盖第三方jar包中的某一个类的实现方法

《Java覆盖第三方jar包中的某一个类的实现方法》在我们日常的开发中,经常需要使用第三方的jar包,有时候我们会发现第三方的jar包中的某一个类有问题,或者我们需要定制化修改其中的逻辑,那么应该如何... 目录一、需求描述二、示例描述三、操作步骤四、验证结果五、实现原理一、需求描述需求描述如下:需要在

JavaScript中的reduce方法执行过程、使用场景及进阶用法

《JavaScript中的reduce方法执行过程、使用场景及进阶用法》:本文主要介绍JavaScript中的reduce方法执行过程、使用场景及进阶用法的相关资料,reduce是JavaScri... 目录1. 什么是reduce2. reduce语法2.1 语法2.2 参数说明3. reduce执行过程

C#中读取XML文件的四种常用方法

《C#中读取XML文件的四种常用方法》Xml是Internet环境中跨平台的,依赖于内容的技术,是当前处理结构化文档信息的有力工具,下面我们就来看看C#中读取XML文件的方法都有哪些吧... 目录XML简介格式C#读取XML文件方法使用XmlDocument使用XmlTextReader/XmlTextWr

C++初始化数组的几种常见方法(简单易懂)

《C++初始化数组的几种常见方法(简单易懂)》本文介绍了C++中数组的初始化方法,包括一维数组和二维数组的初始化,以及用new动态初始化数组,在C++11及以上版本中,还提供了使用std::array... 目录1、初始化一维数组1.1、使用列表初始化(推荐方式)1.2、初始化部分列表1.3、使用std::

oracle DBMS_SQL.PARSE的使用方法和示例

《oracleDBMS_SQL.PARSE的使用方法和示例》DBMS_SQL是Oracle数据库中的一个强大包,用于动态构建和执行SQL语句,DBMS_SQL.PARSE过程解析SQL语句或PL/S... 目录语法示例注意事项DBMS_SQL 是 oracle 数据库中的一个强大包,它允许动态地构建和执行