APT源
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源和导入公钥
一、国内源:
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
------------------------------------------------------------------
在此说明配置源的方法:
很简单,把源地址写进 /etc/apt/sources.list 就可以了。
可以用 # 注释。
推荐163,搜狐等源。
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 <公钥签名>
- 5
经过以上步骤,源已经更新完毕,可以试着使用新源更新一下软件库喽:
apt-get upgrade
APT源的更多相关文章
- [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 ...
- 配置 ROS 的 apt 源
配置 ROS 的 apt 源 ROS的apt源有官方源.国内 USTC 源或新加坡源可供选择, 选择其一就可以了,建议使用国内 USTC 源或新加坡源,安装速度会快很多. 方式一:官方源 $ sudo ...
- Debian 采用 iso 镜像作为 apt 源
1.将N个debian-506-amd64-DVD-N.iso存放于本地或其他媒介内,本例是放在本机/iso/目录下2.创建N个挂载点目录 如下: debian:~#mkdir –r /media/d ...
- ubuntu apt源配置
前言:看见Ubuntu新出了18.04版本感觉不错,装一个玩玩,虽然有很多教程可以参考,但我也给出一个不是很一样的方案吧,尽量解释的详细一点. 为了下载更方便,速度更快,我们往往在使用Linux系列系 ...
- windows安装linux虚拟机、修改apt源
记录一下windows安装虚拟机以及初始配置的一些坑. 安装VMware Workstation 直接百度搜索VMware,选择合适的版本下载: 按照一般软件的安装步骤安装VMware Worksta ...
- Ubuntu 16.04 更改apt源
1 修改apt源配置文件,把/etc/apt/sources.list替换为以下内容: sudo gedit /etc/apt/sources.list deb http://mirrors.aliy ...
- 更改 Ubuntu 的 apt 源
1.在更改apt源之前要先备份官方自带的apt源 cd /etc/apt sudo cp sources.list sources.list.bak 2. 更改 sources.list 文件 sud ...
- docker中使用阿里云的apt源安装各种实用工具
今天想在docker中安装vim工具,还有其他的软件等等,如果你直接执行apt-get install vim是没有用的,会显示: root@7d43d83fd3a8:/etc/nginx# apt- ...
- [技术博客]nginx 部署 apt 源
[技术博客] nginx 部署 apt 源 出于各种各样的原因, 有时需要自己配置apt源, 比如发布自己编写的debian软件包, 内网中只有一台电脑可以访问外网,或者在本地配置自己的apt源.我们 ...
随机推荐
- linux 内核驱动--Platform Device和Platform_driver注册过程
linux 内核驱动--Platform Device和Platform_driver注册过程 从 Linux 2.6 起引入了一套新的驱动管理和注册机制 :Platform_device 和 Pla ...
- Github是什么?看完你就了解一些了
要了解Github,我们首先要知道Git,Git是管理代码的工具,写代码不是件轻松的事儿,一个人写的时候已经不轻松了,一群人写就更不轻松了,但这世界上很多事都是怎么不轻松怎么来的,大部分人都会和别人一 ...
- Xcode6新建的工程没有Frameworks文件夹了?!原来是这样
http://stackoverflow.com/questions/24181062/default-frameworks-missing-in-xcode-6-beta They are impo ...
- AIX 添加开机启动项
在学习本主题之前,还是先学习一些AIX关于启动的基础知识,如果你只关心如何开机自动重启程序,请跳过第一章.第二章. ----------------------------第一章 AIX开机启动过程介 ...
- 【解决】Oracle服务器ip地址被占用
数据库服务器ip地址被占用,怎么破?! 服务器: 1.改服务器ip: 2.改tnsnames.ora里配置的Oracle数据库ip: 3.重启Oracle服务: 客户端: 1.改tnsnames.or ...
- java项目中eclipse控制台输出log4j的信息
最近做的一个hadoop项目中,用MR实现了一个比较复杂的问题,其中的日志信息都是使用的是log4j来处理的.但不知怎么控制台不输出日志信息,只能输出System.out.println()信息,这个 ...
- HW5.19
public class MyTriangle { public static boolean isValid(double side1, double side2, double side3) { ...
- Redis 数据库结构设计
Redis设计参考资料: http://my.oschina.net/fsmwhx/blog/152130 http://my.oschina.net/1123581321/blog/164288 h ...
- light oj 1294 - Positive Negative Sign
1294 - Positive Negative Sign PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: ...
- 【三支火把】---队列和栈的C程序实现
这几天总结了C语言的队列,栈的实现方法,在此总结一下:一.栈 首先从栈开始,诚然,相信学习过数据结构的你,肯定应该知道栈是什么东西了,如果不知道也没事每一句话我就可以帮你总结--数据只在栈顶进行插入和 ...