查看所用的源

  1. $ sudo vim /etc/apt/sources.list

由于安装的Ubuntu Server 16.04.1 LTS是英文版的,软件源就默认都是 us.archive.ubuntu.com(英国) 的,所以很慢。

  1. # deb cdrom:[Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
  2. #deb cdrom:[Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
  3. # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  4. # newer versions of the distribution.
  5. deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
  6. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
  7. ## Major bug fix updates produced after the final release of the
  8. ## distribution.
  9. deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
  10. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
  11. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  12. ## team. Also, please note that software in universe WILL NOT receive any
  13. ## review or updates from the Ubuntu security team.
  14. deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
  15. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
  16. deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
  17. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
  18. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  19. ## team, and may not be under a free licence. Please satisfy yourself as to
  20. ## your rights to use the software. Also, please note that software in
  21. ## multiverse WILL NOT receive any review or updates from the Ubuntu
  22. ## security team.
  23. deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
  24. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
  25. deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
  26. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
  27. ## N.B. software from this repository may not have been tested as
  28. ## extensively as that contained in the main release, although it includes
  29. ## newer versions of some applications which may provide useful features.
  30. ## Also, please note that software in backports WILL NOT receive any review
  31. ## or updates from the Ubuntu security team.
  32. deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
  33. # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
  34. ## Uncomment the following two lines to add software from Canonical's
  35. ## 'partner' repository.
  36. ## This software is not part of Ubuntu, but is offered by Canonical and the
  37. ## respective vendors as a service to Ubuntu users.
  38. # deb http://archive.canonical.com/ubuntu xenial partner
  39. # deb-src http://archive.canonical.com/ubuntu xenial partner
  40. deb http://security.ubuntu.com/ubuntu xenial-security main restricted
  41. # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
  42. deb http://security.ubuntu.com/ubuntu xenial-security universe
  43. # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
  44. deb http://security.ubuntu.com/ubuntu xenial-security multiverse
  45. # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

为了提高下载速度,将源改为国内的 cn.archive.ubuntu.com ,现在 cn.archive.ubuntu.com 指向阿里云的开源镜像站 mirrors.aliyun.com,下载速度很快。

1. 重命名原来的源作为备份:

  1. $ sudo mv /etc/apt/sources.list sources.list_backup

2. 新建一个sources.list文件

  1. $ sudo vim /etc/apt/sources.list

输入如下内容并保存退出:

  1. deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
  2. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
  3. deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
  4. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
  5. deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
  6. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
  7. deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
  8. deb http://security.ubuntu.com/ubuntu xenial-security main restricted
  9. deb http://security.ubuntu.com/ubuntu xenial-security universe
  10. deb http://security.ubuntu.com/ubuntu xenial-security multiverse

3. 更新apt软件源:

  1. $ sudo apt-get update

结束,以后更新下载软件就快多了。

摘自http://blog.csdn.net/a787202867/article/details/53084602

