设置ubantu的软件源地址
查看所用的源
- $ sudo vim /etc/apt/sources.list
由于安装的Ubuntu Server 16.04.1 LTS是英文版的,软件源就默认都是 us.archive.ubuntu.com(英国) 的,所以很慢。
- # deb cdrom:[Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
- #deb cdrom:[Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
- # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
- # newer versions of the distribution.
- deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
- ## Major bug fix updates produced after the final release of the
- ## distribution.
- deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
- ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- ## team. Also, please note that software in universe WILL NOT receive any
- ## review or updates from the Ubuntu security team.
- deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
- deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
- ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- ## team, and may not be under a free licence. Please satisfy yourself as to
- ## your rights to use the software. Also, please note that software in
- ## multiverse WILL NOT receive any review or updates from the Ubuntu
- ## security team.
- deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
- deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
- ## N.B. software from this repository may not have been tested as
- ## extensively as that contained in the main release, although it includes
- ## newer versions of some applications which may provide useful features.
- ## Also, please note that software in backports WILL NOT receive any review
- ## or updates from the Ubuntu security team.
- deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
- # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
- ## Uncomment the following two lines to add software from Canonical's
- ## 'partner' repository.
- ## This software is not part of Ubuntu, but is offered by Canonical and the
- ## respective vendors as a service to Ubuntu users.
- # deb http://archive.canonical.com/ubuntu xenial partner
- # deb-src http://archive.canonical.com/ubuntu xenial partner
- deb http://security.ubuntu.com/ubuntu xenial-security main restricted
- # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
- deb http://security.ubuntu.com/ubuntu xenial-security universe
- # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
- deb http://security.ubuntu.com/ubuntu xenial-security multiverse
- # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
为了提高下载速度,将源改为国内的 cn.archive.ubuntu.com ,现在 cn.archive.ubuntu.com 指向阿里云的开源镜像站 mirrors.aliyun.com,下载速度很快。
1. 重命名原来的源作为备份:
- $ sudo mv /etc/apt/sources.list sources.list_backup
2. 新建一个sources.list文件
- $ sudo vim /etc/apt/sources.list
输入如下内容并保存退出:
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
- deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
- deb http://security.ubuntu.com/ubuntu xenial-security main restricted
- deb http://security.ubuntu.com/ubuntu xenial-security universe
- deb http://security.ubuntu.com/ubuntu xenial-security multiverse
3. 更新apt软件源:
- $ sudo apt-get update
结束,以后更新下载软件就快多了。
摘自http://blog.csdn.net/a787202867/article/details/53084602
设置ubantu的软件源地址的更多相关文章
- ubantu卸载软件
参考:https://blog.csdn.net/luckydog612/article/details/80877179 https://blog.csdn.net/get_set/article/ ...
- 如何设置文件审计软件FileAudit的浏览选项
FileAudit允许用户从审计访问事件中排除掉某些特定事件,用户可以把对于自身来说不敏感的文件审计访问事件设定在这些派出范围之类,这样一来就FileAudit就会自动过滤掉这些不明感时间,以便节约用 ...
- 设置win 10 软件开机启动
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 将快捷方式粘贴进去即可
- ubantu 安装软件
一.解压后bin文件夹里有setup.py 进入到setup.py的目录,执行命令: sudo python3 setup.py install 二.以.whl结尾的文件 直接运行命令: sudo p ...
- OPENWRT X86 安装使用教程 (未完成)
目 录 一 下载 Openwrt 镜像文件 二 将镜像文件写入目标磁盘 2.1 写盘工具 2.2 Physdiskwrite 写盘 2.3 win32diskimager 写盘 三 管理界面 3. ...
- [转] Nook Glowlight Plus入门指南(Root及相关软件设置)
[From] http://www.dakang.info/nook-glowlight-plus-root/ 本文仅仅是对大神 xukong及众多热心Hper帖子的一个汇总,稍作个人补充,方便查询, ...
- WPF 设置纯软件渲染
最近看到有小伙伴说 WPF 使用硬件渲染,如何让 WPF 不使用硬件渲染,因为他觉得性能太好了.万一这个版本发布了,产品经理说下个版本要提升性能就不好了.于是就找到一个快速的方法,让程序不使用硬件渲染 ...
- Jlink 软件断点和硬件断点
调试2440 RAM拷贝至SDRAM遇到的问题 汇编代码主要是初始化一些寄存器,关狗,初始化时钟,初始化存储管理器以便访问内存,然后将SoC上4k RAM数据拷贝至SDRAM,然后在SRAM里面运行, ...
- day08 网络设置、软件包管理
网络设置 ifconfig //最小化安装时不可用,需要安装安装包,命令为查看网卡信息 yum install net-tools mtu 网卡的最大发送字节 iptables -F 清掉防火墙配置 ...
随机推荐
- 关于camera 构架设计的一点看法
camera的构架目前来看有两种,一种是集中式管理,比如说建立一个引擎,引擎向上提供接口,向下管理所有模块.把camera的所有功能划分为不同的模块,又引擎统一管理.模块的结构就比较随意了,可以统一接 ...
- Java学习笔记50:JSONObject与JSONArray的使用(转)
Java不像PHP解析和生产JSON总是一个比较痛苦的过程.但是使用JSONObject和JSONArray会让整个过程相对舒服一些. 需要依赖的包:commons-lang.jar commons- ...
- 启动工程Ehcache报错
缓存组建用的Ehcache,在启动的时候报了下面的错误,虽然不影响使用,看着还是有点碍眼: DEBUG net.sf.ehcache.util.UpdateChecker - Update che ...
- 聊聊这两天在linux安装PHP7遇到的坑,真的是坑死人不偿命啊
前情摘要: 这两天要在虚拟机上部署项目,用于测试在linux上项目效果怎样,然后这两天就一直在部署apache+mysql+php 其实部署还是很简单的具体的apache和mysql部署方法请看其他两 ...
- 简单的aop实现日志打印(切入点表达式)
Spring中可以使用注解或XML文件配置的方式实现AOP. 1.导入jar包 com.springsource.net.sf.cglib -2.2.0.jar com.springsource.or ...
- git diff提示filemode发生改变解决办法
git diff提示filemode发生改变(old mode 100644.new mode 10075) Posted on 2016-11-15 16:55 我是孙海龙 阅读(2292) 评论( ...
- 使用node-inspector调试NodeJS代码
使用node-inspector调试NodeJS代码 任何一门完备的语言技术栈都少不了健壮的调试工具,对于NodeJS平台同样如此,笔者研究了几种调试NodeJS代码的方式,通过对比,还是觉得node ...
- mac 安装python3
Python有两个版本,一个是2.x版,一个是3.x版,这两个版本是不兼容的. 现在 Mac 上默认安装的 python 版本为 2.7 版本,若 安装 新版本需要 通过 该地址进行下载: http ...
- C语言,C#,Java,JavaScript之强类型与弱类型
奇葩的我今天想到一个坑爹的问题,都说Java是强类型的语言,JavaScript是弱类型的语言. 嗯嗯,那初学时候的C语言呢? 呵呵哒,突然觉得短路了.说Java是强类型的语言是因为遇到这样的情况: ...
- Find Min In Rotated Sorted Array2,包含重复数字的反转序列找最小值。
public int findMin(int[] nums) { return findMin(nums, 0, nums.length - 1); } public int findMin(int[ ...