【Ubuntu】Ubuntu 24 配置映象源
零、起因
最近在虛擬機器中安裝了個ubuntu-24.04-desktop-amd64
,預設是國外的軟體源,很慢,故替換到國內。
壹、替換
源地址(阿里源)
https://developer.aliyun.com/mirror/ubuntu
軟體原始檔內容:
原位置(/etc/apt/sources.list
)
deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
新位置(/etc/apt/sources.list.d/ubuntu.sources
)
# 阿里雲
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
選擇一種方式(新位置)寫入到對應檔案中去
更新
更新完軟體源後即可使用更新後的映象源~
更新軟體源:
sudo apt-get update
更新軟體(可選):
sudo apt-get upgrade
貳、參考
- ubuntu映象_ubuntu下載地址_ubuntu安裝教程-阿里巴巴開源映象站
- Ubuntu 24.04 搶先體驗換國內源 清華源 阿里源 中科大源 163源