Ubuntu17.04配置更换国内源的方法
2018-03-13 11:13
531 查看
### 修改源命令:
sudo vi /etc/apt/source.list
### 把source.list内容替换成下面其中一个源
##阿里云 deb http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ zesty partner deb http://extras.ubuntu.com/ubuntu/ zesty main
##Ubuntu官方中国 deb http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ zesty partner deb http://extras.ubuntu.com/ubuntu/ zesty main
##网易源 deb http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ zesty partner deb http://extras.ubuntu.com/ubuntu/ zesty main
第二种方法直接在界面打开:
再进入software&updates:
选择自己所需要的源,
过程完成,说明更新完成。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
相关文章推荐
- 国内老版本ubuntu更新源地址以及sources.list的配置方法
- 关于ubuntu 更换成国内源之后,apt-get 出现The following packages have unmet dependencies:的解决方法
- 国内老版本ubuntu更新源地址以及sources.list的配置方法
- Ubuntu17.04安装Docker17.06后配置国内(Docker中国官方)镜像加速
- 详细介绍Ubuntu网络配置方法
- ubuntu16.10安装docker17.03.0-ce并配置国内源和加速器
- Ubuntu Server配置apt-get源的方法
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法
- ubuntu中查看某个软件安装位置和配置文件在什么地方的方法
- Ubuntu系统中jdk的安装及配置方法
- Ubuntu14.04下配置nfs服务器方法和步骤
- ubuntu安装sublime3并配置python3环境的方法
- Ubuntu下安装并配置VS Code编译C++的方法
- Ubuntu下ftp服务器配置方法 (高级配置)
- Ubuntu 15.04 安装配置Apache和mysql的方法
- ubuntu apache2配置详解(含虚拟主机配置方法)
- Ubuntu 命令行修改网络配置方法
- Ubuntu下QT控制台程序无法运行的解决方案以及XTerm的配置方法
- ubuntu 下JDK环境变量配置方法
- Ubuntu(Linux)下配置IP地址的方法