Debian 6.0.7

deb http://mirrors.163.com/debian squeeze main non-free contrib
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main non-free contrib
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security squeeze/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security squeeze/updates main contrib non-free

deb http://http.us.debian.org/debian squeeze main contrib non-free
deb http://non-us.debian.org/debian-non-US squeeze/non-US main contrib non-free
deb http://security.debian.org squeeze/updates main contrib non-free

Debian(squeeze) 设置 apt 源

deb http://mirrors.ustc.edu.cn/debian/ squeeze main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ squeeze main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-backports/ squeeze-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-backports/ squeeze-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-multimedia/ squeeze-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ squeeze-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ squeeze/updates main non-free contrib
# apt-get update

如何更新Debian源和导入公钥

  1. 一、国内源:

      163

    deb http://mirrors.163.com/debian/ squeeze main non-free contrib

    deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free

    deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free

    deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib

    deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free

    deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free

      教育

    deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib

    deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free

    deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free

    科技大学

    deb http://ftp.cn.debian.org/debian squeeze main contrib non-free

    deb-src http://ftp.cn.debian.org/debian squeeze main contrib non-free  台湾主站

    deb http://ftp.tw.debian.org/debian squeeze main contrib non-free

    deb-src http://ftp.tw.debian.org/debian squeeze main contrib non-free  香港

    deb http://ftp.hk.debian.org/debian squeeze main contrib non-free

    deb-src http://ftp.hk.debian.org/debian squeeze main contrib non-free  搜狐镜像

    deb http://mirrors.sohu.com/debian squeeze main contrib non-free

    deb-src http://mirrors.sohu.com/debian squeeze main contrib non-free  北京理工大学

    deb http://mirror.bitunion.org/debian/ stable main contrib non-free

    deb-src http://mirror.bitunion.org/debian/ stable main contrib non-free

    二、官方源

    deb http://ftp.debian.org/debian/ squeeze main contrib non-free

    deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

    deb http://security.debian.org/ squeeze/updates main

    deb-src http://security.debian.org/ squeeze/updates main

    deb http://mirrors.kernel.org/debian/ squeeze main contrib non-free

    deb-src http://mirrors.kernel.org/debian/ squeeze main contrib non-free

    三、dotdeb源  官方

    deb http://packages.dotdeb.org stable all

    deb-src http://packages.dotdeb.org stable all

    deb http://php53.dotdeb.org stable all

    deb-src http://php53.dotdeb.org stable all  dotdeb japan 源

    deb http://download.softagency.net/debian/dotdeb/ stable all

    deb-src http://download.softagency.net/debian/dotdeb/ stable all

    ------------------------------------------------------------------

  2.  

    在此说明配置源的方法:

    很简单,把源地址写进 /etc/apt/sources.list 就可以了。

    可以用 # 注释。

    推荐163,搜狐等源。

  3.  

    sources.list 写好后,需要更新一下。使用如下命令:

    apt-get update

    如果提醒你需要导入密钥,则:

    gpg --keyserver <KeyServer> --recv <公钥签名>gpg --export --armor <公钥签名> | sudo apt-key add -

    其中:

    <KeyServer>,key服务器,可以填 keyserver.ubuntu.com ,当然也可以是   其他的喽。

    公钥签名会在update的提示中说明的。

    也可是使用如下形式:

    apt-key adv --keyserver <KeyServer> --recv-keys <公钥签名>

  4. 5

    经过以上步骤,源已经更新完毕,可以试着使用新源更新一下软件库喽:

    apt-get upgrade

