如何配置Ubuntu国内APT安装源?

Debian-Like

1 前言

一个问题,一篇文章,一出故事。
本章将解决Ubuntu系统从国内源安装或者更新的问题。

2 最佳实践

2.1 创建国内源配置

cp /etc/apt/sources.list.d/ubuntu.list /etc/apt/sources.list.d/ubuntu.list.save
vim /etc/apt/sources.list.d/ubuntu.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

2.2 更新源配置

apt update

参阅文档
================
https://developer.aliyun.com/mirror/ubuntu/

没有评论

发表回复

Debian-Like
如何修改Ubuntu SSSD加域用户的头像?

1 前言 一个问题,一篇文章,一出故事。 笔者的工作电脑是一部使用SSSD加域的电脑,加域的大致过程 …

Debian-Like
如何将远程主机端口经加密隧道映射到本地主机?

1 前言 一个问题,一篇文章,一出故事。 笔者最近需要将远程的一台主机“127.0.0.1:3128 …

Debian-Like
如何安装fcitx5解决Google Chrome输入法兼容问题?

1 前言 一个问题,一篇文章,一出故事。 笔者最近发现Google Chrome与当前系统的拼音输入 …