【阿里云鏡像】更新阿里巴巴開源鏡像站鏡像——Ubuntu鏡像

一、簡介

Ubuntu,是一款基于 Debian Linux 的以桌面應用為主的操作系統,內容涵蓋文字處理、電子郵件、軟件開發工具和 Web 服務等,可供用戶免費下載、使用和分享。

二、配置方法

參考鏈接:

阿里巴巴開源鏡像站

阿里云 ubuntu鏡像源

1、圖形化界面配置操作

圖形化Ubuntu操作系統安裝步驟參考鏈接:Ubuntu 20.04安裝過程

如果安裝圖形化界面的Ubuntu系統的話,推薦使用此方法。

使用圖形界面配置操作步驟: 系統設置 -> 軟件和更新 選擇下載服務器 -> “mirrors.aliyun.com”

(1)打開Ubuntu系統。

(2)右擊選擇"設置"。

(3)選擇”關于“,點擊"軟件更新"。如圖所示。

(4)選擇"其他站點"。

(5)選擇"mirrors.aliyun.com",點擊“選擇服務器”。

(6)切換完成。

(7)重新載入鏡像。

等待更新完成即可。

2、終端界面配置操作

參考鏈接:阿里云 ubuntu鏡像

采用修改配置文件的方式進行切換。

(1)備份源文件。

選擇"在終端中打開"。

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

(2)手動修改源文件。

用熟悉的編輯器打開: /etc/apt/sources.list 替換默認的 archive.ubuntu.com/ 為mirrors.aliyun.com

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


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


(3)更新軟件列表。

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

【阿里云官方鏡像站:https://developer.aliyun.com/mirror/?utm_content=g_1000307095 】

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容