欢迎光临
我们一直在努力

Ubuntu镜像更换国内阿里云和网易软件源 提高软件安装效率

我们在选择服务器的时候,有些国外的服务器镜像软件源是国外的,这样我们在安装的时候速度会比较慢。我们一般会将安装国内的软件源,较多的是阿里云和网易软件源的。我常用的是Ubuntu,这里就整理如何对Ubuntu镜像安装软件源。

cp /etc/apt/sources.list /etc/apt/sources.list.old

这里我们先备份老的源。

vi /etc/apt/sources.list

这里我们编辑。我们可以选择下面的二选一。

1、阿里云软件源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

2、网易软件源

deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

然后我们再更新源。

sudo apt-get update
sudo apt-get upgrade

这样我们就更新到最新的Ubuntu。

赞(0) 打赏
未经允许不得转载:kkce - 国外主机测评、国外VPS、国外服务器、国外云服务器 » Ubuntu镜像更换国内阿里云和网易软件源 提高软件安装效率

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册