设为首页 收藏本站
查看: 1310|回复: 0

[经验分享] sources.list书写格式及debian源

[复制链接]

尚未签到

发表于 2018-5-15 11:58:01 | 显示全部楼层 |阅读模式
  注:使用非官方源需慎重,尤其是驱动部分的更新可能会导致登录X的问题,具体是xserver-xorg的更新可能会出现问题
  普通升级用 apt-get upgrade , 发行版升级用 apt-get dist-upgrade
                                                
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
                                                
  &nbs
  文章出处:飞诺网(www.firnow.com):http://dev.firnow.com/course/6_system/linux/Linuxjs/20091101/180818.html

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-460530-1-1.html 上篇帖子: 很牛X的linux发行版诞生,融合debian、opensuse、gentoo、arch、grml 下篇帖子: Debian下mysql5+php5+apache2+mantis服务器升级
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表