aboutsummaryrefslogtreecommitdiff
path: root/docs/distros/debian
diff options
context:
space:
mode:
Diffstat (limited to 'docs/distros/debian')
-rw-r--r--docs/distros/debian/linuxmint.md56
-rw-r--r--docs/distros/debian/ubuntu.md55
2 files changed, 110 insertions, 1 deletions
diff --git a/docs/distros/debian/linuxmint.md b/docs/distros/debian/linuxmint.md
index d08c81f..9a99920 100644
--- a/docs/distros/debian/linuxmint.md
+++ b/docs/distros/debian/linuxmint.md
@@ -36,4 +36,58 @@ Linux Mint 是公认对 Windows 迁移用户最友好的 Linux 发行版。它ä¸
### Debian Base
- - LMDE (Linux Mint Debian Edition): 完全脱离 Ubuntu、直接基于 Debian Stable 构建的备用版本。软件略旧但稳定性极高,是官方为了防止 Ubuntu 生态发生巨变而准备的“方舟”系统。 \ No newline at end of file
+ - LMDE (Linux Mint Debian Edition): 完全脱离 Ubuntu、直接基于 Debian Stable 构建的备用版本。软件略旧但稳定性极高,是官方为了防止 Ubuntu 生态发生巨变而准备的“方舟”系统。
+
+## 注意事项
+
+### Debian CN
+
+[Debian 中文社区](https://debiancn.org/)提供了一系列软件,可作为对Debian官方仓库的一个补充,其目的之一是改进Debian中文用户在Debian系统上的使用体验。
+
+???+ note "安装与换源教程"
+ Debian CN所提供的安装教程位于Github。为照顾国内用户,我们将其README.md拷贝并以Markdown格式化后展示于下方。
+
+ ??? info "安装教程"
+
+ 要开始使用社区软件源,请遵照以下步骤进行操作:
+
+ #### 启用社区源的命令
+
+ ```bash
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.list; # 移除旧格式 sources.list 文件
+ echo 'Enabled: yes
+ Types: deb
+ URIs: http://repo.debiancn.org/
+ Suites: bookworm
+ Components: main
+ Signed-By: /usr/share/keyrings/debiancn-keyring.gpg
+ ' | sudo tee /etc/apt/sources.list.d/debiancn.sources
+ wget https://repo.debiancn.org/pool/main/d/debiancn-keyring/debiancn-keyring_0~20250427_all.deb -O /tmp/debiancn-keyring.deb;
+ sudo apt install /tmp/debiancn-keyring.deb;
+ sudo apt update;
+ rm /tmp/debiancn-keyring.deb;
+ ```
+ **注意:** 以上命令适合 ``bookworm`` 用户。您可以自行替换 ``bookworm`` 为您使用的发行代号。目前社区源可以使用以下代号:
+
+ - ``bullseye``
+ - ``bookworm``
+ - ``trixie``
+
+ 目前暂无专用于 ``testing`` 和 ``sid`` 的仓库。
+
+ #### 彻底移除社区软件源
+
+ 如果您需要彻底移除社区软件源,请按以下步骤操作:
+
+ ```bash
+ sudo apt purge debiancn-keyring;
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.sources;
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.list;
+ sudo apt update;
+ ```
+
+ 若要换源,您只需将以上命令中的`http://repo.debiancn.org/`替换为以下任意一个镜像源即可。
+
+ - TUNA: 无
+ - USTC: https://mirrors.ustc.edu.cn/debiancn/
+ - MirrorZ: https://mirrors.cernet.edu.cn/debiancn/
diff --git a/docs/distros/debian/ubuntu.md b/docs/distros/debian/ubuntu.md
index 815157a..236238f 100644
--- a/docs/distros/debian/ubuntu.md
+++ b/docs/distros/debian/ubuntu.md
@@ -47,3 +47,58 @@ Ubuntu是当今最受认可的Linux发行版,也是中国国家操作系统基
### Core
- Ubuntu Core: 不可变系统,适合IoT设备
+## 注意事项
+
+### Debian CN
+
+[Debian 中文社区](https://debiancn.org/)提供了一系列软件,可作为对Debian官方仓库的一个补充,其目的之一是改进Debian中文用户在Debian系统上的使用体验。
+
+???+ note "安装与换源教程"
+ Debian CN所提供的安装教程位于Github。为照顾国内用户,我们将其README.md拷贝并以Markdown格式化后展示于下方。
+
+ ??? info "安装教程"
+
+ 要开始使用社区软件源,请遵照以下步骤进行操作:
+
+ #### 启用社区源的命令
+
+ ```bash
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.list; # 移除旧格式 sources.list 文件
+ echo 'Enabled: yes
+ Types: deb
+ URIs: http://repo.debiancn.org/
+ Suites: bookworm
+ Components: main
+ Signed-By: /usr/share/keyrings/debiancn-keyring.gpg
+ ' | sudo tee /etc/apt/sources.list.d/debiancn.sources
+ wget https://repo.debiancn.org/pool/main/d/debiancn-keyring/debiancn-keyring_0~20250427_all.deb -O /tmp/debiancn-keyring.deb;
+ sudo apt install /tmp/debiancn-keyring.deb;
+ sudo apt update;
+ rm /tmp/debiancn-keyring.deb;
+ ```
+ **注意:** 以上命令适合 ``bookworm`` 用户。您可以自行替换 ``bookworm`` 为您使用的发行代号。目前社区源可以使用以下代号:
+
+ - ``bullseye``
+ - ``bookworm``
+ - ``trixie``
+
+ 目前暂无专用于 ``testing`` 和 ``sid`` 的仓库。
+
+ #### 彻底移除社区软件源
+
+ 如果您需要彻底移除社区软件源,请按以下步骤操作:
+
+ ```bash
+ sudo apt purge debiancn-keyring;
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.sources;
+ sudo rm -fv /etc/apt/sources.list.d/debiancn.list;
+ sudo apt update;
+ ```
+
+ 若要换源,您只需将以上命令中的`http://repo.debiancn.org/`替换为以下任意一个镜像源即可。
+
+ - TUNA: 无
+ - USTC: https://mirrors.ustc.edu.cn/debiancn/
+ - MirrorZ: https://mirrors.cernet.edu.cn/debiancn/
+
+