APT源的更多相关文章

  1. [debian]use ISO as debian apt source / 使用ISO文件作为apt源

    准备文件: debian-9.8.0-amd64-DVD-1.iso debian-9.8.0-amd64-DVD-2.iso debian-9.8.0-amd64-DVD-3.iso 挂载: roo ...

  2. 配置 ROS 的 apt 源

    配置 ROS 的 apt 源 ROS的apt源有官方源.国内 USTC 源或新加坡源可供选择, 选择其一就可以了,建议使用国内 USTC 源或新加坡源,安装速度会快很多. 方式一:官方源 $ sudo ...

  3. Debian 采用 iso 镜像作为 apt 源

    1.将N个debian-506-amd64-DVD-N.iso存放于本地或其他媒介内,本例是放在本机/iso/目录下2.创建N个挂载点目录 如下: debian:~#mkdir –r /media/d ...

  4. ubuntu apt源配置

    前言:看见Ubuntu新出了18.04版本感觉不错,装一个玩玩,虽然有很多教程可以参考,但我也给出一个不是很一样的方案吧,尽量解释的详细一点. 为了下载更方便,速度更快,我们往往在使用Linux系列系 ...

  5. windows安装linux虚拟机、修改apt源

    记录一下windows安装虚拟机以及初始配置的一些坑. 安装VMware Workstation 直接百度搜索VMware,选择合适的版本下载: 按照一般软件的安装步骤安装VMware Worksta ...

  6. Ubuntu 16.04 更改apt源

    1 修改apt源配置文件,把/etc/apt/sources.list替换为以下内容: sudo gedit /etc/apt/sources.list deb http://mirrors.aliy ...

  7. 更改 Ubuntu 的 apt 源

    1.在更改apt源之前要先备份官方自带的apt源 cd /etc/apt sudo cp sources.list sources.list.bak 2. 更改 sources.list 文件 sud ...

  8. docker中使用阿里云的apt源安装各种实用工具

    今天想在docker中安装vim工具,还有其他的软件等等,如果你直接执行apt-get install vim是没有用的,会显示: root@7d43d83fd3a8:/etc/nginx# apt- ...

  9. [技术博客]nginx 部署 apt 源

    [技术博客] nginx 部署 apt 源 出于各种各样的原因, 有时需要自己配置apt源, 比如发布自己编写的debian软件包, 内网中只有一台电脑可以访问外网,或者在本地配置自己的apt源.我们 ...

随机推荐

  1. phpcms 2008 /preview.php SQL注入漏洞

    漏洞版本: phpcms 2008 漏洞描述: phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统,也是一个开源的 PHP 开发平台. phpcms 2008的preview ...

  2. 【HTML】Intermediate3:Meta Tags

    1.Meta tags were the town criers of the Internet Do anything to the content that is presented in the ...

  3. input子系统分析

    ------------------------------------------ 本文系本站原创,欢迎转载! 转载请注明出处:http://ericxiao.cublog.cn/ -------- ...

  4. wuzhicms 发送邮件

    发送邮件 //邮件发送 $config = get_cache('sendmail'); $siteconfigs = get_cache('siteconfigs'); $password = de ...

  5. 【Java基础】Java接口的总结

    什么是接口 接口和抽象类很相似,也是一种抽象的概念,用Interface关键字来修饰.那有了抽象类为啥还要有个接口呢,既然都是抽象的,要一个不就可以了吗?其实不是这样的,抽象类是对一类事物共性的一种抽 ...

  6. C 数据结构1——线性表分析(顺序存储、链式存储)

    之前是由于学校工作室招新,跟着大伙工作室招新训练营学习数据结构,那个时候,纯碎是小白(至少比现在白很多)那个时候,学习数据结构,真的是一脸茫然,虽然写出来了,但真的不知道在干嘛.调试过程中,各种bug ...

  7. POJ3356 – AGTC(区间DP&&编辑距离)

    题目大意 给定字符串X和Y,可以对字符串进行一下三种操作: 1.删除一个字符 2.插入一个字符 3.替换一个字符 每个操作代价是1,问运用以上三种操作把X变为Y所需的最小步数是多少? 题解 定义dp[ ...

  8. (一)Memcached初学教程之安装服务篇(Windows下)

    1.下载Memcached的Windows服务安装程序(备注:memcached官网:http://memcached.org/ ,没有提供windows下的安装包,只有UNIX下的安装包,我们这里用 ...

  9. context-param和init-param区别

    转载 http://www.cnblogs.com/hzj-/articles/1689836.html <context-param>的作用:web.xml的配置中<context ...

  10. psd via fft and pwelch

    %fft and pwelch方法求取功率谱load x.mat Fs = 1; t = (0:1/Fs:1-1/Fs).'; Nx = length(x); % Window data w = ha ...