首页 > 服务器 > Web服务器 > 正文

Ubuntu17.04配置更换国内源的方法

2024-09-01 13:54:09
字体:
来源:转载
供稿:网友

### 修改源命令:

sudo vi /etc/apt/source.list

### 把source.list内容替换成下面其中一个源

##阿里云deb http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiversedeb http://archive.canonical.com/ubuntu/ zesty partnerdeb http://extras.ubuntu.com/ubuntu/ zesty main
##Ubuntu官方中国deb http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiversedeb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiversedeb http://archive.canonical.com/ubuntu/ zesty partnerdeb http://extras.ubuntu.com/ubuntu/ zesty main
##网易源deb http://mirrors.163.com/ubuntu/ zesty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiversedeb http://archive.canonical.com/ubuntu/ zesty partnerdeb http://extras.ubuntu.com/ubuntu/ zesty main

第二种方法直接在界面打开:

Ubuntu17.04,国内源,ubuntu,17.04,更换源,ubuntu17

再进入software&updates:

Ubuntu17.04,国内源,ubuntu,17.04,更换源,ubuntu17

Ubuntu17.04,国内源,ubuntu,17.04,更换源,ubuntu17

选择自己所需要的源,

Ubuntu17.04,国内源,ubuntu,17.04,更换源,ubuntu17

过程完成,说明更新完成。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持VEVB武林网。


注:相关教程知识阅读请移步到服务器教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表