feat: add configurable mirror source generators and version management
This commit is contained in:
@@ -23,3 +23,19 @@
|
||||
| [ubuntu.md](ubuntu.md) | Ubuntu 软件仓库 |
|
||||
|
||||
文章参考 TUNA 帮助和各项目官方文档编写,原始资料链接见各篇末尾。目录、版本和同步范围以本站实际提供的内容为准。
|
||||
|
||||
## 交互式配置
|
||||
|
||||
后台可通过“插入配置生成器”添加控件,也可以直接在 Markdown 中插入:
|
||||
|
||||
```mirror-config
|
||||
{"type":"ubuntu"}
|
||||
```
|
||||
|
||||
目前注册的类型为 `debian`、`ubuntu`、`debian-security`、`archlinux`、`archlinuxarm`、`archlinuxcn`、`anaconda`、`kubernetes`、`tailscale`、`proxmox`、`openwrt`、`elrepo`。
|
||||
|
||||
不指定 `format` 时,支持多格式的控件会显示格式选择。指定格式可固定展示,例如 `{"type":"ubuntu","format":"deb822","options":{"release":"noble"}}`。默认选项只接受对应控件已定义的值,不支持脚本或任意模板。
|
||||
|
||||
后台保存文章与控件标记;版本列表和默认版本在“配置生成器”中维护,保存后帮助页会自动读取,无需重新编译。`debian-security` 共用 Debian 中的稳定版选项。移除版本前,需检查文章中是否通过 `options.release` 固定引用了它;失效的配置标记会显示为普通代码供作者修正。
|
||||
|
||||
前端的 `src/mirror-config.ts` 注册生成规则,`MirrorConfig.vue` 和 `ConfigCode.vue` 共用布局和复制逻辑。新增软件源或更改包管理器规则仍需修改代码;`backend/generator-defaults.json` 仅用于首次初始化版本目录。
|
||||
|
||||
+6
-22
@@ -10,21 +10,15 @@ conda config --set show_channel_urls yes
|
||||
|
||||
切换前确认所需频道的平台目录已有 `repodata.json`,例如 [conda-forge 的 linux-64 索引](/mirrors/anaconda/cloud/conda-forge/linux-64/)。索引尚未同步完成时,先保留原配置。
|
||||
|
||||
## 使用 conda-forge
|
||||
## 生成频道配置
|
||||
|
||||
将 `.condarc` 中相关配置改为以下内容。已有的 `channels` 应一并检查,避免意外混用不同频道的软件包:
|
||||
在下面选择 conda-forge、Bioconda 或 defaults,将生成的内容合并到 `.condarc`。已有的 `channels` 应一并检查,避免意外混用不同频道的软件包。
|
||||
|
||||
```yaml
|
||||
channels:
|
||||
- conda-forge
|
||||
show_channel_urls: true
|
||||
channel_priority: strict
|
||||
custom_channels:
|
||||
conda-forge: https://mirrors.app.itstudio.club/mirrors/anaconda/cloud
|
||||
bioconda: https://mirrors.app.itstudio.club/mirrors/anaconda/cloud
|
||||
```mirror-config
|
||||
{"type":"anaconda"}
|
||||
```
|
||||
|
||||
这里的 `custom_channels` 地址不包含频道名,Conda 会自动补上 `conda-forge` 或 `bioconda`。
|
||||
使用社区频道时,`custom_channels` 地址不包含频道名,Conda 会自动补上相应名称。Bioconda 配置会按 conda-forge、bioconda 的顺序启用频道。
|
||||
|
||||
刷新索引,并在新环境中验证:
|
||||
|
||||
@@ -42,17 +36,7 @@ conda create -n bio-test --override-channels -c conda-forge -c bioconda samtools
|
||||
|
||||
## 使用 defaults
|
||||
|
||||
如果项目需要 Anaconda 的 `defaults`,可改用下面这套配置。它是上一套配置的替代方案:
|
||||
|
||||
```yaml
|
||||
channels:
|
||||
- defaults
|
||||
show_channel_urls: true
|
||||
default_channels:
|
||||
- https://mirrors.app.itstudio.club/mirrors/anaconda/pkgs/main
|
||||
- https://mirrors.app.itstudio.club/mirrors/anaconda/pkgs/r
|
||||
- https://mirrors.app.itstudio.club/mirrors/anaconda/pkgs/msys2
|
||||
```
|
||||
如果项目需要 Anaconda 的 `defaults`,在上方控件中切换到 defaults,使用生成的 `default_channels` 配置。它是社区频道配置的替代方案,不要将两套配置直接叠加。
|
||||
|
||||
使用前请查阅 Anaconda 对相应仓库的使用条款。自定义环境文件中的完整 URL、`-c` 参数和其他配置文件可能覆盖 `.condarc`;可通过 `conda config --show-sources` 排查。
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
|
||||
编辑 `/etc/pacman.d/mirrorlist`,将下面一行放在最前面:
|
||||
|
||||
```text
|
||||
Server = https://mirrors.app.itstudio.club/mirrors/archlinux/$repo/os/$arch
|
||||
```mirror-config
|
||||
{"type":"archlinux"}
|
||||
```
|
||||
|
||||
`$repo` 和 `$arch` 是 pacman 使用的变量,请原样保留。`/etc/pacman.conf` 中相应仓库应继续通过 `Include = /etc/pacman.d/mirrorlist` 引用镜像列表。
|
||||
|
||||
@@ -10,8 +10,8 @@ sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
|
||||
将下面一行放到 `/etc/pacman.d/mirrorlist` 的最前面:
|
||||
|
||||
```text
|
||||
Server = https://mirrors.app.itstudio.club/mirrors/archlinuxarm/$arch/$repo
|
||||
```mirror-config
|
||||
{"type":"archlinuxarm"}
|
||||
```
|
||||
|
||||
保留 `$arch` 和 `$repo` 原样。这里没有 Arch Linux 官方仓库路径中的 `os/`。
|
||||
|
||||
@@ -4,9 +4,8 @@ Arch Linux CN 是 Arch Linux 中文社区维护的非官方软件仓库,收录
|
||||
|
||||
备份 `/etc/pacman.conf`,在文件末尾添加:
|
||||
|
||||
```ini
|
||||
[archlinuxcn]
|
||||
Server = https://mirrors.app.itstudio.club/mirrors/archlinuxcn/$arch
|
||||
```mirror-config
|
||||
{"type":"archlinuxcn"}
|
||||
```
|
||||
|
||||
`$arch` 保持原样。本站提供的架构可在 [仓库目录](/mirrors/archlinuxcn/)中查看。已有 `[archlinuxcn]` 配置时,修改原来的 `Server`,不要重复添加仓库段。
|
||||
|
||||
@@ -14,29 +14,15 @@
|
||||
|
||||
目录存在不代表该版本仍处于官方安全支持期,请同时查阅 Debian 的安全支持和 LTS 公告。
|
||||
|
||||
## DEB822 格式
|
||||
## 生成安全更新配置
|
||||
|
||||
以 Debian 13 为例,备份 `/etc/apt/sources.list.d/debian.sources`,将其中安全更新段替换为:
|
||||
备份 `/etc/apt/sources.list` 或 `/etc/apt/sources.list.d/debian.sources`,在下面选择当前系统版本和格式,只替换原有的安全更新段。保留主仓库、updates 等其他配置。
|
||||
|
||||
```text
|
||||
Types: deb
|
||||
URIs: https://mirrors.app.itstudio.club/mirrors/debian-security/
|
||||
Suites: trixie-security
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
```mirror-config
|
||||
{"type":"debian-security"}
|
||||
```
|
||||
|
||||
保留文件中 Debian 主仓库、updates 等其他段。Debian 12 将 `trixie-security` 改为 `bookworm-security`;Debian 11 使用 `bullseye-security`,并移除 `non-free-firmware` 组件。
|
||||
|
||||
## 传统 sources.list 格式
|
||||
|
||||
如果系统仍使用传统格式,备份 `/etc/apt/sources.list` 后,将原来的安全更新行改为:
|
||||
|
||||
```text
|
||||
deb https://mirrors.app.itstudio.club/mirrors/debian-security/ trixie-security main contrib non-free non-free-firmware
|
||||
```
|
||||
|
||||
按系统版本调整套件和组件。两种格式选择一种即可,不要重复添加相同的安全更新源。
|
||||
组件会按发行版调整:Debian 11 不加入 `non-free-firmware`。传统格式和 DEB822 选择一种即可,不要重复添加安全更新源。这里生成的内容会使用本站安全更新镜像;希望保留官方安全更新时,请使用 [Debian 帮助页](/help/debian/)中的完整配置生成器。
|
||||
|
||||
## 更新索引
|
||||
|
||||
|
||||
+3
-5
@@ -25,14 +25,12 @@ sudo cp /etc/yum.repos.d/elrepo.repo /etc/yum.repos.d/elrepo.repo.bak
|
||||
2. 启用对应的 `baseurl=`,将其中 `http://elrepo.org/linux` 或 `https://elrepo.org/linux` 替换为 `https://mirrors.app.itstudio.club/mirrors/elrepo`。
|
||||
3. 保留路径后面的系统版本、仓库名称及 `$basearch` 变量;保留官方配置中的签名检查和密钥地址。
|
||||
|
||||
例如 EL9 的基础仓库地址应为:
|
||||
也可以使用下方命令完成备份、启用直接下载地址、替换地址及刷新缓存。命令保留仓库配置中的系统版本、架构和签名校验设置。
|
||||
|
||||
```ini
|
||||
baseurl=https://mirrors.app.itstudio.club/mirrors/elrepo/elrepo/el9/$basearch/
|
||||
```mirror-config
|
||||
{"type":"elrepo"}
|
||||
```
|
||||
|
||||
这只是一行地址示例,不是完整的 `.repo` 文件。不要用它覆盖 `enabled`、`gpgcheck`、`gpgkey` 等其他设置。
|
||||
|
||||
## 刷新缓存
|
||||
|
||||
```sh
|
||||
|
||||
+16
-34
@@ -1,72 +1,54 @@
|
||||
本站镜像 Kubernetes 的版本化软件包仓库,可用于安装 `kubelet`、`kubeadm` 和 `kubectl`。容器镜像、容器运行时及集群网络插件需要另行配置。
|
||||
|
||||
本文以 `v1.35` 仓库为例。它是示例版本,不代表最新版本;已有集群应根据官方升级流程及版本偏差策略选择次版本,并在所有仓库地址中保持一致。修改软件源不会自动完成集群升级。
|
||||
## 选择版本和软件包格式
|
||||
|
||||
## Debian / Ubuntu
|
||||
先根据安装或升级计划确定 Kubernetes 次版本。已有集群需要遵守官方版本偏差策略;修改软件源不会自动完成集群升级。控件中的版本是本站已提供的仓库分支,不代表所有版本都仍处于官方支持期。
|
||||
|
||||
安装所需工具:
|
||||
Debian、Ubuntu 选择 APT,RPM 系统选择 RPM。下面的公钥地址和软件源会一起随版本变化。
|
||||
|
||||
## 准备工具
|
||||
|
||||
APT 系统先安装工具:
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
sudo apt install ca-certificates curl gpg
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
```
|
||||
|
||||
从 Kubernetes 官方仓库获取该通道的签名公钥。如果同名密钥文件已经存在,先核对、备份,再更新:
|
||||
备份已有 Kubernetes 源文件和同名签名密钥文件,再按控件中的步骤配置。APT 显示的第一段命令导入官方公钥,第二段是需要保存的源文件内容;RPM 配置通过 `gpgkey` 指定对应的官方公钥。
|
||||
|
||||
```sh
|
||||
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.35/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
sudo chmod 0644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
```mirror-config
|
||||
{"type":"kubernetes"}
|
||||
```
|
||||
|
||||
备份已有 `/etc/apt/sources.list.d/kubernetes.list`,然后写入:
|
||||
## 刷新索引并安装
|
||||
|
||||
```text
|
||||
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://mirrors.app.itstudio.club/mirrors/kubernetes/core:/stable:/v1.35/deb/ /
|
||||
```
|
||||
|
||||
更新索引并查看可安装版本:
|
||||
APT 系统查看可安装版本:
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
apt-cache madison kubeadm
|
||||
```
|
||||
|
||||
新节点需要安装组件时,可执行:
|
||||
新节点需要安装组件时:
|
||||
|
||||
```sh
|
||||
sudo apt install kubelet kubeadm kubectl
|
||||
sudo apt-mark hold kubelet kubeadm kubectl
|
||||
```
|
||||
|
||||
已有集群请按升级指南逐个处理节点,不要直接套用新节点安装步骤。
|
||||
|
||||
## RPM 系统
|
||||
|
||||
备份已有 `/etc/yum.repos.d/kubernetes.repo`,配置为:
|
||||
|
||||
```ini
|
||||
[kubernetes]
|
||||
name=Kubernetes
|
||||
baseurl=https://mirrors.app.itstudio.club/mirrors/kubernetes/core:/stable:/v1.35/rpm/
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.35/rpm/repodata/repomd.xml.key
|
||||
exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni
|
||||
```
|
||||
|
||||
刷新缓存并查看版本:
|
||||
RPM 系统查看可安装版本:
|
||||
|
||||
```sh
|
||||
sudo dnf makecache
|
||||
dnf --disableexcludes=kubernetes list --showduplicates kubeadm
|
||||
```
|
||||
|
||||
新节点安装组件时使用 `sudo dnf install kubelet kubeadm kubectl --disableexcludes=kubernetes`。`exclude` 用于避免普通系统更新意外升级集群组件。
|
||||
新节点安装使用 `sudo dnf install kubelet kubeadm kubectl --disableexcludes=kubernetes`。配置中的 `exclude` 避免普通系统更新意外升级集群组件。已有集群应按升级指南逐个处理节点。
|
||||
|
||||
## 检查地址
|
||||
|
||||
本站使用 `core:/stable:/v1.xx/` 目录布局,不使用旧的 `apt.kubernetes.io` 地址。其他版本请先查看 [仓库目录](/mirrors/kubernetes/core:/stable:/)是否已同步,并确认该版本仍符合项目的支持策略。
|
||||
本站使用 `core:/stable:/v1.xx/` 目录布局,不使用旧的 `apt.kubernetes.io` 地址。其他版本请查看 [仓库目录](/mirrors/kubernetes/core:/stable:/),并确认对应分支已完成同步。
|
||||
|
||||
## 参考资料
|
||||
|
||||
|
||||
+4
-14
@@ -6,22 +6,12 @@
|
||||
|
||||
OpenWrt 25.12 起使用 APK;24.10 及更早版本使用 OPKG。第三方固件可能更改包管理器或仓库,应以实际系统为准。下面的命令在路由器的 root 会话中执行。
|
||||
|
||||
## APK:OpenWrt 25.12 及之后
|
||||
## 生成换源命令
|
||||
|
||||
备份并替换官方仓库域名:
|
||||
根据当前系统选择 APK 或 OPKG。下面的命令先备份配置,再替换仓库地址并刷新索引。
|
||||
|
||||
```sh
|
||||
cp /etc/apk/repositories.d/distfeeds.list /etc/apk/repositories.d/distfeeds.list.bak
|
||||
sed -i 's|https\?://downloads.openwrt.org|https://mirrors.app.itstudio.club/mirrors/openwrt|g' /etc/apk/repositories.d/distfeeds.list
|
||||
apk update
|
||||
```
|
||||
|
||||
## OPKG:OpenWrt 24.10 及之前
|
||||
|
||||
```sh
|
||||
cp /etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf.bak
|
||||
sed -i 's|https\?://downloads.openwrt.org|https://mirrors.app.itstudio.club/mirrors/openwrt|g' /etc/opkg/distfeeds.conf
|
||||
opkg update
|
||||
```mirror-config
|
||||
{"type":"openwrt"}
|
||||
```
|
||||
|
||||
两种方式仅替换官方地址的前缀,保留原来的版本、target、subtarget 和软件包架构路径。自定义仓库保持原样。不要复制其他路由器的整份源配置,否则可能安装不兼容的软件包。
|
||||
|
||||
+6
-18
@@ -11,29 +11,17 @@ Proxmox VE 9 基于 Debian 13(`trixie`),Proxmox VE 8 基于 Debian 12(`b
|
||||
|
||||
以下操作在节点的 root 终端中执行。操作前备份 `/etc/apt/sources.list` 及 `/etc/apt/sources.list.d/` 中将要修改的文件。
|
||||
|
||||
## Proxmox VE 9:DEB822 格式
|
||||
## 生成仓库配置
|
||||
|
||||
创建或编辑 `/etc/apt/sources.list.d/proxmox.sources`:
|
||||
选择当前 Proxmox VE 版本和源配置格式,将生成的内容保存到所标注的文件中。PVE 9 通常使用 DEB822,PVE 8 通常使用传统格式。
|
||||
|
||||
```text
|
||||
Types: deb
|
||||
URIs: https://mirrors.app.itstudio.club/mirrors/proxmox/debian/pve
|
||||
Suites: trixie
|
||||
Components: pve-no-subscription
|
||||
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
|
||||
```mirror-config
|
||||
{"type":"proxmox"}
|
||||
```
|
||||
|
||||
密钥环由 Proxmox 官方软件包提供;若文件缺失,请先按官方说明修复密钥环,不要移除 `Signed-By` 或关闭验证。
|
||||
Proxmox 官方安装的软件包负责提供签名密钥;PVE 9 使用 `/usr/share/keyrings/proxmox-archive-keyring.gpg`,PVE 8 的官方密钥文件为 `/etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg`。文件缺失时先按对应版本的官方说明修复,不要移除签名校验。传统格式继续使用系统已有的官方签名密钥配置。
|
||||
|
||||
## Proxmox VE 8:传统格式
|
||||
|
||||
创建或编辑 `/etc/apt/sources.list.d/pve-no-subscription.list`:
|
||||
|
||||
```text
|
||||
deb https://mirrors.app.itstudio.club/mirrors/proxmox/debian/pve bookworm pve-no-subscription
|
||||
```
|
||||
|
||||
继续使用系统已有的官方签名密钥配置。两种格式按当前版本选择其一,不要重复启用相同仓库。
|
||||
两种格式选择其一,不要重复启用相同仓库。
|
||||
|
||||
## 检查仓库并更新
|
||||
|
||||
|
||||
+10
-33
@@ -1,50 +1,27 @@
|
||||
本站提供 Tailscale 稳定通道的 Debian、Ubuntu APT 软件包,分别位于 `tailscale/debian/` 和 `tailscale/ubuntu/`。镜像地址中不含上游的 `stable/` 路径;本站未提供对应的 RPM 仓库。
|
||||
|
||||
先运行 `cat /etc/os-release` 确认发行版和代号。下面两套配置择一使用,不能在 Ubuntu 上使用 Debian 仓库,反之亦然。
|
||||
## 确认系统
|
||||
|
||||
## 准备工具
|
||||
运行 `cat /etc/os-release` 确认发行版和代号。不能在 Ubuntu 上选择 Debian 仓库,反之亦然。
|
||||
|
||||
安装工具:
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
sudo apt install ca-certificates curl
|
||||
sudo install -d -m 0755 /usr/share/keyrings
|
||||
```
|
||||
|
||||
已有 `/etc/apt/sources.list.d/tailscale.list` 或同名密钥环时,先备份并检查,避免重复配置。密钥从 Tailscale 官方站点获取。
|
||||
已有 `/etc/apt/sources.list.d/tailscale.list`、`tailscale.sources` 或同名密钥环时,先备份并检查,避免重复配置。
|
||||
|
||||
## Debian 示例
|
||||
## 生成配置
|
||||
|
||||
以 Debian 12(`bookworm`)为例,下载官方公钥:
|
||||
选择当前系统版本。第一段命令从 Tailscale 官方获取对应公钥,第二段是需要保存的源文件内容,两者会一起随版本变化。传统格式和 DEB822 选择一种即可。
|
||||
|
||||
```sh
|
||||
curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
||||
sudo chmod 0644 /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||
```mirror-config
|
||||
{"type":"tailscale"}
|
||||
```
|
||||
|
||||
将 `/etc/apt/sources.list.d/tailscale.list` 设置为:
|
||||
|
||||
```text
|
||||
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://mirrors.app.itstudio.club/mirrors/tailscale/debian bookworm main
|
||||
```
|
||||
|
||||
Debian 13 使用 `trixie`,同时替换官方密钥下载地址和源配置中的代号。其他版本请先确认 [Debian 目录](/mirrors/tailscale/debian/dists/)中存在对应套件。
|
||||
|
||||
## Ubuntu 示例
|
||||
|
||||
以 Ubuntu 24.04 LTS(`noble`)为例:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
||||
sudo chmod 0644 /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||
```
|
||||
|
||||
将 `/etc/apt/sources.list.d/tailscale.list` 设置为:
|
||||
|
||||
```text
|
||||
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://mirrors.app.itstudio.club/mirrors/tailscale/ubuntu noble main
|
||||
```
|
||||
|
||||
其他 Ubuntu 版本需同时修改密钥地址和套件代号,并确认 [Ubuntu 目录](/mirrors/tailscale/ubuntu/dists/)中已提供该套件。
|
||||
未列出的版本请先检查 [Debian 目录](/mirrors/tailscale/debian/dists/)或 [Ubuntu 目录](/mirrors/tailscale/ubuntu/dists/)是否有对应套件,并参照官方说明配置。
|
||||
|
||||
## 安装和登录
|
||||
|
||||
|
||||
+7
-26
@@ -14,38 +14,19 @@ dpkg --print-architecture
|
||||
|
||||
切换前检查 [noble 索引目录](/mirrors/ubuntu/dists/noble/)是否有 `InRelease` 或 `Release`。如果索引尚未同步完成,请继续使用官方源,稍后再切换。
|
||||
|
||||
## Ubuntu 24.04 及之后:DEB822 格式
|
||||
## 生成软件源配置
|
||||
|
||||
先备份 `/etc/apt/sources.list.d/ubuntu.sources`,再将其中的 Ubuntu 仓库配置替换为:
|
||||
先备份系统现有的软件源配置。Ubuntu 24.04 及之后通常使用 `/etc/apt/sources.list.d/ubuntu.sources`,Ubuntu 22.04 通常使用 `/etc/apt/sources.list`。
|
||||
|
||||
```text
|
||||
Types: deb
|
||||
URIs: https://mirrors.app.itstudio.club/mirrors/ubuntu/
|
||||
Suites: noble noble-updates noble-backports
|
||||
Components: main restricted universe multiverse
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
在下面选择当前系统的版本和配置格式,将生成的内容替换到对应文件中。配置中的域名随当前访问的镜像站地址变化,右上角按钮可复制完整配置。
|
||||
|
||||
Types: deb
|
||||
URIs: http://security.ubuntu.com/ubuntu/
|
||||
Suites: noble-security
|
||||
Components: main restricted universe multiverse
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
```mirror-config
|
||||
{"type":"ubuntu"}
|
||||
```
|
||||
|
||||
安全更新保留官方源,以减少镜像同步延迟的影响。不要同时保留另一份相同仓库配置。
|
||||
安全更新默认保留官方源,以减少镜像同步延迟的影响。`proposed` 默认关闭,普通使用无需开启。源码开关控制是否获取源码包索引。
|
||||
|
||||
## Ubuntu 22.04:传统格式
|
||||
|
||||
备份 `/etc/apt/sources.list` 后,将 Ubuntu 条目替换为:
|
||||
|
||||
```text
|
||||
deb https://mirrors.app.itstudio.club/mirrors/ubuntu/ jammy main restricted universe multiverse
|
||||
deb https://mirrors.app.itstudio.club/mirrors/ubuntu/ jammy-updates main restricted universe multiverse
|
||||
deb https://mirrors.app.itstudio.club/mirrors/ubuntu/ jammy-backports main restricted universe multiverse
|
||||
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
|
||||
```
|
||||
|
||||
保留其他独立软件源的配置。需要源码包时,可以在传统格式中增加对应 `deb-src` 行,或将 DEB822 的 `Types` 改为 `deb deb-src`。
|
||||
保留其他独立软件源的配置。传统格式和 DEB822 格式选择一种即可,不要重复启用相同的 Ubuntu 仓库。选择 HTTP 或 HTTPS 时,请确认当前镜像站入口支持对应协议。
|
||||
|
||||
## 更新索引
|
||||
|
||||
|
||||
Reference in New Issue
Block a user