千家信息网

Ubuntu17.04中如何更换国内源

发表于:2024-11-18 作者:千家信息网编辑
千家信息网最后更新 2024年11月18日,这篇文章将为大家详细讲解有关Ubuntu17.04中如何更换国内源,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。### 修改源命令:sudo vi /etc/apt
千家信息网最后更新 2024年11月18日Ubuntu17.04中如何更换国内源

这篇文章将为大家详细讲解有关Ubuntu17.04中如何更换国内源,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

### 修改源命令:

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

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

再进入software&updates:

选择自己所需要的源,

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

关于"Ubuntu17.04中如何更换国内源"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

0