关闭

ubuntu 16.04换源 网易、搜狐、阿里云

标签: ubuntu
8790人阅读 评论(0) 收藏 举报
分类:

如何更改源

  • 可以在软件更新中选择源

  • 使用如下命令更改(修改前先备份):


sudo cp /etc/apt/source.list /etc/apt/source.list.bak

1、打开source.list文件,删除所有内容
sudo gedit /etc/apt/source.list

2、复制以下源

搜狐源
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

网易源
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

阿里云源
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

3、最后执行源更新
sudo apt-get update

国内源比较下载软件比较快,希望对你有帮助。顶一个~


2
0
查看评论
发表评论
* 以上用户言论只代表其个人钱柜娱乐开户,不代表CSDN网站的钱柜娱乐开户或立场

Ubuntu 16.04 几个国内更新源

如何更改源1/ 在修改source.list前,最好先备份一份执行备份命令sudo cp /etc/apt/sources.list /etc/apt/sources.list.old2/ 执行命令打...
  • paincupid
  • paincupid
  • 2016-10-22 23:02
  • 57995

Ubuntu 16.04 apt-get更换为国内阿里云源

1,备份系统默认的源(没有root权限的前面加sudo) cp /etc/apt/sources.list /etc/apt/sources.list.bak1 2,修改/etc/apt/so...
  • Defectink
  • Defectink
  • 2017-12-13 17:21
  • 387

Ubuntu16.04 替换阿里云软件源

一,备份原来的源文件1,首先,进入源文件 sources.list 所在的目录:cd /etc/apt/2,执行sudo cp sources.list sources.list.bak对源文件进行备...
  • Ezreal_King
  • Ezreal_King
  • 2017-05-28 10:32
  • 8689

ubuntu 16.04 更换源

进入/etc/apt/cd /etc/apt在修改前先对 sources.list文件进行备份sudo cp sources.list sources.list.bak修改sources.list文件...
  • JJMJeffrey
  • JJMJeffrey
  • 2017-07-11 22:34
  • 3279

Ubuntu16.04换源

乌班图换源(ubuntu 16.04换阿里云源为例)换成国内最快的阿里云源 第一步:备份原来的源文件cd /etc/apt/ 然后会显示下面的源文件sources.list 输入命令 ...
  • happywho250
  • happywho250
  • 2016-09-11 20:51
  • 27241

ubuntu 16.04换源 网易、搜狐、阿里云

、打开source.list文件,删除所有内容 [html] view plain copy print? sudo gedit /etc/apt/source.lis...
  • z346859
  • z346859
  • 2018-01-08 23:10
  • 43

ubuntu 16.04 apt源使用阿里云镜像

备份原来的源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bakcup 编辑原来的文件 sudo vim /etc/apt/s...
  • chenhaifeng2016
  • chenhaifeng2016
  • 2018-01-01 14:53
  • 130

Ubuntu 16.04 LTS 源

更新源的方法提前保存一下原来源 sudo cp sources.list sources.list.bak 还源命令: sudo gedit /etc/apt/sources.list ...
  • u011557212
  • u011557212
  • 2016-11-17 19:58
  • 1519

Ubuntu 16.04 LTS 更新源,亲测好用!

Ubuntu 16.04 LTS 更新源 亲测好用的阿里云源! 使用如下命令更改(修改前先备份): root@ubuntu:/home/ccbipj# cp /etc/apt/sour...
  • u010447234
  • u010447234
  • 2016-12-10 12:40
  • 5182

给Ubuntu 16.04更换更新源

给自家的Ubuntu下载软件速度有点慢,毕竟是从国外下载软件,就想更换到国内比较好的更新源(就是这些软件所在的服务器),一般直接百度Ubuntu更新源就能出来一大堆,这时候最好是找和自己Ubuntu版...
  • fengyuzhiren
  • fengyuzhiren
  • 2017-02-03 09:23
  • 14670
    个人资料
    • 访问:343404次
    • 积分:3890
    • 等级:
    • 排名:第9496名
    • 原创:93篇
    • 转载:138篇
    • 译文:2篇
    • 评论:56条
    最新评论