设置ubantu的软件源地址的更多相关文章

  1. ubantu卸载软件

    参考:https://blog.csdn.net/luckydog612/article/details/80877179 https://blog.csdn.net/get_set/article/ ...

  2. 如何设置文件审计软件FileAudit的浏览选项

    FileAudit允许用户从审计访问事件中排除掉某些特定事件,用户可以把对于自身来说不敏感的文件审计访问事件设定在这些派出范围之类,这样一来就FileAudit就会自动过滤掉这些不明感时间,以便节约用 ...

  3. 设置win 10 软件开机启动

    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 将快捷方式粘贴进去即可

  4. ubantu 安装软件

    一.解压后bin文件夹里有setup.py 进入到setup.py的目录,执行命令: sudo python3 setup.py install 二.以.whl结尾的文件 直接运行命令: sudo p ...

  5. OPENWRT X86 安装使用教程 (未完成)

    目 录  一 下载 Openwrt 镜像文件 二 将镜像文件写入目标磁盘 2.1  写盘工具 2.2 Physdiskwrite 写盘 2.3 win32diskimager 写盘 三 管理界面 3. ...

  6. [转] Nook Glowlight Plus入门指南(Root及相关软件设置)

    [From] http://www.dakang.info/nook-glowlight-plus-root/ 本文仅仅是对大神 xukong及众多热心Hper帖子的一个汇总,稍作个人补充,方便查询, ...

  7. WPF 设置纯软件渲染

    最近看到有小伙伴说 WPF 使用硬件渲染,如何让 WPF 不使用硬件渲染,因为他觉得性能太好了.万一这个版本发布了,产品经理说下个版本要提升性能就不好了.于是就找到一个快速的方法,让程序不使用硬件渲染 ...

  8. Jlink 软件断点和硬件断点

    调试2440 RAM拷贝至SDRAM遇到的问题 汇编代码主要是初始化一些寄存器,关狗,初始化时钟,初始化存储管理器以便访问内存,然后将SoC上4k RAM数据拷贝至SDRAM,然后在SRAM里面运行, ...

  9. day08 网络设置、软件包管理

    网络设置 ifconfig //最小化安装时不可用,需要安装安装包,命令为查看网卡信息 yum install net-tools mtu 网卡的最大发送字节 iptables -F 清掉防火墙配置 ...

随机推荐

  1. WIN7下PHP无法开启CURL,终极解决方案

    常规做法: 1)extension=php_curl.dll之外 2)把libeay32.dll.ssleay32.dll.php_curl.dll复制到C:\Windows\SysWOW64目录下 ...

  2. shell脚本实现进度条

    使用shell脚本编写进度条 可已加入到shell脚本当中 主要作用:好看 美观 没毛用 (一) 普通进度条: #!/bin/bashb='' for ((i=0;$i<=20;i++)) do ...

  3. Linux下MySQL 5.6.24的编译安装与部署

    MySQL 5.6正式版发布了,相对于5.5版本作出了不少改进,其源码安装配置方式也有所变化,本文根据实际操作,不断尝试,精确还原了安装的具体步骤. 在Linux下安装MySQL前,先确认卸载系统自带 ...

  4. NOIP2018没有什么新闻

    noip结束了.站在六中门口,回头望了一眼偌大的校园,萧瑟的秋风卷起残败的落叶,纷纷扬扬地洒落,洒落在OIer的心头. 今年的noip没有什么新闻,有的只是又一次被喷的题,和又一次挂掉的我. Day ...

  5. Android中获取并设置屏幕亮度

    最近在做一个Demo的时候用到了调节屏幕亮度的功能,于是上网搜索了一下,并且写了一个小Demo测试了一下,发现代码还是比较简单的.Android中的亮度调节,主要有三个方向,一个是针对于系统的亮度调节 ...

  6. Codeforces Round #423 (Div. 1, rated, based on VK Cup Finals)

    Codeforces Round #423 (Div. 1, rated, based on VK Cup Finals) A.String Reconstruction B. High Load C ...

  7. 在oracle中插入数据报错:ORA-00984列在此处不允许

    这里报错的原因就是当数据类型varchar2时没有使用单引号. 没写单引号,不管是双引号还是什么都没写都会报这个错误.

  8. Ajax-06 Ajax数据交换格式

    1.数据交换格式 服务端返回的数据,在本质上都是字符串,只是原生Ajax 或jQuery Ajax将这些字符串转换为容易理解的各种常用格式. a. Text 文本字符串 b.  XML JavaScr ...

  9. Linux CentOS服务启动

    Linux CentOS下如何确认MySQL服务已经启动   Linux CentOS一般做为服务器使用,因此,MySQL服务应该随开机自动启动的.正常情况下,查看开机自动启动的服务使用chkconf ...

  10. [转载]java向word模板中填充数据(总结)

    使用过PageOffice动态生成word文档的人都知道,PageOffice可以给word文档的指定位置进行填充,这里我们所说的指定位置在PageOffice的专业术语里面有两个概念,一个叫做数据区 ...