ubuntu16.0更改国内阿里源,速度起飞,亲测可用

简介: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup #备份当前也就是默认官方的源列表

在终端中修改方法:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup #备份当前也就是默认官方的源列表


sudo gedit /etc/apt/sources.list #修改sources.list文件中源的列表,删除全部内容,替换为国内源地址。 保存编辑好的文件。


国内源列表:本人试用过的比较快的源

deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe

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

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

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

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

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

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

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

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

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


sudo apt-get update #更新源列表,换源后必须执行


目录
相关文章
|
3月前
|
Ubuntu
ubuntu 22.04 阿里源
ubuntu 22.04 阿里源
1239 0
|
5月前
|
Ubuntu
ubuntu 换源 阿里源
ubuntu 换源 阿里源
607 0
|
8月前
|
Ubuntu C语言
Ubuntu 换阿里源
先说问题,今天在配置Ubuntu按照网上找的换源办法换源之后安装gcc之后无法安装G++。
1059 0
|
10月前
|
Ubuntu
【ubuntu】ubuntu20.04安装ros noetic(亲测有效,附操作步骤)
【ubuntu】ubuntu20.04安装ros noetic(亲测有效,附操作步骤)
1211 0
|
11月前
|
Web App开发 Ubuntu
在Ubuntu18.04下安装谷歌浏览器(亲测)
在Ubuntu18.04下安装谷歌浏览器(亲测)
574 0
|
Ubuntu 关系型数据库 MySQL
Ubuntu彻底卸载MySQL,彻底!亲测!
Ubuntu彻底卸载MySQL,彻底!亲测!
1419 0
|
域名解析 Ubuntu Perl
Ubuntu 快速更换阿里源
本文主要给大家讲解如何为Ubuntu更换阿里源,通过以下四个步骤即可快速实现换源。
48020 3
Ubuntu 快速更换阿里源
|
JavaScript
Ubuntu20安装nodejs和npm并切换阿里源
Ubuntu20安装nodejs和npm并切换阿里源
713 1
Ubuntu20安装nodejs和npm并切换阿里源
ubuntu更换阿里源实践
网上应该可以找到很多关于ubuntu源的设置方法,但是如果不搞清楚就随便设置的话,不仅不能起到应有的效果,还会由于一些问题导致apt不可用。 最正确的更换源的方法应该如系统提示的: a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.