文章目录



一、简介


Ubuntu,是一款基于 Debian Linux 的以桌面应用为主的操作系统,内容涵盖文字处理、电子邮件、软件开发工具和 Web 服务等,可供用户免费下载、使用和分享。


二、配置方法

参考链接:

阿里巴巴开源镜像站

阿里云 ubuntu镜像源

1、图形化界面配置操作

图形化Ubuntu操作系统安装步骤参考链接:Ubuntu 20.04安装过程

如果安装图形化界面的Ubuntu系统的话,推荐使用此方法。

使用图形界面配置操作步骤:

系统设置 -> 软件和更新 选择下载服务器 -> "mirrors.aliyun.com"

(1)打开Ubuntu系统。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_服务器

(2)右击选择"​​设置​​"。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_源文件_02

(3)选择”关于“,点击"软件更新"。如图所示。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_服务器_03

(4)选择"其他站点"。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_源文件_04

(5)选择"mirrors.aliyun.com",点击“选择服务器”。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_服务器_05

(6)切换完成。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu系统_06

(7)重新载入镜像。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu_07

等待更新完成即可。

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu系统_08

2、终端界面配置操作

参考链接:​​阿里云 ubuntu镜像​

采用修改配置文件的方式进行切换。

(1)备份源文件。

选择"在终端中打开"。

root@xyb-virtual-machine:~# cp /etc/apt/sources.list /etc/apt/sources.list.backup

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_sed_09

(2)手动修改源文件。

用熟悉的编辑器打开:

/etc/apt/sources.list

替换默认的

http://archive.ubuntu.com/

为mirrors.aliyun.com

root@xyb-virtual-machine:~# vi /etc/apt/sources.list

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_服务器_10

ubuntu 20.04(focal) 配置如下


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

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

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

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

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

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu系统_11

(3)更新软件列表。

root@xyb-virtual-machine:~# apt-get update

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu系统_12

【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_服务器_13【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像_ubuntu系统_14