为文档添加i18n插件并新增繁体中文语言
							
								
								
									
										27
									
								
								README.md
									
									
									
									
									
								
							
							
						
						@@ -20,6 +20,8 @@
 | 
			
		||||
    </a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p align="center">简体中文 | <a href="README.zh-Hant.md">繁體中文</a></p>
 | 
			
		||||
 | 
			
		||||
<table align="center">
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th align="left">操作系统</th>
 | 
			
		||||
@@ -66,7 +68,7 @@
 | 
			
		||||
        <td align="center">7 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://fedoraproject.org/zh-Hans" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a> Fedora</td>
 | 
			
		||||
        <td><a href="https://fedoraproject.org" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a> Fedora</td>
 | 
			
		||||
        <td align="center">30 ~ 42</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
@@ -78,7 +80,7 @@
 | 
			
		||||
        <td align="center">8 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://almalinux.org/zh-hans" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a> AlmaLinux</td>
 | 
			
		||||
        <td><a href="https://almalinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a> AlmaLinux</td>
 | 
			
		||||
        <td align="center">8 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
@@ -153,18 +155,27 @@
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
## 赞助商
 | 
			
		||||
 | 
			
		||||
<a href="https://linuxmirrors.cn/sponsor/zh-cn">
 | 
			
		||||
    <picture>
 | 
			
		||||
      <source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/sponsor/all-dark.png">
 | 
			
		||||
      <img src="/docs/assets/images/sponsor/all-light.png" alt="Sponsors">
 | 
			
		||||
    </picture>
 | 
			
		||||
</a>
 | 
			
		||||
 | 
			
		||||
## 特别感谢
 | 
			
		||||
 | 
			
		||||
<a href="https://www.jetbrains.com/zh-cn" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/jetbrains-dark.svg" width="140" height="50"><img src="/docs/assets/images/icon/jetbrains-light.svg" alt="jetbrains" width="140" height="50"></picture></a>     <a href="https://www.netlify.com" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/netlify-dark.png" width="110"><img src="/docs/assets/images/icon/netlify-light.png" alt="netlify" width="110"></picture></a>
 | 
			
		||||
 | 
			
		||||
本项目已加入 JetBrains & Netlify 开源项目计划
 | 
			
		||||
 | 
			
		||||
## LICENSE
 | 
			
		||||
 | 
			
		||||
Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE).
 | 
			
		||||
 | 
			
		||||
这是一个完全开源的项目,旨在为从事计算机相关行业的朋友们提供便利,使换源更简单
 | 
			
		||||
 | 
			
		||||
## 特别感谢
 | 
			
		||||
 | 
			
		||||
<a href="https://www.jetbrains.com/zh-cn" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/support/jetbrains-dark.svg" width="140" height="50"><img src="/docs/assets/images/support/jetbrains-light.svg" alt="jetbrains" width="140" height="50"></picture></a>     <a href="https://www.netlify.com" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/support/netlify-dark.png" width="110"><img src="/docs/assets/images/support/netlify-light.png" alt="netlify" width="110"></picture></a>
 | 
			
		||||
 | 
			
		||||
本项目已加入 JetBrains & Netlify 开源项目计划
 | 
			
		||||
 | 
			
		||||
<a href="https://star-history.com/#SuperManito/LinuxMirrors&Date">
 | 
			
		||||
 <picture>
 | 
			
		||||
   <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date&theme=dark" />
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										187
									
								
								README.zh-Hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,187 @@
 | 
			
		||||
<p align="center">
 | 
			
		||||
    <a href="https://linuxmirrors.cn/zh-hant">
 | 
			
		||||
        <picture>
 | 
			
		||||
          <source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/brand/dark/2.png" width="320">
 | 
			
		||||
          <img src="/docs/assets/images/brand/light/2.png" alt="LinuxMirrors" width="320">
 | 
			
		||||
        </picture>
 | 
			
		||||
    </a>
 | 
			
		||||
</p>
 | 
			
		||||
<p align="center">GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本</p>
 | 
			
		||||
<p align="center">
 | 
			
		||||
  <a href="https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE"><img src="https://shields.io/github/license/SuperManito/LinuxMirrors?color=%23007bff" alt="License: MIT"></a>
 | 
			
		||||
  <a href="https://github.com/SuperManito/LinuxMirrors"><img src="https://img.shields.io/github/stars/SuperManito/LinuxMirrors?color=%23007bff&style=flat-square" alt="Stars"></a><br>
 | 
			
		||||
</p>
 | 
			
		||||
<p align="center">
 | 
			
		||||
    <a href="https://hellogithub.com/repository/775d5b3d0aa04e90be9162104e757f2e" target="_blank">
 | 
			
		||||
        <picture>
 | 
			
		||||
          <source media="(prefers-color-scheme: dark)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=dark" width="250">
 | 
			
		||||
          <img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=775d5b3d0aa04e90be9162104e757f2e&claim_uid=mXoISqgeyYLDf1a&theme=neutral" alt="Featured|HelloGitHub" width="250">
 | 
			
		||||
        </picture>
 | 
			
		||||
    </a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p align="center"><a href="README.md">简体中文</a> | 繁體中文</p>
 | 
			
		||||
 | 
			
		||||
<table align="center">
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th align="left">作業系統</th>
 | 
			
		||||
        <th align="center">適配版本</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.debian.org" target="_blank"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a> Debian</td>
 | 
			
		||||
        <td align="center">8 ~ 13</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://ubuntu.com" target="_blank"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a> Ubuntu</td>
 | 
			
		||||
        <td align="center">14 ~ 25</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.kali.org" target="_blank"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a> Kali Linux</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://linuxmint.com" target="_blank"><sub><img src="/docs/assets/images/icon/linux-mint.ico" width="16" height="16"></sub></a> Linux Mint</td>
 | 
			
		||||
        <td align="center">19 ~ 22 / LMDE 6</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.deepin.org" target="_blank"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a> Deepin</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://zorin.com/os" target="_blank"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a> Zorin OS</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.armbian.org" target="_blank"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a> Armbian</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.proxmox.com" target="_blank"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a> Proxmox VE</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.raspberrypi.com/software" target="_blank"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a> Raspberry Pi OS</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a> Red Hat Enterprise Linux</td>
 | 
			
		||||
        <td align="center">7 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://fedoraproject.org" target="_blank"><sub><img src="/docs/assets/images/icon/fedora.ico" width="16" height="16"></sub></a> Fedora</td>
 | 
			
		||||
        <td align="center">30 ~ 42</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.centos.org" target="_blank"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a> CentOS</td>
 | 
			
		||||
        <td align="center">7 ~ 8 / Stream 8 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://rockylinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a> Rocky Linux</td>
 | 
			
		||||
        <td align="center">8 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://almalinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/almalinux.svg" width="16" height="16"></sub></a> AlmaLinux</td>
 | 
			
		||||
        <td align="center">8 ~ 10</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.openeuler.org/zh" target="_blank"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a> openEuler</td>
 | 
			
		||||
        <td align="center">21 ~ 25</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.opencloudos.org" target="_blank"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a> OpenCloudOS</td>
 | 
			
		||||
        <td align="center">8.6 ~ 9 / Stream 23</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.openkylin.top" target="_blank"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a> openKylin</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://openanolis.cn" target="_blank"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a> Anolis OS</td>
 | 
			
		||||
        <td align="center">8 / 23</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.opensuse.org" target="_blank"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a> openSUSE</td>
 | 
			
		||||
        <td align="center">Leep 15 / Tumbleweed</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://archlinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a> Arch Linux</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://manjaro.org" target="_blank"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a> Manjaro</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.alpinelinux.org" target="_blank"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a> Alpine Linux</td>
 | 
			
		||||
        <td align="center">v3 / edge</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://www.gentoo.org" target="_blank"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a> Gentoo</td>
 | 
			
		||||
        <td align="center">all</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="https://nixos.org" target="_blank"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a> NixOS</td>
 | 
			
		||||
        <td align="center">19 ~ 24</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
<p align="center">
 | 
			
		||||
    <strong>
 | 
			
		||||
        <a href="https://linuxmirrors.cn/zh-hant" style="text-decoration: none;">官方網站</a>    <a href="https://linuxmirrors.cn/zh-hant/use" style="text-decoration: none;">使用方法</a>    <a href="https://linuxmirrors.cn/zh-hant/mirrors" style="text-decoration: none;">軟體源列表</a>    <a href="https://linuxmirrors.cn/zh-hant/other" style="text-decoration: none;">Docker 安裝(額外腳本)</a>    <a href="https://linuxmirrors.cn/zh-hant/community" style="text-decoration: none;">社群</a>    <a href="https://linuxmirrors.cn/zh-hant/sponsor" style="text-decoration: none;">贊助</a>
 | 
			
		||||
    </strong>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
***
 | 
			
		||||
 | 
			
		||||
## 快速開始
 | 
			
		||||
 | 
			
		||||
> 項目官方網站整合了 AI 聊天與搜索,更多使用方法詳見 [**linuxmirrors.cn**](https://linuxmirrors.cn/zh-hant/use)
 | 
			
		||||
 | 
			
		||||
- ### GNU/Linux 更換系統軟體源
 | 
			
		||||
 | 
			
		||||
    ```bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh)
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
- ### Docker 安裝與換源
 | 
			
		||||
 | 
			
		||||
    ```bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
- ### Docker 更換鏡像加速器
 | 
			
		||||
 | 
			
		||||
    ```bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
## 贊助商
 | 
			
		||||
 | 
			
		||||
<a href="https://linuxmirrors.cn/sponsor/zh-cn">
 | 
			
		||||
    <picture>
 | 
			
		||||
      <source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/sponsor/all-dark.png">
 | 
			
		||||
      <img src="/docs/assets/images/sponsor/all-light.png" alt="Sponsors">
 | 
			
		||||
    </picture>
 | 
			
		||||
</a>
 | 
			
		||||
 | 
			
		||||
## 特別感謝
 | 
			
		||||
 | 
			
		||||
<a href="https://www.jetbrains.com/zh-cn" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/jetbrains-dark.svg" width="140" height="50"><img src="/docs/assets/images/icon/jetbrains-light.svg" alt="jetbrains" width="140" height="50"></picture></a>     <a href="https://www.netlify.com" style="text-decoration: none;"><picture><source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/icon/netlify-dark.png" width="110"><img src="/docs/assets/images/icon/netlify-light.png" alt="netlify" width="110"></picture></a>
 | 
			
		||||
 | 
			
		||||
本項目已加入 JetBrains & Netlify 開源項目計劃
 | 
			
		||||
 | 
			
		||||
## LICENSE
 | 
			
		||||
 | 
			
		||||
Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE).
 | 
			
		||||
 | 
			
		||||
這是一個完全開源的項目,旨在為從事電腦相關行業的朋友提供便利,使換源更簡單
 | 
			
		||||
 | 
			
		||||
<a href="https://star-history.com/#SuperManito/LinuxMirrors&Date">
 | 
			
		||||
 <picture>
 | 
			
		||||
   <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date&theme=dark" />
 | 
			
		||||
   <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date" />
 | 
			
		||||
   <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=SuperManito/LinuxMirrors&type=Date" />
 | 
			
		||||
 </picture>
 | 
			
		||||
</a>
 | 
			
		||||
 | 
			
		||||
__如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 ⭐ 並分享給更多的朋友。__
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B  | 
| 
		 Before Width: | Height: | Size: 679 B After Width: | Height: | Size: 679 B  | 
| 
		 Before Width: | Height: | Size: 911 B After Width: | Height: | Size: 911 B  | 
| 
		 Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B  | 
| 
		 Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 730 B  | 
| 
		 Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 403 B  | 
| 
		 Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B  | 
| 
		 Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 317 B  | 
| 
		 Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B  | 
| 
		 Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B  | 
| 
		 Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB  | 
| 
		 Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 232 B  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 990 B  | 
| 
		 Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B  | 
| 
		 Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB  | 
| 
		 Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B  | 
| 
		 Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 360 B  | 
| 
		 Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 866 B  | 
| 
		 Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 381 B  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B  | 
| 
		 Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 488 B  | 
@@ -1,24 +1,24 @@
 | 
			
		||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="451.000000pt" height="451.000000pt"
 | 
			
		||||
	viewBox="0 0 451.000000 451.000000" preserveAspectRatio="xMidYMid meet">
 | 
			
		||||
	<g transform="translate(0.000000,451.000000) scale(0.100000,-0.100000)" fill="currentColor"
 | 
			
		||||
		stroke="none">
 | 
			
		||||
		<path
 | 
			
		||||
			d="M133 4048 c-4 -7 -9 -818 -10 -1803 -2 -1415 0 -1795 10 -1815 7 -13
 | 
			
		||||
23 -27 37 -30 14 -3 281 31 595 77 314 45 798 114 1078 153 279 39 521 76 538
 | 
			
		||||
82 17 6 34 21 40 35 5 13 9 89 9 168 l0 144 -148 278 c-82 153 -177 332 -212
 | 
			
		||||
398 -35 66 -92 173 -127 238 -35 64 -66 130 -69 145 -4 21 6 56 39 128 25 54
 | 
			
		||||
80 178 122 274 42 96 85 190 95 209 l17 34 73 -139 c41 -76 103 -193 139 -259
 | 
			
		||||
l66 -120 5 -590 5 -590 97 190 c53 105 169 332 257 505 88 173 205 401 258
 | 
			
		||||
507 54 106 101 189 105 185 3 -4 95 -178 203 -387 108 -209 221 -427 251 -484
 | 
			
		||||
30 -57 53 -105 51 -107 -2 -2 -123 -7 -268 -10 -280 -7 -311 -12 -325 -56 -4
 | 
			
		||||
-13 -52 -113 -106 -223 -55 -110 -106 -215 -113 -232 l-14 -33 800 0 c534 0
 | 
			
		||||
799 3 799 10 0 11 -1275 2818 -1284 2828 -3 3 -8 3 -10 1 -2 -2 -101 -215
 | 
			
		||||
-221 -474 -213 -461 -399 -860 -453 -973 l-27 -57 -5 726 c-5 694 -6 728 -24
 | 
			
		||||
748 -24 27 -26 27 -201 50 -82 11 -321 45 -530 75 -848 123 -1450 206 -1491
 | 
			
		||||
206 -23 0 -46 -6 -51 -12z m1602 -355 c112 -240 245 -535 245 -543 0 -5 -55
 | 
			
		||||
-130 -121 -277 -222 -491 -430 -946 -494 -1083 -35 -74 -86 -188 -113 -252
 | 
			
		||||
-45 -106 -48 -118 -32 -123 10 -3 142 -5 294 -3 169 1 279 -1 285 -7 10 -10
 | 
			
		||||
181 -460 181 -476 0 -4 -348 -8 -780 -8 -603 0 -780 3 -780 12 0 17 1274 2817
 | 
			
		||||
1282 2817 3 0 19 -26 33 -57z" />
 | 
			
		||||
	</g>
 | 
			
		||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="451.000000pt" height="451.000000pt"
 | 
			
		||||
	viewBox="0 0 451.000000 451.000000" preserveAspectRatio="xMidYMid meet">
 | 
			
		||||
	<g transform="translate(0.000000,451.000000) scale(0.100000,-0.100000)" fill="currentColor"
 | 
			
		||||
		stroke="none">
 | 
			
		||||
		<path
 | 
			
		||||
			d="M133 4048 c-4 -7 -9 -818 -10 -1803 -2 -1415 0 -1795 10 -1815 7 -13
 | 
			
		||||
23 -27 37 -30 14 -3 281 31 595 77 314 45 798 114 1078 153 279 39 521 76 538
 | 
			
		||||
82 17 6 34 21 40 35 5 13 9 89 9 168 l0 144 -148 278 c-82 153 -177 332 -212
 | 
			
		||||
398 -35 66 -92 173 -127 238 -35 64 -66 130 -69 145 -4 21 6 56 39 128 25 54
 | 
			
		||||
80 178 122 274 42 96 85 190 95 209 l17 34 73 -139 c41 -76 103 -193 139 -259
 | 
			
		||||
l66 -120 5 -590 5 -590 97 190 c53 105 169 332 257 505 88 173 205 401 258
 | 
			
		||||
507 54 106 101 189 105 185 3 -4 95 -178 203 -387 108 -209 221 -427 251 -484
 | 
			
		||||
30 -57 53 -105 51 -107 -2 -2 -123 -7 -268 -10 -280 -7 -311 -12 -325 -56 -4
 | 
			
		||||
-13 -52 -113 -106 -223 -55 -110 -106 -215 -113 -232 l-14 -33 800 0 c534 0
 | 
			
		||||
799 3 799 10 0 11 -1275 2818 -1284 2828 -3 3 -8 3 -10 1 -2 -2 -101 -215
 | 
			
		||||
-221 -474 -213 -461 -399 -860 -453 -973 l-27 -57 -5 726 c-5 694 -6 728 -24
 | 
			
		||||
748 -24 27 -26 27 -201 50 -82 11 -321 45 -530 75 -848 123 -1450 206 -1491
 | 
			
		||||
206 -23 0 -46 -6 -51 -12z m1602 -355 c112 -240 245 -535 245 -543 0 -5 -55
 | 
			
		||||
-130 -121 -277 -222 -491 -430 -946 -494 -1083 -35 -74 -86 -188 -113 -252
 | 
			
		||||
-45 -106 -48 -118 -32 -123 10 -3 142 -5 294 -3 169 1 279 -1 285 -7 10 -10
 | 
			
		||||
181 -460 181 -476 0 -4 -348 -8 -780 -8 -603 0 -780 3 -780 12 0 17 1274 2817
 | 
			
		||||
1282 2817 3 0 19 -26 33 -57z" />
 | 
			
		||||
	</g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB  | 
| 
		 Before Width: | Height: | Size: 917 B After Width: | Height: | Size: 917 B  | 
| 
		 Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B  | 
							
								
								
									
										1
									
								
								docs/assets/images/icon/custom/tencent-cloud.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
<svg t="1750550178180" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4745" width="200" height="200"><path d="M795.306667 877.226667h-580.266667l389.12-392.533334c54.613333-54.613333 105.813333-75.093333 112.64-78.506666l10.24-3.413334c88.746667-10.24 160.426667 6.826667 211.626667 54.613334 78.506667 71.68 78.506667 184.32 78.506666 191.146666 0 160.426667-143.36 218.453333-221.866666 228.693334z m-337.92-98.986667h334.506666c20.48-3.413333 129.706667-23.893333 133.12-133.12 0 0 0-75.093333-44.373333-116.053333-27.306667-23.893333-71.68-34.133333-126.293333-27.306667-10.24 6.826667-40.96 20.48-71.68 54.613333l-225.28 221.866667zM303.786667 413.013333L204.8 406.186667c3.413333-81.92 71.68-235.52 283.306667-259.413334 10.24 0 197.973333-17.066667 303.786666 187.733334l-88.746666 44.373333c-75.093333-143.36-201.386667-136.533333-204.8-133.12-177.493333 20.48-194.56 153.6-194.56 167.253333z" p-id="4746"></path><path d="M225.28 877.226667C92.16 877.226667 27.306667 771.413333 13.653333 716.8c-47.786667-160.426667 92.16-273.066667 95.573334-276.48 150.186667-109.226667 296.96 13.653333 354.986666 92.16l-81.92 58.026667 40.96-30.72-40.96 30.72c0-3.413333-109.226667-146.773333-211.626666-71.68-3.413333 3.413333-88.746667 71.68-61.44 167.253333 3.413333 10.24 27.306667 88.746667 116.053333 88.746667v102.4z" p-id="4747"></path><path d="M225.28 778.24h143.36v98.986667H225.28z" p-id="4748"></path></svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 225 B  | 
| 
		 Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB  | 
| 
		 Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB  | 
							
								
								
									
										1
									
								
								docs/assets/images/icon/mirrors/alibabacloud.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
<svg height="56" viewBox="0 0 24 24" width="56" xmlns="http://www.w3.org/2000/svg" style="flex: 0 0 auto; line-height: 1;"><path d="M14.752 4.64h5.274C22.242 4.64 24 6.475 24 8.691V15.8a3.947 3.947 0 01-3.974 3.975h-5.274l1.299-1.835 3.822-1.222c.688-.23 1.146-.918 1.146-1.605v-5.81c0-.687-.458-1.375-1.146-1.605L16.05 6.475l-1.3-1.835zM2.98 15.111c0 .688.46 1.376 1.147 1.606l3.822 1.146 1.3 1.835H3.974A3.947 3.947 0 010 15.723V8.69c0-2.216 1.758-4.05 3.975-4.05h5.273L7.95 6.474 4.127 7.697c-.688.23-1.146.918-1.146 1.606v5.808z" fill="#FF6A00"></path><path d="M16.051 11.213H8.025v1.835h8.026v-1.835z" fill="#FF6A00"></path></svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 635 B  | 
| 
		 Before Width: | Height: | Size: 4.2 KiB  | 
| 
		 Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 949 B  | 
| 
		 Before Width: | Height: | Size: 3.2 KiB  | 
							
								
								
									
										1
									
								
								docs/assets/images/icon/mirrors/volcengine.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
<svg height="64" viewBox="0 0 24 24" width="64" xmlns="http://www.w3.org/2000/svg" style="flex: 0 0 auto; line-height: 1;"><path d="M19.44 10.153l-2.936 11.586a.215.215 0 00.214.261h5.87a.215.215 0 00.214-.261l-2.95-11.586a.214.214 0 00-.412 0zM3.28 12.778l-2.275 8.96A.214.214 0 001.22 22h4.532a.212.212 0 00.214-.165.214.214 0 000-.097l-2.276-8.96a.214.214 0 00-.41 0z" fill="#00E5E5"></path><path d="M7.29 5.359L3.148 21.738a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.358a.214.214 0 00-.41 0z" fill="#006EFF"></path><path d="M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.216.216 0 00.171-.078.214.214 0 00.044-.183L14.439.15z" fill="#006EFF"></path><path d="M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.215.215 0 00.214-.264L10.688 7.741a.214.214 0 00-.41 0z" fill="#00E5E5"></path></svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 839 B  | 
| 
		 Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB  | 
| 
		 Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/assets/images/sponsor/all-dark.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 63 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/assets/images/sponsor/all-light.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 62 KiB  | 
@@ -3,7 +3,7 @@ const mirrorsTableData = [
 | 
			
		||||
    {
 | 
			
		||||
        name: '阿里云',
 | 
			
		||||
        officialName: '阿里巴巴开源镜像站',
 | 
			
		||||
        icon: 'aliyun.ico',
 | 
			
		||||
        icon: 'alibabacloud.svg',
 | 
			
		||||
        iconStyle: { verticalAlign: '-0.2em' },
 | 
			
		||||
        url: 'https://mirrors.aliyun.com',
 | 
			
		||||
        domain: 'mirrors.aliyun.com',
 | 
			
		||||
@@ -30,7 +30,7 @@ const mirrorsTableData = [
 | 
			
		||||
    {
 | 
			
		||||
        name: '腾讯云',
 | 
			
		||||
        officialName: '腾讯软件源',
 | 
			
		||||
        icon: 'tencent-cloud.ico',
 | 
			
		||||
        icon: 'tencentcloud.ico',
 | 
			
		||||
        iconStyle: { verticalAlign: '-0.25em' },
 | 
			
		||||
        url: 'https://mirrors.tencent.com',
 | 
			
		||||
        domain: 'mirrors.tencent.com',
 | 
			
		||||
@@ -111,7 +111,7 @@ const mirrorsTableData = [
 | 
			
		||||
    {
 | 
			
		||||
        name: '火山引擎',
 | 
			
		||||
        officialName: '火山引擎开源软件镜像站',
 | 
			
		||||
        icon: 'volcengine.png',
 | 
			
		||||
        icon: 'volcengine.svg',
 | 
			
		||||
        iconStyle: { verticalAlign: '-0.25em' },
 | 
			
		||||
        url: 'https://developer.volcengine.com/mirror',
 | 
			
		||||
        domain: 'mirrors.volces.com',
 | 
			
		||||
@@ -384,7 +384,7 @@ const mirrorsTableData = [
 | 
			
		||||
const mirrorsTableColumns = [
 | 
			
		||||
    {
 | 
			
		||||
        colKey: 'name',
 | 
			
		||||
        title: '镜像站',
 | 
			
		||||
        title: !window.location.pathname.includes('/zh-hant') ? '镜像站' : '鏡像站',
 | 
			
		||||
        align: 'left',
 | 
			
		||||
        width: '180',
 | 
			
		||||
        fixed: 'left',
 | 
			
		||||
@@ -400,7 +400,7 @@ const mirrorsTableColumns = [
 | 
			
		||||
        title: 'EPEL',
 | 
			
		||||
        align: 'center',
 | 
			
		||||
        width: '90',
 | 
			
		||||
        tooltip: 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版。',
 | 
			
		||||
        tooltip: !window.location.pathname.includes('/zh-hant') ? 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版' : 'EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 組織維護的一個附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的紅帽系 Linux 發行版',
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        colKey: 'archlinux',
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
// get search box config
 | 
			
		||||
function getOramaSearchBoxConfig() {
 | 
			
		||||
    const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
 | 
			
		||||
    return {
 | 
			
		||||
        themeConfig: {
 | 
			
		||||
            // colors: {
 | 
			
		||||
@@ -52,15 +53,18 @@ function getOramaSearchBoxConfig() {
 | 
			
		||||
            description: 'content',
 | 
			
		||||
            section: 'category',
 | 
			
		||||
        },
 | 
			
		||||
        searchPlaceholder: '请输入要搜索的内容...',
 | 
			
		||||
        chatPlaceholder: '有什么可以帮你的吗?',
 | 
			
		||||
        suggestions: ['如何使用', '支持哪些系统'],
 | 
			
		||||
        searchPlaceholder: isDefaultLang ? '请输入要搜索的内容...' : '請輸入要搜尋的內容...',
 | 
			
		||||
        chatPlaceholder: isDefaultLang ? '有什么可以帮你的吗?' : '有什麼可以幫你的嗎?',
 | 
			
		||||
        suggestions: isDefaultLang ? ['如何使用', '支持哪些系统'] : ['如何使用', '支援哪些系統'],
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// localization search box component
 | 
			
		||||
function localizationOramaSearchBox(searchBox) {
 | 
			
		||||
    if (!searchBox) return
 | 
			
		||||
    const isDefaultLang = window.location.pathname.includes('/zh-hant') ? false : true
 | 
			
		||||
    const askAiText = isDefaultLang ? '询问 AI' : '詢問 AI'
 | 
			
		||||
    const searchText = isDefaultLang ? '搜索' : '搜尋'
 | 
			
		||||
    const observer = new MutationObserver((mutations, obs) => {
 | 
			
		||||
        const shadowRoot = searchBox.shadowRoot
 | 
			
		||||
        if (shadowRoot) {
 | 
			
		||||
@@ -68,8 +72,8 @@ function localizationOramaSearchBox(searchBox) {
 | 
			
		||||
            const chatButton = shadowRoot.querySelector('.chat-button')
 | 
			
		||||
            if (chatButton) {
 | 
			
		||||
                const element = chatButton.querySelector('.button-label')
 | 
			
		||||
                if (element && element.textContent !== '询问 AI') {
 | 
			
		||||
                    element.textContent = '询问 AI'
 | 
			
		||||
                if (element && element.textContent !== askAiText) {
 | 
			
		||||
                    element.textContent = askAiText
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            // Hide "Orama can make mistakes. Please verify the information."
 | 
			
		||||
@@ -86,13 +90,13 @@ function localizationOramaSearchBox(searchBox) {
 | 
			
		||||
                const toggler = navigationBar.querySelector('orama-toggler')
 | 
			
		||||
                if (toggler) {
 | 
			
		||||
                    const searchSpan = toggler.querySelector('span:nth-child(1)')
 | 
			
		||||
                    if (searchSpan && searchSpan.textContent !== '搜索') {
 | 
			
		||||
                        searchSpan.textContent = '搜索'
 | 
			
		||||
                    if (searchSpan && searchSpan.textContent !== searchText) {
 | 
			
		||||
                        searchSpan.textContent = searchText
 | 
			
		||||
                        searchSpan.style = 'max-height: fit-content;'
 | 
			
		||||
                    }
 | 
			
		||||
                    const askAISpan = toggler.querySelector('span:nth-child(2)')
 | 
			
		||||
                    if (askAISpan && askAISpan.textContent !== '询问 AI') {
 | 
			
		||||
                        askAISpan.textContent = '询问 AI'
 | 
			
		||||
                    if (askAISpan && askAISpan.textContent !== askAiText) {
 | 
			
		||||
                        askAISpan.textContent = askAiText
 | 
			
		||||
                        askAISpan.style = 'max-height: fit-content;'
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										54
									
								
								docs/changelog/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,54 @@
 | 
			
		||||
---
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
search:
 | 
			
		||||
  exclude: true
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
### `2025-06-15`
 | 
			
		||||
 | 
			
		||||
  * 適配 Rocky Linux 10 [#dafaa13](https://github.com/SuperManito/LinuxMirrors/commit/dafaa13e44209d719b5b6f06f4cc3c4f2ef24d3b)  
 | 
			
		||||
 | 
			
		||||
### `2025-06-03`
 | 
			
		||||
 | 
			
		||||
  * 新增適配 Manjaro 作業系統 [#a93f23e](https://github.com/SuperManito/LinuxMirrors/commit/a93f23e48d4ffbffb0e04efcf33138fc7218b560)
 | 
			
		||||
 | 
			
		||||
### `2025-05-29`
 | 
			
		||||
 | 
			
		||||
  * 適配 Red Hat Enterprise Linux 10 & AlmaLinux 10 [#26f493a](https://github.com/SuperManito/LinuxMirrors/commit/26f493a762221569404d45a6556afd7945ac75f8)
 | 
			
		||||
 | 
			
		||||
### `2025-05-13`
 | 
			
		||||
 | 
			
		||||
  * 為 Debian 和 Ubuntu 的新版本軟體源啟用 DEB822 格式 [#c3d0d5f](https://github.com/SuperManito/LinuxMirrors/commit/c3d0d5fa2c0993e104711f55e37fa8ada1031b5e)
 | 
			
		||||
 | 
			
		||||
### `2025-05-12`
 | 
			
		||||
 | 
			
		||||
  * Docker 腳本新增 `僅更換鏡像加速器` 命令選項 [#3f13f40](https://github.com/SuperManito/LinuxMirrors/commit/3f13f40111fa3631555ca7104cea21b4bb5adefa)
 | 
			
		||||
 | 
			
		||||
### `2025-05-11`
 | 
			
		||||
 | 
			
		||||
  * 適配 Anolis OS 8.10 [#582b1d1](https://github.com/SuperManito/LinuxMirrors/commit/582b1d1fbcc3cab4899d4d400cf9a51023773aad)
 | 
			
		||||
 | 
			
		||||
### `2025-04-05`
 | 
			
		||||
 | 
			
		||||
  * 命令選項新增純淨模式 [#e63dea7](https://github.com/SuperManito/LinuxMirrors/commit/e63dea7e64fa6c31ecee3c02b143924ab12917b4)
 | 
			
		||||
 | 
			
		||||
### `2025-03-16`
 | 
			
		||||
 | 
			
		||||
  * 適配 EPEL 10 [#b71c0b9](https://github.com/SuperManito/LinuxMirrors/commit/b71c0b9790cc1dfb431729b817e726d6dd19a555)
 | 
			
		||||
 | 
			
		||||
### `2025-03-15`
 | 
			
		||||
 | 
			
		||||
  * 新增適配 Raspberry Pi OS 作業系統 [#c08000c](https://github.com/SuperManito/LinuxMirrors/commit/c08000cb645994d669e5ca2678d429a9d9eb3c90)
 | 
			
		||||
 | 
			
		||||
### `2025-03-14`
 | 
			
		||||
 | 
			
		||||
  * 適配 CentOS Stream 10 [#12eb98c](https://github.com/SuperManito/LinuxMirrors/commit/12eb98ce2945294873bfaa7b422fda175d9f8c10)
 | 
			
		||||
 | 
			
		||||
### `2025-02-20`
 | 
			
		||||
 | 
			
		||||
  * 新增適配 NixOS 作業系統 [#4d91f7d](https://github.com/SuperManito/LinuxMirrors/commit/4d91f7d1b2ddd58f7794cc7620d0ea7e4f9af02b)
 | 
			
		||||
 | 
			
		||||
......
 | 
			
		||||
							
								
								
									
										9
									
								
								docs/community/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
comments: true
 | 
			
		||||
comments_description: 請確保討論內容與項目的相關性,不得發布廣告等違規內容
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - toc
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
@@ -116,10 +116,10 @@ hide:
 | 
			
		||||
| <a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
 | 
			
		||||
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
 | 
			
		||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 或 <code>CentOS</code> 源" } | _7~10_ |
 | 
			
		||||
| <a href="https://fedoraproject.org/zh-Hans" title="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _30~42_ |
 | 
			
		||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _30~42_ |
 | 
			
		||||
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **CentOS** | _7~8 / Stream 8~10_ |
 | 
			
		||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _8~10_ |
 | 
			
		||||
| <a href="https://almalinux.org/zh-hans" title="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
 | 
			
		||||
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
 | 
			
		||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler(开源欧拉)** | _21~25_ |
 | 
			
		||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS(鸥栖)** | _8.6~9 / Stream 23_ |
 | 
			
		||||
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin(开放麒麟)** | _all_ |
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										142
									
								
								docs/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,142 @@
 | 
			
		||||
---
 | 
			
		||||
title: 一鍵腳本讓換源更簡單
 | 
			
		||||
description: GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本
 | 
			
		||||
comments: true
 | 
			
		||||
glightbox: false
 | 
			
		||||
comments_description: 此評論區僅用於展示項目使用評估和經驗分享,回饋問題或建議請前往<a href="/community">社群</a>或<a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank">Issues</a>
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - toc
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<div class="grid" markdown>
 | 
			
		||||
<figure style="margin: 0 auto" markdown>
 | 
			
		||||
  <div class="hero">
 | 
			
		||||
    <span class="hero-background">
 | 
			
		||||
    </span>
 | 
			
		||||
  </div>
 | 
			
		||||
  <img src="/assets/images/brand/light/2.png#only-light" alt="LinuxMirrors" style="width: 300px" />
 | 
			
		||||
  <img src="/assets/images/brand/dark/2.png#only-dark" alt="LinuxMirrors" style="width: 300px" />
 | 
			
		||||
  <figcaption>GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本</figcaption>
 | 
			
		||||
  <figcaption>一鍵腳本讓換源更簡單</figcaption>
 | 
			
		||||
</figure>
 | 
			
		||||
<figure class="home-cmd no-select" style="margin: 0; display: flex; flex-direction: column; justify-content: center" markdown>
 | 
			
		||||
=== "GNU/Linux"
 | 
			
		||||
 | 
			
		||||
    <img src="/assets/images/brand/command/linux-light.png#only-light" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-linux" />
 | 
			
		||||
    <img src="/assets/images/brand/command/linux-dark.png#only-dark" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-linux" />
 | 
			
		||||
 | 
			
		||||
    <button class="md-clipboard" data-clipboard-text="bash <(curl -sSL https://linuxmirrors.cn/main.sh)" title="複製"></button>
 | 
			
		||||
 | 
			
		||||
=== "Docker"
 | 
			
		||||
 | 
			
		||||
    <img src="/assets/images/brand/command/docker-light.png#only-light" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-docker" />
 | 
			
		||||
    <img src="/assets/images/brand/command/docker-dark.png#only-dark" style="width: 560px; box-shadow: var(--md-shadow-z2)" alt="command-docker" />
 | 
			
		||||
 | 
			
		||||
    <button class="md-clipboard" data-clipboard-text="bash <(curl -sSL https://linuxmirrors.cn/docker.sh)" title="複製"></button>
 | 
			
		||||
 | 
			
		||||
</figure>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="grid" markdown>
 | 
			
		||||
 | 
			
		||||
<div class="grid cards" style="height: fit-content" markdown>
 | 
			
		||||
 | 
			
		||||
-   :material-thumb-up-outline:{ .lg .middle } __輕鬆使用__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    只需要一行指令就能直接運行,零技術門檻,無需安裝任何依賴  
 | 
			
		||||
    文檔整合了 AI 搜尋與聊天,提供各種使用場景的解決方案
 | 
			
		||||
 | 
			
		||||
-   :material-vector-polyline:{ .lg .middle } __系統支援廣泛__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    已適配高達 `23+` 作業系統,涵蓋各類版本,精準辨識系統類型  
 | 
			
		||||
    腳本相容性高,不支援的系統會有對應提示並無操作跳出
 | 
			
		||||
 | 
			
		||||
-   :material-vector-triangle:{ .lg .middle } __多元軟體源適配__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    深入考察了中國大陸鏡像站的系統適配狀況,專為中國寶寶打造  
 | 
			
		||||
    也提供全網蒐集的國內教育網和海外鏡像站供用戶選擇
 | 
			
		||||
 | 
			
		||||
-   :material-rocket-launch-outline:{ .lg .middle } __快,且高效__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    最快僅需 10 秒即可完成軟體源的更換,高效能運維,節省大量時間成本  
 | 
			
		||||
    項目經過數年的迭代與最佳化,腳本效能卓越運作穩定,場景判斷完善
 | 
			
		||||
 | 
			
		||||
-   :octicons-globe-24:{ .lg .middle } __全球網絡,執行無憂__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    本網站提供全球邊緣網路加速,不畏各種網路環境,輕鬆訪問  
 | 
			
		||||
    同時提供了多個備用地址以確保項目腳本始終可用,並真正做到使用無憂
 | 
			
		||||
 | 
			
		||||
-   :material-arm-flex-outline:{ .lg .middle } __功能強大,無與倫比__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    腳本透過方向鍵互動逐步引導使用者選擇軟體來源配置,讓換源更簡單  
 | 
			
		||||
    此外腳本提供了豐富的命令選項,支援 CI/CD 整合與自動化維
 | 
			
		||||
 | 
			
		||||
-   :material-pencil-ruler-outline:{ .lg .middle } __高度可自訂__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    腳本命令選項遵循正式應用程式規範設計,能夠滿足各種進階需求  
 | 
			
		||||
    程式碼結構清晰,易於閱讀和修改,支援克隆後定制
 | 
			
		||||
 | 
			
		||||
-   :material-scale-balance:{ .lg .middle } __自由,開源__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    項目已設立 MIT 開源授權協議,腳本程式碼完全開源且免費使用  
 | 
			
		||||
    請尊重作者的知識成果,傳播時請在顯著位置標註來源或項目地址
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div style="text-align: center" markdown>
 | 
			
		||||
 | 
			
		||||
| 作業系統 | 適配版本 |
 | 
			
		||||
| --- | :---: |
 | 
			
		||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _8~13_ |
 | 
			
		||||
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="支援烏班圖家族衍生作業系統,例如 <code>優麒麟</code> <code>Kubuntu</code> 等<br/>由於迭代速度較快並不直接支援所有非 LTS 的版本,因此具體詳見文檔" } | _14~25_ |
 | 
			
		||||
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | _all_ |
 | 
			
		||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _19~22 / LMDE 6_ |
 | 
			
		||||
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | _all_ |
 | 
			
		||||
| <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | _all_ |
 | 
			
		||||
| <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
 | 
			
		||||
| <a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | _all_ |
 | 
			
		||||
| <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | _all_ |
 | 
			
		||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 或 <code>CentOS</code> 源" } | _7~10_ |
 | 
			
		||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | _30~42_ |
 | 
			
		||||
| <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **CentOS** | _7~8 / Stream 8~10_ |
 | 
			
		||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | _8~10_ |
 | 
			
		||||
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
 | 
			
		||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _21~25_ |
 | 
			
		||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | _8.6~9 / Stream 23_ |
 | 
			
		||||
| <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
 | 
			
		||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | _8 / 23_ |
 | 
			
		||||
| <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leep 15 / Tumbleweed_ |
 | 
			
		||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
 | 
			
		||||
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | _all_ |
 | 
			
		||||
| <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | _v3 / edge_ |
 | 
			
		||||
| <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
 | 
			
		||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~24_ |
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div style="text-align: center; padding: 1rem 0" markdown>
 | 
			
		||||
[開 始 使 用](use/index.md){ .md-button .md-button--primary }   [查看軟體源列表](mirrors/index.md){ .md-button }
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
--8<-- "docs/sponsor/main.html"
 | 
			
		||||
 | 
			
		||||
@@ -14,23 +14,6 @@ search:
 | 
			
		||||
 | 
			
		||||
<div id="mirrors-table"><p>正在加载表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
 | 
			
		||||
 | 
			
		||||
<!-- | 镜像站 | IPv6 | Arch Linux | Kali Linux | Deepin | Rocky Linux | AlmaLinux | EPEL :material-information-outline:{ title="Extra Packages for Enterprise Linux (EPEL) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版。" } | Fedora | OpenCloudOS | Alpine Linux | Armbian | Proxmox VE | Linux Mint | Gentoo | Anolis OS | openKylin | NixOS | Raspberry Pi OS |
 | 
			
		||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
 | 
			
		||||
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: |
 | 
			
		||||
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
 | 
			
		||||
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
 | 
			
		||||
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: |
 | 
			
		||||
| [火山引擎](https://developer.volcengine.com/mirror "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
 | 
			
		||||
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: |
 | 
			
		||||
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
 | 
			
		||||
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: |
 | 
			
		||||
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: |
 | 
			
		||||
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
 | 
			
		||||
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :incompatible: | :supported: | :incompatible: | :supported: | :unsupport: | :supported: | :incompatible: | :unsupport: | :supported: | :supported: | :supported: |
 | 
			
		||||
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :supported: | :supported: |
 | 
			
		||||
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: |
 | 
			
		||||
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | -->
 | 
			
		||||
 | 
			
		||||
???+ question "使用帮助"
 | 
			
		||||
 | 
			
		||||
    :supported: 支持    :unsupport: 不支持    :incompatible: 不兼容,表示软件源分支命名不符合脚本默认规则但可以通过命令选项来使用,关于具体用法示例和各操作系统所使用的默认分支名称[详见此处](../use/index.md#指定软件源仓库)
 | 
			
		||||
@@ -264,7 +247,7 @@ search:
 | 
			
		||||
            注:`Technology` 一词应称为 `理工` 而不能使用翻译结果的 `技术` 一词,大部分教育单位都有正式或公认的中文译名
 | 
			
		||||
 | 
			
		||||
        - 非教育单位:应优先采用其上属官网所自称的品牌名称,注意是正式的英文名称而不是logo中的字符,如果没有并且网站是除中文、英文以外的语言文字应使用网站域名作为名称
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
## 工具网站
 | 
			
		||||
 | 
			
		||||
<button class="md-button" title="https://tool.chinaz.com" onclick="window.open('https://tool.chinaz.com')">域名查询</button>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										244
									
								
								docs/mirrors/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,244 @@
 | 
			
		||||
---
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - toc
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
search:
 | 
			
		||||
  exclude: true
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
???+ question "友情提示"
 | 
			
		||||
 | 
			
		||||
    本項目預設提供的軟體源列表主要服務位於中國大陸的用戶,因此對您來說該頁面上可能存在許多無用的資訊。作者沒有精力去採集和維護全世界的可用軟體源,所以可能需要透過命令選項自訂使用才能滿足您的實際需求,具體預設的國際軟體源詳見下方。
 | 
			
		||||
 | 
			
		||||
## 中國大陸 :flag-CN:
 | 
			
		||||
 | 
			
		||||
> 下方列表中的鏡像站均支援 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 軟體源,列表根據單位性質、地理位置、名稱長度排序,與實際速度無關
 | 
			
		||||
 | 
			
		||||
<div id="mirrors-table"><p>正在載入表格 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" style="vertical-align: -0.15rem"><g stroke="currentColor"><circle cx="12" cy="12" r="9.5" fill="none" stroke-linecap="round" stroke-width="3"><animate attributeName="stroke-dasharray" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0 150;42 150;42 150;42 150"/><animate attributeName="stroke-dashoffset" calcMode="spline" dur="1.5s" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" keyTimes="0;0.475;0.95;1" repeatCount="indefinite" values="0;-16;-59;-59"/></circle><animateTransform attributeName="transform" dur="2s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></g></svg></p></div>
 | 
			
		||||
 | 
			
		||||
???+ question "使用幫助"
 | 
			
		||||
 | 
			
		||||
    :supported: 支援    :unsupport: 不支援    :incompatible: 不相容,表示軟體源分支命名不符合腳本預設規則但可以透過命令選項來使用,關於具體用法範例和各作業系統所使用的預設分支名稱[详见此处](../use/index.md#指定软件源仓库)
 | 
			
		||||
 | 
			
		||||
    如果這裡沒有想使用的鏡像站那可以看看其它運行模式和命令選項。軟體源的速度區分刷新速度和下行速率,後者才是關鍵,具體請結合實際地理位置選擇嘗試,也可以透過[輔助工具網站](#工具網站)進行一些測試
 | 
			
		||||
 | 
			
		||||
    :material-thumb-up-outline: 使用建議:速度上推薦 `中科大`、`字节(火山引擎)`,地域相容性上推薦 `阿里云`、`腾讯云`,軟體源種類上推薦 `南京大学`、`中科院`,境外、海外或複雜網路環境下不建議使用 `清华(TUNA)` 等容易阻斷的鏡像站
 | 
			
		||||
 | 
			
		||||
??? note "中國大陸教育網(點擊展開查看)"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 北京大学 | [mirrors.pku.edu.cn](https://mirrors.pku.edu.cn "https://mirrors.pku.edu.cn") |
 | 
			
		||||
    | 北京交通大学 | [mirror.bjtu.edu.cn](https://mirror.bjtu.edu.cn "https://mirror.bjtu.edu.cn") |
 | 
			
		||||
    | 北京外国语大学 | [mirrors.bfsu.edu.cn](https://mirrors.bfsu.edu.cn "https://mirrors.bfsu.edu.cn") |
 | 
			
		||||
    | 北京邮电大学 | [mirror.bupt.edu.cn](https://mirror.bupt.edu.cn "https://mirror.bupt.edu.cn") |
 | 
			
		||||
    | 重庆大学 | [mirrors.cqu.edu.cn](https://mirrors.cqu.edu.cn "https://mirrors.cqu.edu.cn") |
 | 
			
		||||
    | 重庆邮电大学 | [mirrors.cqupt.edu.cn](https://mirrors.cqupt.edu.cn "https://mirrors.cqupt.edu.cn") |
 | 
			
		||||
    | 大连东软信息学院 | [mirrors.neusoft.edu.cn](https://mirrors.neusoft.edu.cn "https://mirrors.neusoft.edu.cn") |
 | 
			
		||||
    | 电子科技大学 | [mirrors.uestc.cn](https://mirrors.uestc.cn "https://mirrors.uestc.cn") |
 | 
			
		||||
    | 华南农业大学 | [mirrors.scau.edu.cn](https://mirrors.scau.edu.cn "https://mirrors.scau.edu.cn") |
 | 
			
		||||
    | 华中科技大学 | [mirrors.hust.edu.cn](https://mirrors.hust.edu.cn "https://mirrors.hust.edu.cn") |
 | 
			
		||||
    | 吉林大学 | [mirrors.jlu.edu.cn](https://mirrors.jlu.edu.cn "https://mirrors.jlu.edu.cn") |
 | 
			
		||||
    | 荆楚理工学院 | [mirrors.jcut.edu.cn](https://mirrors.jcut.edu.cn "https://mirrors.jcut.edu.cn") |
 | 
			
		||||
    | 江西理工大学 | [mirrors.jxust.edu.cn](https://mirrors.jxust.edu.cn "https://mirrors.jxust.edu.cn") |
 | 
			
		||||
    | 兰州大学 | [mirror.lzu.edu.cn](https://mirror.lzu.edu.cn "https://mirror.lzu.edu.cn") |
 | 
			
		||||
    | 南京大学 | [mirrors.nju.edu.cn](https://mirrors.nju.edu.cn "https://mirrors.nju.edu.cn") |
 | 
			
		||||
    | 南京工业大学 | [mirrors.njtech.edu.cn](https://mirrors.njtech.edu.cn "https://mirrors.njtech.edu.cn") |
 | 
			
		||||
    | 南京邮电大学 | [mirrors.njupt.edu.cn](https://mirrors.njupt.edu.cn "https://mirrors.njupt.edu.cn") |
 | 
			
		||||
    | 南方科技大学 | [mirrors.sustech.edu.cn](https://mirrors.sustech.edu.cn "https://mirrors.sustech.edu.cn") |
 | 
			
		||||
    | 南阳理工学院 | [mirror.nyist.edu.cn](https://mirror.nyist.edu.cn "https://mirror.nyist.edu.cn") |
 | 
			
		||||
    | 齐鲁工业大学 | [mirrors.qlu.edu.cn](https://mirrors.qlu.edu.cn "https://mirrors.qlu.edu.cn") |
 | 
			
		||||
    | 清华大学 | [mirrors.tuna.tsinghua.edu.cn](https://mirrors.tuna.tsinghua.edu.cn "https://mirrors.tuna.tsinghua.edu.cn") |
 | 
			
		||||
    | 山东大学 | [mirrors.sdu.edu.cn](https://mirrors.sdu.edu.cn "https://mirrors.sdu.edu.cn") |
 | 
			
		||||
    | 上海科技大学 | [mirrors.shanghaitech.edu.cn](https://mirrors.shanghaitech.edu.cn "https://mirrors.shanghaitech.edu.cn") |
 | 
			
		||||
    | 上海交通大学(思源) | [mirror.sjtu.edu.cn](https://mirror.sjtu.edu.cn "https://mirror.sjtu.edu.cn") |
 | 
			
		||||
    | 上海交通大学(致远) | [mirrors.sjtug.sjtu.edu.cn](https://mirrors.sjtug.sjtu.edu.cn "https://mirrors.sjtug.sjtu.edu.cn") |
 | 
			
		||||
    | 武昌首义学院 | [mirrors.wsyu.edu.cn](https://mirrors.wsyu.edu.cn "https://mirrors.wsyu.edu.cn") |
 | 
			
		||||
    | 西安交通大学 | [mirrors.xjtu.edu.cn](https://mirrors.xjtu.edu.cn "https://mirrors.xjtu.edu.cn") |
 | 
			
		||||
    | 西北农林科技大学 | [mirrors.nwafu.edu.cn](https://mirrors.nwafu.edu.cn "https://mirrors.nwafu.edu.cn") |
 | 
			
		||||
    | 浙江大学 | [mirrors.zju.edu.cn](https://mirrors.zju.edu.cn "https://mirrors.zju.edu.cn") |
 | 
			
		||||
    | 中国科学技术大学 | [mirrors.ustc.edu.cn](https://mirrors.ustc.edu.cn "https://mirrors.ustc.edu.cn") |
 | 
			
		||||
 | 
			
		||||
## 國際地區 :flag-world-map:
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-asia: 亞洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 亞洲 · xTom · 香港 :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
 | 
			
		||||
    | 亞洲 · 01Link · 香港 :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
 | 
			
		||||
    | 亞洲 · 新加坡國立大學(NUS) · 新加坡 :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
 | 
			
		||||
    | 亞洲 · SG.GS · 新加坡 :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
 | 
			
		||||
    | 亞洲 · xTom · 新加坡 :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
 | 
			
		||||
    | 亞洲 · 自由軟體實驗室(NCHC) · 臺灣 :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
 | 
			
		||||
    | 亞洲 · OSS Planet · 臺灣 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
 | 
			
		||||
    | 亞洲 · 國立陽明交通大學 · 臺灣 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
 | 
			
		||||
    | 亞洲 · 淡江大學 · 臺灣 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
 | 
			
		||||
    | 亞洲 · AniGil Linux Archive · 韓國 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
 | 
			
		||||
    | 亞洲 · 工業網路安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
 | 
			
		||||
    | 亞洲 · 北陸先端科學技術大學院大學(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
 | 
			
		||||
    | 亞洲 · 山形大學 · 日本 :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
 | 
			
		||||
    | 亞洲 · xTom · 日本 :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
 | 
			
		||||
    | 亞洲 · GB Network Solutions · 馬來西亞 :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
 | 
			
		||||
    | 亞洲 · 孔敬大學 · 泰國 :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-europe: 歐洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 歐洲 · Vorboss Ltd · 英國 :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
 | 
			
		||||
    | 歐洲 · QuickHost · 英國 :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
 | 
			
		||||
    | 歐洲 · dogado · 德國 :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
 | 
			
		||||
    | 歐洲 · xTom · 德國 :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
 | 
			
		||||
    | 歐洲 · 亞琛工業大學(RWTH Aachen) · 德國 :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
 | 
			
		||||
    | 歐洲 · 德勒斯登大學(AG DSN) · 德國 :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
 | 
			
		||||
    | 歐洲 · CCIN2P3 · 法國 :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
 | 
			
		||||
    | 歐洲 · Ircam · 法國 :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
 | 
			
		||||
    | 歐洲 · Crans · 法國 :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
 | 
			
		||||
    | 歐洲 · CRIHAN · 法國 :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
 | 
			
		||||
    | 歐洲 · xTom · 荷蘭 :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
 | 
			
		||||
    | 歐洲 · DataPacket · 荷蘭 :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
 | 
			
		||||
    | 歐洲 · Linux Kernel · 荷蘭 :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
 | 
			
		||||
    | 歐洲 · xTom · 愛沙尼亞 :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
 | 
			
		||||
    | 歐洲 · netsite · 丹麥 :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
 | 
			
		||||
    | 歐洲 · Dotsrc · 丹麥 :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
 | 
			
		||||
    | 歐洲 · Academic Computer Club · 瑞典 :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
 | 
			
		||||
    | 歐洲 · Lysator · 瑞典 :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
 | 
			
		||||
    | 歐洲 · Yandex · 俄羅斯 :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
 | 
			
		||||
    | 歐洲 · ia64 · 俄羅斯 :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
 | 
			
		||||
    | 歐洲 · Truenetwork · 俄羅斯 :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
 | 
			
		||||
    | 歐洲 · Belgian Research Network · 比利時 :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
 | 
			
		||||
    | 歐洲 · 克里特大學電腦中心 · 希臘 :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
 | 
			
		||||
    | 歐洲 · 馬薩里克大學信息學院 · 捷克 :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
 | 
			
		||||
    | 歐洲 · 捷克理工大學學生會俱樂部(Silicon Hill) · 捷克 :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
 | 
			
		||||
    | 歐洲 · Vodafone · 捷克 :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
 | 
			
		||||
    | 歐洲 · CZ.NIC · 捷克 :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
 | 
			
		||||
    | 歐洲 · 蘇黎世聯邦理工學院 · 瑞士 :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-americas: 北美洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 北美 · Linux Kernel · 美國 :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
 | 
			
		||||
    | 北美 · 麻省理工學院(MIT) · 美國 :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
 | 
			
		||||
    | 北美 · 普林斯頓大學數學系 · 美國 :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
 | 
			
		||||
    | 北美 · 俄勒岡州立大學開源實驗室 · 美國 :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
 | 
			
		||||
    | 北美 · Fremont Cabal Internet Exchange(FCIX) · 美國 :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
 | 
			
		||||
    | 北美 · xTom · 美國 :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
 | 
			
		||||
    | 北美 · Steadfast · 美國 :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
 | 
			
		||||
    | 北美 · 不列顛哥倫比亞大學 · 加拿大 :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
 | 
			
		||||
    | 北美 · GoCodeIT · 加拿大 :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
 | 
			
		||||
    | 北美 · Switch · 加拿大 :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-americas: 南美洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 南美 · PoP-SC · 巴西 :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
 | 
			
		||||
    | 南美 · 蓬塔格羅薩州立大學 · 巴西 :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
 | 
			
		||||
    | 南美 · UFSCar · 巴西 :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
 | 
			
		||||
    | 南美 · Sysarmy Community · 阿根廷 :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-oceania: 大洋洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 大洋 · Fremont Cabal Internet Exchange(FCIX) · 澳大利亞 :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
 | 
			
		||||
    | 大洋 · AARNet · 澳大利亞 :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
 | 
			
		||||
    | 大洋 · DataMossa · 澳大利亞 :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
 | 
			
		||||
    | 大洋 · Amaze · 澳大利亞 :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
 | 
			
		||||
    | 大洋 · xTom · 澳大利亞 :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
 | 
			
		||||
    | 大洋 · Over the Wire · 澳大利亞 :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
 | 
			
		||||
    | 大洋 · Free Software Mirror Group · 紐西蘭 :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
 | 
			
		||||
 | 
			
		||||
=== ":fontawesome-solid-earth-africa: 非洲"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 非洲 · Liquid Telecom · 肯亞 :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
 | 
			
		||||
    | 非洲 · Dimension Data · 南非 :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
 | 
			
		||||
 | 
			
		||||
=== ":octicons-globe-16: 全部"
 | 
			
		||||
 | 
			
		||||
    | 鏡像站名稱 | 鏡像站位址 |
 | 
			
		||||
    | :- | :-: |
 | 
			
		||||
    | 亞洲 · xTom · 香港 :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
 | 
			
		||||
    | 亞洲 · 01Link · 香港 :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
 | 
			
		||||
    | 亞洲 · 新加坡國立大學(NUS) · 新加坡 :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
 | 
			
		||||
    | 亞洲 · SG.GS · 新加坡 :flag-SG: | [mirror.sg.gs](https://mirror.sg.gs "https://mirror.sg.gs") |
 | 
			
		||||
    | 亞洲 · xTom · 新加坡 :flag-SG: | [mirrors.xtom.sg](https://mirrors.xtom.sg "https://mirrors.xtom.sg") |
 | 
			
		||||
    | 亞洲 · 自由軟體實驗室(NCHC) · 臺灣 :flag-TW: | [free.nchc.org.tw](https://free.nchc.org.tw "https://free.nchc.org.tw") |
 | 
			
		||||
    | 亞洲 · OSS Planet · 臺灣 :flag-TW: | [mirror.ossplanet.net](https://mirror.ossplanet.net "https://mirror.ossplanet.net") |
 | 
			
		||||
    | 亞洲 · 國立陽明交通大學 · 臺灣 :flag-TW: | [linux.cs.nctu.edu.tw](https://linux.cs.nctu.edu.tw "https://linux.cs.nctu.edu.tw") |
 | 
			
		||||
    | 亞洲 · 淡江大學 · 臺灣 :flag-TW: | [ftp.tku.edu.tw](https://ftp.tku.edu.tw "https://ftp.tku.edu.tw") |
 | 
			
		||||
    | 亞洲 · AniGil Linux Archive · 韓國 :flag-KR: | [mirror.anigil.com](https://mirror.anigil.com "https://mirror.anigil.com") |
 | 
			
		||||
    | 亞洲 · 工業網路安全中心(ICSCoE) · 日本 :flag-JP: | [ftp.udx.icscoe.jp/Linux](https://ftp.udx.icscoe.jp/Linux "https://ftp.udx.icscoe.jp/Linux") |
 | 
			
		||||
    | 亞洲 · 北陸先端科學技術大學院大學(JAIST) · 日本 :flag-JP: | [ftp.jaist.ac.jp/pub/Linux](https://ftp.jaist.ac.jp/pub/Linux "https://ftp.jaist.ac.jp/pub/Linux") |
 | 
			
		||||
    | 亞洲 · 山形大學 · 日本 :flag-JP: | [linux2.yz.yamagata-u.ac.jp/pub/Linux](https://linux2.yz.yamagata-u.ac.jp/pub/Linux "https://linux2.yz.yamagata-u.ac.jp/pub/Linux") |
 | 
			
		||||
    | 亞洲 · xTom · 日本 :flag-JP: | [mirrors.xtom.jp](https://mirrors.xtom.jp "https://mirrors.xtom.jp") |
 | 
			
		||||
    | 亞洲 · GB Network Solutions · 馬來西亞 :flag-MY: | [mirrors.gbnetwork.com](https://mirrors.gbnetwork.com "https://mirrors.gbnetwork.com") |
 | 
			
		||||
    | 亞洲 · 孔敬大學 · 泰國 :flag-TH: | [mirror.kku.ac.th](https://mirror.kku.ac.th "https://mirror.kku.ac.th") |
 | 
			
		||||
    | 歐洲 · Vorboss Ltd · 英國 :flag-GB: | [mirror.vorboss.net](https://mirror.vorboss.net "https://mirror.vorboss.net") |
 | 
			
		||||
    | 歐洲 · QuickHost · 英國 :flag-GB: | [mirror.quickhost.uk](https://mirror.quickhost.uk "https://mirror.quickhost.uk") |
 | 
			
		||||
    | 歐洲 · dogado · 德國 :flag-DE: | [mirror.dogado.de](https://mirror.dogado.de "https://mirror.dogado.de") |
 | 
			
		||||
    | 歐洲 · xTom · 德國 :flag-DE: | [mirrors.xtom.de](https://mirrors.xtom.de "https://mirrors.xtom.de") |
 | 
			
		||||
    | 歐洲 · 亞琛工業大學(RWTH Aachen) · 德國 :flag-DE: | [ftp.halifax.rwth-aachen.de](https://ftp.halifax.rwth-aachen.de "https://ftp.halifax.rwth-aachen.de") |
 | 
			
		||||
    | 歐洲 · 德勒斯登大學(AG DSN) · 德國 :flag-DE: | [ftp.agdsn.de](https://ftp.agdsn.de "https://ftp.agdsn.de") |
 | 
			
		||||
    | 歐洲 · CCIN2P3 · 法國 :flag-FR: | [mirror.in2p3.fr/pub/linux](https://mirror.in2p3.fr/pub/linux "https://mirror.in2p3.fr/pub/linux") |
 | 
			
		||||
    | 歐洲 · Ircam · 法國 :flag-FR: | [mirrors.ircam.fr/pub](https://mirrors.ircam.fr/pub "https://mirrors.ircam.fr/pub") |
 | 
			
		||||
    | 歐洲 · Crans · 法國 :flag-FR: | [eclats.crans.org](https://eclats.crans.org "https://eclats.crans.org") |
 | 
			
		||||
    | 歐洲 · CRIHAN · 法國 :flag-FR: | [ftp.crihan.fr](https://ftp.crihan.fr "https://ftp.crihan.fr") |
 | 
			
		||||
    | 歐洲 · xTom · 荷蘭 :flag-NL: | [mirrors.xtom.nl](https://mirrors.xtom.nl "https://mirrors.xtom.nl") |
 | 
			
		||||
    | 歐洲 · DataPacket · 荷蘭 :flag-NL: | [mirror.datapacket.com](https://mirror.datapacket.com "https://mirror.datapacket.com") |
 | 
			
		||||
    | 歐洲 · Linux Kernel · 荷蘭 :flag-NL: | [eu.edge.kernel.org](https://eu.edge.kernel.org "https://eu.edge.kernel.org") |
 | 
			
		||||
    | 歐洲 · xTom · 愛沙尼亞 :flag-EE: | [mirrors.xtom.ee](https://mirrors.xtom.ee "https://mirrors.xtom.ee") |
 | 
			
		||||
    | 歐洲 · netsite · 丹麥 :flag-DK: | [mirror.netsite.dk](https://mirror.netsite.dk "https://mirror.netsite.dk") |
 | 
			
		||||
    | 歐洲 · Dotsrc · 丹麥 :flag-DK: | [mirrors.dotsrc.org](https://mirrors.dotsrc.org "https://mirrors.dotsrc.org") |
 | 
			
		||||
    | 歐洲 · Academic Computer Club · 瑞典 :flag-SE: | [mirror.accum.se](https://mirror.accum.se "https://mirror.accum.se") |
 | 
			
		||||
    | 歐洲 · Lysator · 瑞典 :flag-SE: | [ftp.lysator.liu.se](https://ftp.lysator.liu.se "https://ftp.lysator.liu.se") |
 | 
			
		||||
    | 歐洲 · Yandex · 俄羅斯 :flag-RU: | [mirror.yandex.ru](https://mirror.yandex.ru "https://mirror.yandex.ru") |
 | 
			
		||||
    | 歐洲 · ia64 · 俄羅斯 :flag-RU: | [mirror.linux-ia64.org](https://mirror.linux-ia64.org "https://mirror.linux-ia64.org") |
 | 
			
		||||
    | 歐洲 · Truenetwork · 俄羅斯 :flag-RU: | [mirror.truenetwork.ru](https://mirror.truenetwork.ru "https://mirror.truenetwork.ru") |
 | 
			
		||||
    | 歐洲 · Belgian Research Network · 比利時 :flag-BE: | [ftp.belnet.be/mirror](https://ftp.belnet.be/mirror "https://ftp.belnet.be/mirror") |
 | 
			
		||||
    | 歐洲 · 克里特大學電腦中心 · 希臘 :flag-GR: | [ftp.cc.uoc.gr/mirrors/linux](https://ftp.cc.uoc.gr/mirrors/linux "https://ftp.cc.uoc.gr/mirrors/linux") |
 | 
			
		||||
    | 歐洲 · 馬薩里克大學信息學院 · 捷克 :flag-CZ: | [ftp.fi.muni.cz/pub/linux](https://ftp.fi.muni.cz/pub/linux "https://ftp.fi.muni.cz/pub/linux") |
 | 
			
		||||
    | 歐洲 · 捷克理工大學學生會俱樂部(Silicon Hill) · 捷克 :flag-CZ: | [ftp.sh.cvut.cz](https://ftp.sh.cvut.cz "https://ftp.sh.cvut.cz") |
 | 
			
		||||
    | 歐洲 · Vodafone · 捷克 :flag-CZ: | [mirror.karneval.cz/pub/linux](https://mirror.karneval.cz/pub/linux "https://mirror.karneval.cz/pub/linux") |
 | 
			
		||||
    | 歐洲 · CZ.NIC · 捷克 :flag-CZ: | [mirrors.nic.cz](https://mirrors.nic.cz "https://mirrors.nic.cz") |
 | 
			
		||||
    | 歐洲 · 蘇黎世聯邦理工學院 · 瑞士 :flag-CH: | [mirror.ethz.ch](https://mirror.ethz.ch "https://mirror.ethz.ch") |
 | 
			
		||||
    | 北美 · Linux Kernel · 美國 :flag-US: | [mirrors.kernel.org](https://mirrors.kernel.org "https://mirrors.kernel.org") |
 | 
			
		||||
    | 北美 · 麻省理工學院(MIT) · 美國 :flag-US: | [mirrors.mit.edu](https://mirrors.mit.edu "https://mirrors.mit.edu") |
 | 
			
		||||
    | 北美 · 普林斯頓大學數學系 · 美國 :flag-US: | [mirror.math.princeton.edu/pub](https://mirror.math.princeton.edu/pub "https://mirror.math.princeton.edu/pub") |
 | 
			
		||||
    | 北美 · 俄勒岡州立大學開源實驗室 · 美國 :flag-US: | [ftp-chi.osuosl.org/pub](https://ftp-chi.osuosl.org/pub "https://ftp-chi.osuosl.org/pub") |
 | 
			
		||||
    | 北美 · Fremont Cabal Internet Exchange(FCIX) · 美國 :flag-US: | [mirror.fcix.net](https://mirror.fcix.net "https://mirror.fcix.net") |
 | 
			
		||||
    | 北美 · xTom · 美國 :flag-US: | [mirrors.xtom.com](https://mirrors.xtom.com "https://mirrors.xtom.com") |
 | 
			
		||||
    | 北美 · Steadfast · 美國 :flag-US: | [mirror.steadfast.net](https://mirror.steadfast.net "https://mirror.steadfast.net") |
 | 
			
		||||
    | 北美 · 不列顛哥倫比亞大學 · 加拿大 :flag-CA: | [mirror.it.ubc.ca](https://mirror.it.ubc.ca "https://mirror.it.ubc.ca") |
 | 
			
		||||
    | 北美 · GoCodeIT · 加拿大 :flag-CA: | [mirror.xenyth.net](https://mirror.xenyth.net "https://mirror.xenyth.net") |
 | 
			
		||||
    | 北美 · Switch · 加拿大 :flag-CA: | [mirrors.switch.ca](https://mirrors.switch.ca "https://mirrors.switch.ca") |
 | 
			
		||||
    | 南美 · PoP-SC · 巴西 :flag-BR: | [mirror.pop-sc.rnp.br/mirror](https://mirror.pop-sc.rnp.br/mirror "https://mirror.pop-sc.rnp.br/mirror") |
 | 
			
		||||
    | 南美 · 蓬塔格羅薩州立大學 · 巴西 :flag-BR: | [mirror.uepg.br](https://mirror.uepg.br "https://mirror.uepg.br") |
 | 
			
		||||
    | 南美 · UFSCar · 巴西 :flag-BR: | [mirror.ufscar.br](https://mirror.ufscar.br "https://mirror.ufscar.br") |
 | 
			
		||||
    | 南美 · Sysarmy Community · 阿根廷 :flag-AR: | [mirrors.eze.sysarmy.com](https://mirrors.eze.sysarmy.com "https://mirrors.eze.sysarmy.com") |
 | 
			
		||||
    | 大洋 · Fremont Cabal Internet Exchange(FCIX) · 澳大利亞 :flag-AU: | [gsl-syd.mm.fcix.net](https://gsl-syd.mm.fcix.net "https://gsl-syd.mm.fcix.net") |
 | 
			
		||||
    | 大洋 · AARNet · 澳大利亞 :flag-AU: | [mirror.aarnet.edu.au/pub](https://mirror.aarnet.edu.au/pub "https://mirror.aarnet.edu.au/pub") |
 | 
			
		||||
    | 大洋 · DataMossa · 澳大利亞 :flag-AU: | [mirror.datamossa.io](https://mirror.datamossa.io "https://mirror.datamossa.io") |
 | 
			
		||||
    | 大洋 · Amaze · 澳大利亞 :flag-AU: | [mirror.amaze.com.au](https://mirror.amaze.com.au "https://mirror.amaze.com.au") |
 | 
			
		||||
    | 大洋 · xTom · 澳大利亞 :flag-AU: | [mirrors.xtom.au](https://mirrors.xtom.au "https://mirrors.xtom.au") |
 | 
			
		||||
    | 大洋 · Over the Wire · 澳大利亞 :flag-AU: | [mirror.overthewire.com.au](https://mirror.overthewire.com.au "https://mirror.overthewire.com.au") |
 | 
			
		||||
    | 大洋 · Free Software Mirror Group · 紐西蘭 :flag-NZ: | [mirror.fsmg.org.nz](https://mirror.fsmg.org.nz "https://mirror.fsmg.org.nz") |
 | 
			
		||||
    | 非洲 · Liquid Telecom · 肯亞 :flag-KE: | [mirror.liquidtelecom.com](https://mirror.liquidtelecom.com "https://mirror.liquidtelecom.com") |
 | 
			
		||||
    | 非洲 · Dimension Data · 南非 :flag-ZA: | [mirror.dimensiondata.com](https://mirror.dimensiondata.com "https://mirror.dimensiondata.com") |
 | 
			
		||||
 | 
			
		||||
## 工具網站
 | 
			
		||||
 | 
			
		||||
<button class="md-button" title="https://tool.chinaz.com" onclick="window.open('https://tool.chinaz.com')">域名查詢</button>
 | 
			
		||||
<button class="md-button" title="https://tools.ipip.net/newping.php" onclick="window.open('https://tools.ipip.net/newping.php')">Ping 延遲測試</button>
 | 
			
		||||
<button class="md-button" title="https://tools.ipip.net/traceroute.php" onclick="window.open('https://tools.ipip.net/traceroute.php')">Tracert 路由追蹤測試</button>
 | 
			
		||||
<button class="md-button" title="https://ipw.cn/ipv6webcheck" onclick="window.open('https://ipw.cn/ipv6webcheck')">IPv6 接取測試</button>
 | 
			
		||||
 | 
			
		||||
!!! tip "該頁面顯示的皆為腳本預設提供可供選擇的軟體源位址,如果沒有找到你想使用的也沒有關係,腳本支援命令選項可自訂使用,詳見[進階用法](../use/index.md#命令选项高级用法)"
 | 
			
		||||
 | 
			
		||||
> 本頁面涉及的旗幟圖示僅用於快速區分地理位置,不代表作者任何的政治立場,請不要過度解讀,特此聲明。
 | 
			
		||||
@@ -16,7 +16,7 @@ hide:
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
 | 
			
		||||
    <td><a href="https://fedoraproject.org/zh-Hans" title="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
 | 
			
		||||
    <td><a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
 | 
			
		||||
@@ -28,7 +28,7 @@ hide:
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> Deepin(深度)</td>
 | 
			
		||||
    <td><a href="https://almalinux.org/zh-hans" title="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
 | 
			
		||||
    <td><a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.1em"></a> Zorin OS</td>
 | 
			
		||||
@@ -86,9 +86,16 @@ hide:
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 腾讯云 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支持在国内网络环境下使用
 | 
			
		||||
 | 
			
		||||
        集成安装 [`Docker Engine`](https://docs.docker.com/engine) 和 [`Docker Compose`](https://docs.docker.com/compose),支持选择或更换软件源以及镜像仓库、安装指定版本、重装等功能,支持 ARM 架构
 | 
			
		||||
 | 
			
		||||
        脚本参考[官方文档](https://docs.docker.com/engine/install)使用系统包管理工具进行安装,不存在兼容性、安全性等问题,可安装的版本由 Docker CE 仓库决定。
 | 
			
		||||
        脚本参考[官方文档](https://docs.docker.com/engine/install)使用系统包管理工具进行安装,不存在兼容性、安全性等问题,可安装的版本由 Docker CE 仓库决定
 | 
			
		||||
 | 
			
		||||
=== "仅更换镜像加速器"
 | 
			
		||||
 | 
			
		||||
@@ -126,6 +133,13 @@ hide:
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 腾讯云 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支持在国内网络环境下使用
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
!!! node "软件源说明"
 | 
			
		||||
 | 
			
		||||
@@ -180,11 +194,11 @@ hide:
 | 
			
		||||
    | 阿里云(呼和浩特) | [registry.cn-huhehaote.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-huhehaote.aliyuncs.com") | 阿里云(英国-伦敦) | [registry.eu-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-west-1.aliyuncs.com") |
 | 
			
		||||
    | 阿里云(乌兰察布) | [registry.cn-wulanchabu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-wulanchabu.aliyuncs.com") | 阿里云(美国西部-硅谷) | [registry.us-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-west-1.aliyuncs.com") |
 | 
			
		||||
    | 阿里云(深圳) | [registry.cn-shenzhen.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shenzhen.aliyuncs.com") | 阿里云(美国东部-弗吉尼亚) | [registry.us-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-east-1.aliyuncs.com") |
 | 
			
		||||
    | 阿里云(河源) | [registry.cn-heyuan.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-heyuan.aliyuncs.com") | 阿联酋-迪拜 | [registry.me-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.me-east-1.aliyuncs.com") |
 | 
			
		||||
    | 阿里云(河源) | [registry.cn-heyuan.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-heyuan.aliyuncs.com") | 阿里云(阿联酋-迪拜) | [registry.me-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.me-east-1.aliyuncs.com") |
 | 
			
		||||
    | 阿里云(广州) | [registry.cn-guangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-guangzhou.aliyuncs.com") | 谷歌云(北美) | [gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://gcr.io") |
 | 
			
		||||
    | 阿里云(成都) | [registry.cn-chengdu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-chengdu.aliyuncs.com") | 谷歌云(亚洲) | [asia.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://asia.gcr.io") |
 | 
			
		||||
    | 阿里云(香港) | [registry.cn-hongkong.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hongkong.aliyuncs.com") | 谷歌云(欧洲) | [eu.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://eu.gcr.io") |
 | 
			
		||||
    | 腾讯云 | [mirror.ccs.tencentyun.com](https://cloud.tencent.com/document/product/1207/45596 "https://mirror.ccs.tencentyun.com") | Docker Hub 官方 | [registry.hub.docker.com](https://hub.docker.com/ "registry.hub.docker.com") |
 | 
			
		||||
    | 腾讯云 | [mirror.ccs.tencentyun.com](https://cloud.tencent.com/document/product/1207/45596 "https://mirror.ccs.tencentyun.com") | Docker Hub | [registry.hub.docker.com](https://hub.docker.com/ "registry.hub.docker.com") |
 | 
			
		||||
 | 
			
		||||
    <blockquote style="border-left: none !important">注:国内云计算企业的镜像仓库源仅针对其业务,境内实例可能仍无法访问 Docker Hub</blockquote>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										390
									
								
								docs/other/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,390 @@
 | 
			
		||||
---
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
???+ question "為什麼會看到該提示?"
 | 
			
		||||
 | 
			
		||||
    本項目腳本目前主要服務於簡體中文用戶,但是從立項之初就定義為了通用換源腳本,提供了諸多命令選項用於自訂使用,這也是本項目為什麼開始面向其它語言用戶使用的原因之一。腳本列印內容目前固定為簡體中文,隨著其它語言使用者的回饋和使用,腳本將來可能會支援繁體中文和英文。
 | 
			
		||||
 | 
			
		||||
    文檔使用工具進行翻譯,下方內容中的專業術語可能存在不準確的情況,歡迎修正。
 | 
			
		||||
 | 
			
		||||
!!! tip inline end "已被眾多熱門項目使用,廣受社群用戶好評"
 | 
			
		||||
 | 
			
		||||
## :simple-docker:{style="color: #1d63ed"} Docker 安裝與換源腳本
 | 
			
		||||
 | 
			
		||||
<table>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian</td>
 | 
			
		||||
    <td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
 | 
			
		||||
    <td><a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
 | 
			
		||||
    <td><a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
 | 
			
		||||
    <td><a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Rocky Linux</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> Deepin</td>
 | 
			
		||||
    <td><a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.1em"></a> Zorin OS</td>
 | 
			
		||||
    <td><a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> openEuler</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian</td>
 | 
			
		||||
    <td><a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> OpenCloudOS</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
 | 
			
		||||
    <td><a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
 | 
			
		||||
    <td></td>
 | 
			
		||||
</tr>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
### 一鍵執行命令
 | 
			
		||||
 | 
			
		||||
=== "安裝"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官網(推薦)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-github: GitHub"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-gitee: Gitee 码云 (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 即時同步、無延遲,中國大陸網路環境建議使用
 | 
			
		||||
 | 
			
		||||
        === ":gitcode: GitCode (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 本項目已加入 GitHub 加速計劃,同步存在1小時延遲
 | 
			
		||||
 | 
			
		||||
        === ":simple-jsdelivr: jsDelivr (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 騰訊雲 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支援在中國大陸網路環境下使用
 | 
			
		||||
 | 
			
		||||
        整合安裝 [`Docker Engine`](https://docs.docker.com/engine) 和 [`Docker Compose`](https://docs.docker.com/compose),支援選擇或更換軟體源以及映像倉庫、安裝指定版本、重裝等功能,支援 ARM 架構
 | 
			
		||||
 | 
			
		||||
        腳本參考[官方文件](https://docs.docker.com/engine/install)使用系統套件管理工具進行安裝,不存在相容性、安全性等問題,可安裝的版本由 Docker CE 倉庫決定。
 | 
			
		||||
 | 
			
		||||
=== "僅更換鏡像加速器"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官網(推薦)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-github: GitHub"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-gitee: Gitee 码云 (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
            > 即時同步、無延遲,中國大陸網路環境建議使用
 | 
			
		||||
 | 
			
		||||
        === ":gitcode: GitCode (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
            > 本項目已加入 GitHub 加速計劃,同步存在1小時延遲
 | 
			
		||||
 | 
			
		||||
        === ":simple-jsdelivr: jsDelivr (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 騰訊雲 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支援在中國大陸網路環境下使用
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
!!! node "軟體源說明"
 | 
			
		||||
 | 
			
		||||
    <div class="grid cards" markdown>
 | 
			
		||||
 | 
			
		||||
    -   __Docker CE 軟體倉庫
 | 
			
		||||
 | 
			
		||||
        ---
 | 
			
		||||
 | 
			
		||||
        Docker CE 全稱 Docker Community Edition(Docker 社群版),是 Docker Engine 的別稱,該倉庫用於下載並安裝 Docker 相關軟體包
 | 
			
		||||
 | 
			
		||||
    -   __Docker Registry 鏡像倉庫__
 | 
			
		||||
 | 
			
		||||
        ---
 | 
			
		||||
 | 
			
		||||
        用於控制拉取鏡像的預設來源儲存倉庫,又稱為鏡像加速器,預設為官方容器鏡像倉庫 [Docker Hub](https://hub.docker.com) 
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    由於一些不可抗力的因素,目前中國大陸網路環境一般無法正常造訪 Docker Hub 因此無法拉取鏡像,建議使用下方提到的國內可用鏡像倉庫來源
 | 
			
		||||
 | 
			
		||||
    註:腳本內的指定 WEB 協議互動僅用於控制 `Docker CE` 軟體源,`Docker Registry` 強制使用 `HTTPS` 協議
 | 
			
		||||
 | 
			
		||||
!!! tip "Docker Compose 不再需要獨立安裝"
 | 
			
		||||
 | 
			
		||||
    Docker Compose 自 V2 版本起開始作為 Docker CLI(命令列)的一部分,腳本預設整合安裝該[插件](https://docs.docker.com/compose/install/linux),請使用 `docker compose` 指令取代 `docker-compose`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
!!! quote "預設的鏡像倉庫源"
 | 
			
		||||
 | 
			
		||||
    <div style="text-align: center" markdown>
 | 
			
		||||
    <div style="font-size: 0.8rem"><strong>中國大陸可用</strong></div>
 | 
			
		||||
 | 
			
		||||
    | 名稱 | 位址 | 說明 |
 | 
			
		||||
    | :--: | :--: | :-- |
 | 
			
		||||
    | 毫秒鏡像 | [docker.1ms.run](https://1ms.run "docker.1ms.run") | 企業鏡像站,CDN智慧分送速度極快,支援付費定制,推薦使用 |
 | 
			
		||||
    | Docker Proxy | [dockerproxy.net](https://dockerproxy.net "dockerproxy.net") | 由 ghproxy 創建,可用性高但速度很慢,支援企業鏡像付費加速 |
 | 
			
		||||
    | DaoCloud | [docker.m.daocloud.io](https://docker.m.daocloud.io "docker.m.daocloud.io") | 老牌企業鏡像站,可用性高且速度快,現為白名單模式 |
 | 
			
		||||
    | 1Panel 鏡像 | [docker.1panel.live](https://1panel.cn "docker.1panel.live") | 企業產品自用鏡像 |
 | 
			
		||||
 | 
			
		||||
    <blockquote style="border-left: none !important">本開源項目不適合採集個人自建的鏡像加速器,如有需要可搭配命令選項自行使用</blockquote>
 | 
			
		||||
 | 
			
		||||
    <div style="font-size: 0.8rem; margin-top: 1rem"><strong>其它</strong></div>
 | 
			
		||||
 | 
			
		||||
    | 名稱 | 位址 | 名稱 | 位址 |
 | 
			
		||||
    | :- | :-: | :- | :-: |
 | 
			
		||||
    | Alibaba Cloud (Hangzhou) | [registry.cn-hangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hangzhou.aliyuncs.com") | Alibaba Cloud (Japan - Tokyo) | [registry.ap-northeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-northeast-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Shanghai) | [registry.cn-shanghai.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shanghai.aliyuncs.com") | Alibaba Cloud (Singapore) | [registry.ap-southeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Qingdao) | [registry.cn-qingdao.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-qingdao.aliyuncs.com") | Alibaba Cloud (Malaysia - Kuala Lumpur) | [registry.ap-southeast-3.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-3.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Beijing) | [registry.cn-beijing.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-beijing.aliyuncs.com") | Alibaba Cloud (Indonesia - Jakarta) | [registry.ap-southeast-5.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-5.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Zhangjiakou) | [registry.cn-zhangjiakou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-zhangjiakou.aliyuncs.com") | Alibaba Cloud (Germany - Frankfurt) | [registry.eu-central-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-central-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Hohhot) | [registry.cn-huhehaote.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-huhehaote.aliyuncs.com") | Alibaba Cloud (UK - London) | [registry.eu-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-west-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Ulanqab) | [registry.cn-wulanchabu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-wulanchabu.aliyuncs.com") | Alibaba Cloud (US Western - Silicon Valley) | [registry.us-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-west-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Shenzhen) | [registry.cn-shenzhen.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shenzhen.aliyuncs.com") | Alibaba Cloud (US Eastern - Virginia) | [registry.us-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-east-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Heyuan) | [registry.cn-heyuan.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-heyuan.aliyuncs.com") | Alibaba Cloud (United Arab Emirates - Dubai) | [registry.me-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.me-east-1.aliyuncs.com") |
 | 
			
		||||
    | Alibaba Cloud (Guangzhou) | [registry.cn-guangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-guangzhou.aliyuncs.com") | Google Cloud(North America) | [gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://gcr.io") |
 | 
			
		||||
    | Alibaba Cloud (Chengdu) | [registry.cn-chengdu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-chengdu.aliyuncs.com") | Google Cloud(Asia) | [asia.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://asia.gcr.io") |
 | 
			
		||||
    | Alibaba Cloud (Hong Kong) | [registry.cn-hongkong.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hongkong.aliyuncs.com") | Google Cloud(Europe) | [eu.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://eu.gcr.io") |
 | 
			
		||||
    | Tencent Cloud | [mirror.ccs.tencentyun.com](https://cloud.tencent.com/document/product/1207/45596 "https://mirror.ccs.tencentyun.com") | Docker Hub | [registry.hub.docker.com](https://hub.docker.com/ "registry.hub.docker.com") |
 | 
			
		||||
 | 
			
		||||
    <blockquote style="border-left: none !important">註:中國大陸雲端運算企業的鏡像倉庫來源僅針對其業務,中國大陸境內實例可能仍無法造訪 Docker Hub</blockquote>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
- ### 命令選項(進階用法)
 | 
			
		||||
 | 
			
		||||
    | 名稱 | 意義 | 選項值 |
 | 
			
		||||
    | :-: | :-: | :-: |
 | 
			
		||||
    | `--source` | 指定 `Docker CE` 來源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
    | `--source-registry` | 指定鏡像倉庫位址(網域名稱或IP) | `位址` |
 | 
			
		||||
    | `--branch` | 指定 Docker CE 源倉庫 | `倉庫名稱(詳見下方文檔)` |
 | 
			
		||||
    | `--codename` | 指定 Debian 係作業系統的版本代號 | `代號名稱` |
 | 
			
		||||
    | `--designated-version` | 指定 `Docker CE` 安裝版本 | `版本號(詳見下方文檔)` |
 | 
			
		||||
    | `--protocol` | 指定 `Docker CE` 源的 WEB 協議 | `http` 或 `https` |
 | 
			
		||||
    | `--install-latest` | 是否安裝最新版本的 Docker Engine | `true` 或 `false` |
 | 
			
		||||
    | `--close-firewall` | 是否關閉防火牆 | `true` 或 `false` |
 | 
			
		||||
    | `--clean-screen` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
 | 
			
		||||
    | `--only-registry` | 僅更換鏡像倉庫模式 | 無 |
 | 
			
		||||
    | `--ignore-backup-tips` | 忽略覆蓋備份提示(即不覆蓋備份) |
 | 
			
		||||
    | `--pure-mode` | 純淨模式,精簡列印內容 | 無 |
 | 
			
		||||
 | 
			
		||||
    > 軟體源完整格式 `<WEB協議>://<軟體源位址(網域名稱或IP)>/<軟體源倉庫(路徑)>`
 | 
			
		||||
 | 
			
		||||
    - #### 指定 `Docker CE` 軟體源位址
 | 
			
		||||
 | 
			
		||||
        ``` { .bash .no-copy }
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source mirror.example.com/docker-ce
 | 
			
		||||
        ```
 | 
			
		||||
        > 注意該位址路徑需要包含映像站的 Docker CE 軟體源倉庫路徑即 `docker-ce`
 | 
			
		||||
 | 
			
		||||
    - #### 指定鏡像倉庫位址
 | 
			
		||||
 | 
			
		||||
        ``` { .bash .no-copy }
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --source-registry registry.example.com
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    - #### 僅更換鏡像倉庫
 | 
			
		||||
 | 
			
		||||
        === "使用腳本一鍵替換"
 | 
			
		||||
 | 
			
		||||
            僅更換鏡像加速器,當偵測到未安裝 Docker 時會報錯跳出
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "手動替換"
 | 
			
		||||
        
 | 
			
		||||
            - 安裝 `jq` 軟體包
 | 
			
		||||
 | 
			
		||||
                === "Debian 係 / openKylin"
 | 
			
		||||
 | 
			
		||||
                    ``` bash
 | 
			
		||||
                    apt-get install -y jq
 | 
			
		||||
                    ```
 | 
			
		||||
 | 
			
		||||
                    > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`   `openKylin`
 | 
			
		||||
 | 
			
		||||
                    新裝系統需要先執行一次更新 `apt-get update`
 | 
			
		||||
 | 
			
		||||
                === "RedHat 係 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
                    ``` bash
 | 
			
		||||
                    dnf install -y jq || yum install -y jq
 | 
			
		||||
                    ```
 | 
			
		||||
 | 
			
		||||
                    > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
            - 指定鏡像倉庫位址
 | 
			
		||||
 | 
			
		||||
                > 請手動替換 `<example.registry.com>` 為鏡像倉庫位址後在執行,詳見上方 “項目內置的鏡像倉庫源” 表格中的位址列
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                SOURCE_REGISTRY='"https://<example.registry.com>"'
 | 
			
		||||
                ```
 | 
			
		||||
                也可以指定多個鏡像倉庫,如 `SOURCE_REGISTRY='"https://example.registry.com","https://test.registry.com"'`,注意用英文逗號分割
 | 
			
		||||
 | 
			
		||||
            - 替換鏡像倉庫位址
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                [ -s "/etc/docker/daemon.json" ] || echo "{}" >/etc/docker/daemon.json
 | 
			
		||||
                jq '.["registry-mirrors"] = ['"${SOURCE_REGISTRY}"']' /etc/docker/daemon.json >/etc/docker/daemon.json.tmp && mv /etc/docker/daemon.json.tmp
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            - 重新啟動 Docker 服務
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                systemctl daemon-reload
 | 
			
		||||
                [[ $(systemctl is-active docker) == "active" ]] && systemctl restart docker || systemctl enable --now docker
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
    - #### 指定 Docker CE 軟體源倉庫
 | 
			
		||||
 | 
			
		||||
        腳本預設會自動判斷一般無需指定,除非你有特殊需求
 | 
			
		||||
 | 
			
		||||
        ``` { .bash .no-copy }
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --branch centos
 | 
			
		||||
        ```
 | 
			
		||||
        > 倉庫名稱是固定的,目前只有 `centos` `debian` `fedora` `raspbian` `rhel` `sles` `static` `ubuntu` 這幾個  
 | 
			
		||||
        > 詳情請見 [官方安裝文件](https://docs.docker.com/engine/install) 及 [Docker CE 官方倉庫](https://download.docker.com/linux)
 | 
			
		||||
 | 
			
		||||
    - #### 指定 Docker CE 安裝版本
 | 
			
		||||
 | 
			
		||||
        指定安裝版本時會忽略 `是否安裝最新版本` 的命令選項,格式為 `主版.次版本.補丁版本`,例如 `27.4.1`。
 | 
			
		||||
 | 
			
		||||
        ``` { .bash .no-copy }
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --designated-version 27.0.0
 | 
			
		||||
        ```
 | 
			
		||||
        > 如果指定的版本不存在或不支援目前系統,屆時腳本會報錯跳出
 | 
			
		||||
 | 
			
		||||
        ??? quote "查看版本清單的方法"
 | 
			
		||||
 | 
			
		||||
            === "Debian 系"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
                > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`
 | 
			
		||||
 | 
			
		||||
            === "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                dnf list docker-ce --showduplicates | sort -r | awk '{print $2}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
                > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
            未出現在該清單中的版本則不支援透過本腳本安裝,如果取得不到版本清單說明你目前的系統環境還沒有正確配置 Docker CE 軟體來源(執行腳本時不存在該問題)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    - #### 無人值守(自動化)
 | 
			
		||||
 | 
			
		||||
        不透過交互完成安裝操作,至少需要使用以下命令選項來實現,建議熟悉後再使用
 | 
			
		||||
 | 
			
		||||
        ``` { .bash .no-copy title="参考命令" }
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) \
 | 
			
		||||
          --source mirror.example.com/docker-ce \
 | 
			
		||||
          --source-registry registry.hub.docker.com \
 | 
			
		||||
          --protocol http \
 | 
			
		||||
          --use-intranet-source false \
 | 
			
		||||
          --install-latest true \
 | 
			
		||||
          --close-firewall true \
 | 
			
		||||
          --ignore-backup-tips
 | 
			
		||||
        ```
 | 
			
		||||
        > 如果報錯 `命令選項無效` 那麼請檢查選項合法性以及空格字元編碼,在範例中一行寫一個選項是為了提高命令的可讀性
 | 
			
		||||
 | 
			
		||||
    - #### 純淨模式
 | 
			
		||||
 | 
			
		||||
        為了方便開發人員使用所推出的功能,啟用後會精簡腳本內容輸出,建議搭配其它命令選項無互動使用
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
        !!! tip "滾動輸出的命令日誌可能有無法預料的顯示問題,不過目前暫未發現異常"
 | 
			
		||||
 | 
			
		||||
- ### 關於服務報錯無法啟動
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        非新裝環境可能會在執行腳本後遇到 `Docker` 服務無法啟動的情況,建議重新安裝來解決,卸載不會刪除本機映像和容器數據
 | 
			
		||||
 | 
			
		||||
        卸載指令如下:
 | 
			
		||||
 | 
			
		||||
        === "Debian 系"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            apt-get remove -y docker* containerd.io runc && apt-get autoremove
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`
 | 
			
		||||
 | 
			
		||||
        === "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            yum remove -y docker* containerd.io podman* runc
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
        卸載完成後重新執行腳本安裝即可
 | 
			
		||||
@@ -14,7 +14,7 @@ hide:
 | 
			
		||||
  <figcaption><span style="font-size: 0.8rem; font-style: normal !important"><strong>成为赞助商</strong></span></figcaption>
 | 
			
		||||
  <figcaption class="no-select">
 | 
			
		||||
    <button class="md-button md-button--primary" style="padding: 4px 8px 0 8px; border-radius: 5px" title="https://afdian.com/a/SuperManito" onclick="window.open('https://afdian.com/a/SuperManito')">
 | 
			
		||||
      <img src="/assets/images/sponsor/ifdian.png" alt="1Panel" style="width: 120px" />
 | 
			
		||||
      <img src="/assets/images/sponsor/ifdian.png" alt="ifdian" style="width: 120px" />
 | 
			
		||||
    </button>
 | 
			
		||||
  </figcaption>
 | 
			
		||||
  <figcaption><p style="color: var(--md-default-fg-color--light)">请前往作者爱发电主页查看说明并与作者取得联系</p></figcaption>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										21
									
								
								docs/sponsor/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,21 @@
 | 
			
		||||
---
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - toc
 | 
			
		||||
  - feedback
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
--8<-- "docs/sponsor/main.html"
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
<figure style="margin: 0 auto" markdown>
 | 
			
		||||
  <figcaption><span style="font-size: 0.8rem; font-style: normal !important"><strong>成為贊助商</strong></span></figcaption>
 | 
			
		||||
  <figcaption class="no-select">
 | 
			
		||||
    <button class="md-button md-button--primary" style="padding: 4px 8px 0 8px; border-radius: 5px" title="https://afdian.com/a/SuperManito" onclick="window.open('https://afdian.com/a/SuperManito')">
 | 
			
		||||
      <img src="/assets/images/sponsor/ifdian.png" alt="ifdian" style="width: 120px" />
 | 
			
		||||
    </button>
 | 
			
		||||
  </figcaption>
 | 
			
		||||
  <figcaption><p style="color: var(--md-default-fg-color--light)">請前往作者愛發電主頁查看說明並與作者取得聯繫</p></figcaption>
 | 
			
		||||
</figure>
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<div class="sponsor">
 | 
			
		||||
  <div class="sponsor-label">
 | 
			
		||||
    <strong>赞助商</strong>
 | 
			
		||||
    <strong class="sponsor-text-1"></strong>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="sponsor-wrapper sponsor-flex-wrapper no-select">
 | 
			
		||||
    <a class="sponsor-item sponsor-item-flex" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
 | 
			
		||||
@@ -47,19 +47,31 @@
 | 
			
		||||
 | 
			
		||||
<div class="sponsor" style="padding-top: 2rem;">
 | 
			
		||||
  <div class="sponsor-label">
 | 
			
		||||
    <strong>特别感谢</strong>
 | 
			
		||||
    <strong class="sponsor-text-2"></strong>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="sponsor-wrapper sponsor-flex-wrapper no-select">
 | 
			
		||||
    <a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.jetbrains.com/zh-cn" title="JetBrains">
 | 
			
		||||
      <img src="/assets/images/support/jetbrains-light.svg#only-light" alt="JetBrains" />
 | 
			
		||||
      <img src="/assets/images/support/jetbrains-dark.svg#only-dark" alt="JetBrains" />
 | 
			
		||||
      <img src="/assets/images/icon/jetbrains-light.svg#only-light" alt="JetBrains" />
 | 
			
		||||
      <img src="/assets/images/icon/jetbrains-dark.svg#only-dark" alt="JetBrains" />
 | 
			
		||||
    </a>
 | 
			
		||||
    <a class="sponsor-item sponsor-item-flex" target="_blank" href="https://www.netlify.com" title="Netlify">
 | 
			
		||||
      <img src="/assets/images/support/netlify-light.png#only-light" alt="Netlify" style="width: 46% !important" />
 | 
			
		||||
      <img src="/assets/images/support/netlify-dark.png#only-dark" alt="Netlify" style="width: 46% !important" />
 | 
			
		||||
      <img src="/assets/images/icon/netlify-light.png#only-light" alt="Netlify" style="width: 46% !important" />
 | 
			
		||||
      <img src="/assets/images/icon/netlify-dark.png#only-dark" alt="Netlify" style="width: 46% !important" />
 | 
			
		||||
    </a>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div style="text-align: center; padding-top: 1rem; font-size: 0.6rem">
 | 
			
		||||
    <blockquote style="border-left: none !important">本项目已加入 JetBrains & Netlify 开源项目计划</blockquote>
 | 
			
		||||
    <blockquote class="sponsor-text-3" style="border-left: none !important"></blockquote>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<style>
 | 
			
		||||
  /* 默认中文 */
 | 
			
		||||
  .sponsor-text-1::after { content: "赞助商"; }
 | 
			
		||||
  .sponsor-text-2::after { content: "特别感谢"; }
 | 
			
		||||
  .sponsor-text-3::after { content: "本项目已加入 JetBrains & Netlify 开源项目计划"; }
 | 
			
		||||
 | 
			
		||||
  /* 繁体中文 */
 | 
			
		||||
  [lang="zh-hant"] .sponsor-text-1::after { content: "贊助商"; }
 | 
			
		||||
  [lang="zh-hant"] .sponsor-text-2::after { content: "特別感謝"; }
 | 
			
		||||
  [lang="zh-hant"] .sponsor-text-3::after { content: "本項目已加入 JetBrains & Netlify 開源項目計劃"; }
 | 
			
		||||
</style>
 | 
			
		||||
 
 | 
			
		||||
@@ -111,7 +111,6 @@
 | 
			
		||||
    background-color: hsla(240, 9%, 75%, 0.33);
 | 
			
		||||
    -webkit-backdrop-filter: blur(8px);
 | 
			
		||||
    backdrop-filter: blur(8px);
 | 
			
		||||
    z-index: 999 !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
[data-md-color-scheme='slate'] .md-header {
 | 
			
		||||
@@ -144,6 +143,11 @@
 | 
			
		||||
        width: calc(100vw - 3rem - 1.2rem);
 | 
			
		||||
        padding-left: .6rem;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    [dir=ltr] .md-header__title {
 | 
			
		||||
        margin-left: 6px;
 | 
			
		||||
        margin-right: .4rem;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-tabs__link {
 | 
			
		||||
@@ -166,6 +170,46 @@
 | 
			
		||||
    vertical-align: -0.35em !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-select__inner {
 | 
			
		||||
    border-radius: 8px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-select__inner .md-select__list {
 | 
			
		||||
    padding: 8px !important;
 | 
			
		||||
    font-size: .75rem !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-select__inner .md-select__list .md-select__item {
 | 
			
		||||
    margin: 1px;
 | 
			
		||||
    border-radius: 8px;
 | 
			
		||||
    transition: background-color 0.2s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 [dir=ltr] .md-select__inner .md-select__list .md-select__item .md-select__link {
 | 
			
		||||
    padding-left: 12px !important;
 | 
			
		||||
    padding-right: 12px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-select__inner .md-select__list .md-select__item:hover {
 | 
			
		||||
    background-color: rgb(243, 243, 245);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
[data-md-color-scheme='slate'] .md-select__inner .md-select__list .md-select__item:hover {
 | 
			
		||||
    background-color: rgba(255, 255, 255, 0.07);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.palette-icon svg {
 | 
			
		||||
    width: 26px;
 | 
			
		||||
    height: 26px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 768px) {
 | 
			
		||||
    .palette-icon svg {
 | 
			
		||||
        width: 22px;
 | 
			
		||||
        height: 22px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* HERO */
 | 
			
		||||
.hero {
 | 
			
		||||
    width: 390px;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								docs/theme/main.html
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -7,5 +7,8 @@
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block announce %}
 | 
			
		||||
  <span style="font-size: .6rem !important;">如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友</span>  <span class="twemoji heart" style="font-size: .6rem;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 20.408c-.492.308-.903.546-1.192.709q-.23.129-.463.252h-.002a.75.75 0 0 1-.686 0 17 17 0 0 1-.465-.252 31 31 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31 31 0 0 1 14 20.408"></path></svg></span>
 | 
			
		||||
  <span style="font-size: .6rem !important;">{{
 | 
			
		||||
    '如果您覺得這個項目不錯對您有幫助的話,請點擊倉庫右上角的 Star 並分享給更多的朋友' if i18n_page_locale == 'zh-hant' else '如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友'
 | 
			
		||||
  }}</span>
 | 
			
		||||
    <span class="twemoji heart" style="font-size: .6rem;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 20.408c-.492.308-.903.546-1.192.709q-.23.129-.463.252h-.002a.75.75 0 0 1-.686 0 17 17 0 0 1-.465-.252 31 31 0 0 1-4.803-3.34C3.8 15.572 1 12.331 1 8.513 1 5.052 3.829 2.5 6.736 2.5 9.03 2.5 10.881 3.726 12 5.605 13.12 3.726 14.97 2.5 17.264 2.5 20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262A31 31 0 0 1 14 20.408"></path></svg></span>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								docs/theme/partials/comments.html
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -14,7 +14,7 @@
 | 
			
		||||
    data-emit-metadata="0"
 | 
			
		||||
    data-input-position="top"
 | 
			
		||||
    data-theme="preferred_color_scheme"
 | 
			
		||||
    data-lang="zh-CN"
 | 
			
		||||
    data-lang="{{'zh-Hant' if i18n_page_locale == 'zh-hant' else 'zh-CN'}}"
 | 
			
		||||
    data-loading="lazy"
 | 
			
		||||
    crossorigin="anonymous"
 | 
			
		||||
    async
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										34
									
								
								docs/theme/partials/palette.html
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,34 @@
 | 
			
		||||
<form class="md-header__option" data-md-component="palette">
 | 
			
		||||
  {% for option in config.theme.palette %}
 | 
			
		||||
    {% set scheme  = option.scheme  | d("default", true) %}
 | 
			
		||||
    {% set primary = option.primary | d("indigo", true) %}
 | 
			
		||||
    {% set accent  = option.accent  | d("indigo", true) %}
 | 
			
		||||
    <input
 | 
			
		||||
      class="md-option"
 | 
			
		||||
      data-md-color-media="{{ option.media }}"
 | 
			
		||||
      data-md-color-scheme="{{ scheme | replace(' ', '-') }}"
 | 
			
		||||
      data-md-color-primary="{{ primary | replace(' ', '-') }}"
 | 
			
		||||
      data-md-color-accent="{{ accent | replace(' ', '-') }}"
 | 
			
		||||
      {% if option.toggle %}
 | 
			
		||||
        aria-label="{{ option.toggle.name }}"
 | 
			
		||||
      {% else  %}
 | 
			
		||||
        aria-hidden="true"
 | 
			
		||||
      {% endif %}
 | 
			
		||||
      type="radio"
 | 
			
		||||
      name="__palette"
 | 
			
		||||
      id="__palette_{{ loop.index0 }}"
 | 
			
		||||
    />
 | 
			
		||||
    {% if option.toggle %}
 | 
			
		||||
      <label
 | 
			
		||||
        class="md-header__button md-icon"
 | 
			
		||||
        title="{{ option.toggle.name }}"
 | 
			
		||||
        for="__palette_{{ loop.index % loop.length }}"
 | 
			
		||||
        hidden
 | 
			
		||||
      >
 | 
			
		||||
        <div class="palette-icon">
 | 
			
		||||
            {% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
 | 
			
		||||
        </div>
 | 
			
		||||
      </label>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
  {% endfor %}
 | 
			
		||||
</form>
 | 
			
		||||
							
								
								
									
										24
									
								
								docs/theme/partials/search.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
							
								
								
									
										6
									
								
								docs/theme/partials/toc.html
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -11,7 +11,7 @@
 | 
			
		||||
  <div class="md-content" data-md-component="content">
 | 
			
		||||
    <div class="sponsor sponsor-toc">
 | 
			
		||||
      <div class="sponsor-label">
 | 
			
		||||
        <strong>赞助商</strong>
 | 
			
		||||
        <strong>{{'贊助商' if i18n_page_locale == 'zh-hant' else '赞助商'}}</strong>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="sponsor-wrapper sponsor-flex-wrapper-toc no-select">
 | 
			
		||||
        <a class="sponsor-item sponsor-item-toc sponsor-item-toc-full-row" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
 | 
			
		||||
@@ -56,9 +56,9 @@
 | 
			
		||||
          <img src="/assets/images/sponsor/hkgserver-light.png#only-light" alt="HKGserver" style="filter: grayscale(1) invert(0.5)" />
 | 
			
		||||
          <img src="/assets/images/sponsor/hkgserver-dark.png#only-dark" alt="HKGserver" style="filter: grayscale(1) invert(0.4)" />
 | 
			
		||||
        </a>
 | 
			
		||||
        <!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="成为赞助商" href="/sponsor/">
 | 
			
		||||
        <!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}" href="/sponsor/">
 | 
			
		||||
          <span style="font-size: 0.6rem; opacity: 0.5">
 | 
			
		||||
            <strong>成为赞助商</strong>
 | 
			
		||||
            <strong>{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}</strong>
 | 
			
		||||
          </span>
 | 
			
		||||
        </a> -->
 | 
			
		||||
      </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ hide:
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官网(推荐)"
 | 
			
		||||
        === ":linuxmirrors: 官网 (推荐)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh)
 | 
			
		||||
@@ -42,11 +42,18 @@ hide:
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 腾讯云 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支持在国内网络环境下使用
 | 
			
		||||
 | 
			
		||||
=== ":material-earth: 境外以及海外地区"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官网(推荐)"
 | 
			
		||||
        === ":linuxmirrors: 官网 (推荐)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
 | 
			
		||||
@@ -90,11 +97,21 @@ hide:
 | 
			
		||||
 | 
			
		||||
            1.  通过 `--abroad` 命令选项来使用海外软件源
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 腾讯云 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  通过 `--abroad` 命令选项来使用海外软件源
 | 
			
		||||
 | 
			
		||||
            > 不支持在国内网络环境下使用
 | 
			
		||||
 | 
			
		||||
=== ":material-library: 中国大陆教育网"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官网(推荐)"
 | 
			
		||||
        === ":linuxmirrors: 官网 (推荐)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
 | 
			
		||||
@@ -138,6 +155,16 @@ hide:
 | 
			
		||||
 | 
			
		||||
            1.  通过 `--edu` 命令选项来使用中国大陆教育单位软件源
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 腾讯云 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  通过 `--edu` 命令选项来使用中国大陆教育单位软件源
 | 
			
		||||
 | 
			
		||||
            > 不支持在国内网络环境下使用
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
!!! tip "使用帮助"
 | 
			
		||||
@@ -238,14 +265,14 @@ hide:
 | 
			
		||||
 | 
			
		||||
            假如系统原有软件源是无效的导致安装不上 `curl` 软件包,那么对于 Linux 初学者来说可能会比较麻烦,这里提供几个在线获取脚本的应急方法
 | 
			
		||||
 | 
			
		||||
            === "使用 Python 下载脚本"
 | 
			
		||||
            === "使用 Python 下载"
 | 
			
		||||
 | 
			
		||||
                适用于大部分操作系统(`Alpine Linux` 除外),`python3` 要是不存在那就再试试 `python` 指令
 | 
			
		||||
                ``` bash
 | 
			
		||||
                python3 -c "import urllib.request; urllib.request.urlretrieve('https://linuxmirrors.cn/main.sh', 'main.sh')"
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === "使用 wget 下载脚本"
 | 
			
		||||
            === "使用 wget 指令下载"
 | 
			
		||||
 | 
			
		||||
                一般没有预装 `curl` 软件包的系统也不会预装 `wget` 软件包,所以大概率这个方法应该是不行的
 | 
			
		||||
                ``` bash
 | 
			
		||||
@@ -535,10 +562,10 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
 | 
			
		||||
        | <a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
 | 
			
		||||
        | <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
 | 
			
		||||
        | <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code>, 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
 | 
			
		||||
        | <a href="https://fedoraproject.org/zh-Hans" title="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
 | 
			
		||||
        | <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
 | 
			
		||||
        | <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
 | 
			
		||||
        | <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
 | 
			
		||||
        | <a href="https://almalinux.org/zh-hans" title="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
 | 
			
		||||
        | <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
 | 
			
		||||
        | <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler(开源欧拉)** | `openeuler` |
 | 
			
		||||
        | <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS(鸥栖)** | `opencloudos` |
 | 
			
		||||
        | <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin(开放麒麟)** | `openkylin` |
 | 
			
		||||
@@ -574,7 +601,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) --only-epel
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
    对于已经 EOF 的 EPEL 7 注意需要使用 [`archive`](https://dl.fedoraproject.org/pub/archive/epel) 仓库,境外以及海外网络环境建议通过命令选项 `--use-official-source-epel true` 使用官方源
 | 
			
		||||
    对于已经 EOL 的 EPEL 7 注意需要使用 [`archive`](https://dl.fedoraproject.org/pub/archive/epel) 仓库,境外以及海外网络环境建议通过命令选项 `--use-official-source-epel true` 使用官方源
 | 
			
		||||
 | 
			
		||||
- ### 恢复使用官方源
 | 
			
		||||
 | 
			
		||||
@@ -589,7 +616,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
 | 
			
		||||
 | 
			
		||||
    - #### 关于 CentOS 停服问题
 | 
			
		||||
 | 
			
		||||
        脚本对于已经 EOF 的 CentOS 7/8、CentOS Stream 8 进行了适配
 | 
			
		||||
        脚本对于已经 EOL 的 CentOS 7/8、CentOS Stream 8 进行了适配
 | 
			
		||||
 | 
			
		||||
        <div class="grid cards" markdown>
 | 
			
		||||
 | 
			
		||||
@@ -607,7 +634,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        另外 EPEL 7 也进入了 EOF,脚本同样对其进行了适配
 | 
			
		||||
        另外 EPEL 7 也进入了 EOL,脚本同样对其进行了适配
 | 
			
		||||
 | 
			
		||||
    - #### 指定 GNU/Linux Debian 操作系统的 Security 源
 | 
			
		||||
 | 
			
		||||
@@ -641,9 +668,9 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
 | 
			
		||||
        sed -i "s/$(lsb_release -cs)/指定版本代号/g" /etc/apt/sources.list
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    - #### 更换 Ubuntu EOF版本软件源
 | 
			
		||||
    - #### 更换 Ubuntu EOL版本软件源
 | 
			
		||||
 | 
			
		||||
        !!! info "EOF 为生命周期结束的缩写(End Of Life),Ubuntu 迭代速度较快一般非LTS(长期支持)版本的生命周期只有9个月。官方会定期从主仓库移除不在生命周期内的版本仓库目录,届时可能就需要使用镜像站的 `Ubuntu Old Releases` 仓库"
 | 
			
		||||
        !!! info "EOL 为生命周期结束的缩写(End Of Life),Ubuntu 迭代速度较快一般非LTS(长期支持)版本的生命周期只有9个月。官方会定期从主仓库移除不在生命周期内的版本仓库目录,届时可能就需要使用镜像站的 `Ubuntu Old Releases` 仓库"
 | 
			
		||||
 | 
			
		||||
        具体版本支持情况详见官方 [Wiki](https://wiki.ubuntu.com/Releases),关于 `Ubuntu Old Releases` 仓库的支持情况详见各镜像站
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										734
									
								
								docs/use/index.zh-hant.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,734 @@
 | 
			
		||||
---
 | 
			
		||||
hide:
 | 
			
		||||
  - navigation
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
???+ question "為什麼會看到該提示?"
 | 
			
		||||
 | 
			
		||||
    本項目腳本目前主要服務於簡體中文用戶,但是從立項之初就定義為了通用換源腳本,提供了諸多命令選項用於自訂使用,這也是本項目為什麼開始面向其它語言用戶使用的原因之一。腳本列印內容目前固定為簡體中文,隨著其它語言使用者的回饋和使用,腳本將來可能會支援繁體中文和英文。
 | 
			
		||||
 | 
			
		||||
    文檔使用工具進行翻譯,下方內容中的專業術語可能存在不準確的情況,歡迎修正。
 | 
			
		||||
 | 
			
		||||
## 一鍵執行命令
 | 
			
		||||
 | 
			
		||||
=== ":material-home-city: 中國大陸"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官網 (推薦)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-github: GitHub"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":simple-gitee: Gitee 码云 (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 即時同步、無延遲,中國大陸網路環境建議使用
 | 
			
		||||
 | 
			
		||||
        === ":gitcode: GitCode (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 本項目已加入 GitHub 加速計劃,同步存在1小時延遲
 | 
			
		||||
 | 
			
		||||
        === ":simple-jsdelivr: jsDelivr (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh)
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 騰訊雲 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh)
 | 
			
		||||
            ```
 | 
			
		||||
            > 不支援在中國大陸網路環境下使用
 | 
			
		||||
 | 
			
		||||
=== ":material-earth: 境外以及海外地區"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官網 (推薦)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
        === ":simple-github: GitHub"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
        === ":simple-gitee: Gitee 码云 (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
            > 即時同步、無延遲,中國大陸網路環境建議使用
 | 
			
		||||
 | 
			
		||||
        === ":gitcode: GitCode (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
            > 本項目已加入 GitHub 加速計劃,同步存在1小時延遲
 | 
			
		||||
 | 
			
		||||
        === ":simple-jsdelivr: jsDelivr (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 騰訊雲 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--abroad` 命令選項來使用海外軟體源
 | 
			
		||||
 | 
			
		||||
            > 不支援在中國大陸網路環境下使用
 | 
			
		||||
 | 
			
		||||
=== ":material-library: 中國大陸教育網"
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === ":linuxmirrors: 官網 (推薦)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
        === ":simple-github: GitHub"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
        === ":simple-gitee: Gitee 码云 (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
            > 即時同步、無延遲,中國大陸網路環境建議使用
 | 
			
		||||
 | 
			
		||||
        === ":gitcode: GitCode (鏡像倉庫)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
            > 本項目已加入 GitHub 加速計劃,同步存在1小時延遲
 | 
			
		||||
 | 
			
		||||
        === ":simple-jsdelivr: jsDelivr (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
        === ":tencent-cloud: 騰訊雲 EO (CDN)"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            1.  透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
 | 
			
		||||
 | 
			
		||||
            > 不支援在中國大陸網路環境下使用
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
!!! tip "使用幫助"
 | 
			
		||||
 | 
			
		||||
    選項卡分別代表腳本內建軟體源類型和取得腳本途徑,請在使用前檢查目標鏡像站是否支援您所使用的作業系統,可以在[軟體源列表](../mirrors/index.md)中查看。  
 | 
			
		||||
    預設自動備份原有軟體源內容,如需了解更多請翻閱下方文檔。若使用過程中的某些選項令你疑惑不解,那麼在選擇軟體源後一路回車即是最佳實踐。
 | 
			
		||||
 | 
			
		||||
!!! quote "關於軟體源的選擇(新用戶必讀)"
 | 
			
		||||
 | 
			
		||||
    如果你不了解這些鏡像站那麼建議使用 `阿里雲 (相容性高、可用性強)` 或 `中國科學技術大學 (速度快)`,請不要陷入測速焦慮,內建的軟體源一般不會有太大的差異。  
 | 
			
		||||
    本項目腳本是一個自動化維運工具,不會對鏡像站進行主觀的優劣排序和客製化適配,使用者的選擇應該是自由的,這也是為了開源軟體精神能夠得到更好的延續。
 | 
			
		||||
 | 
			
		||||
<div class="grid cards" markdown>
 | 
			
		||||
 | 
			
		||||
-   :material-numeric-1:{style="color: #3CA7E5" .lg} __需使用 `ROOT` 使用者執行腳本__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    切換指令為 `sudo -i` 或 `su root`。不同系統使用的命令不同,因為部分系統沒有在初始安裝時為 ROOT 帳戶設定密碼(例如 Ubuntu)或系統預設禁止 ROOT 使用者登入。
 | 
			
		||||
 | 
			
		||||
-   :material-numeric-2:{style="color: #3CA7E5" .lg} __建議使用現代化的 `SSH` 用戶端應用__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    如果你係統命令列介面的中文顯示亂碼那麼將導致無法查看互動內容,此外部分系統 GUI 圖形介面的終端應用可能存在一些無法預料的顯示問題。部分系統會自動開啟 SSH 服務,否則請參考[開啟方法](#關於開啟-ssh-遠端登入的方法)。
 | 
			
		||||
 | 
			
		||||
-   :material-numeric-3:{style="color: #3CA7E5" .lg} __如果是在新裝系統上首次執行腳本__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    目前依賴 `curl` 指令取得腳本內容,但部分作業系統沒有預先安裝此軟體包,屆時則會報錯 `Command not found`,安裝方法詳見下方 [_關於報錯 Command not found_](#關於報錯-command-not-found)。腳本本身與 `curl` `wget` 指令無關,更不會下載任何內容。
 | 
			
		||||
 | 
			
		||||
-   :material-numeric-4:{style="color: #3CA7E5" .lg} __腳本運行期間需要互動選擇配置__
 | 
			
		||||
 | 
			
		||||
    ---
 | 
			
		||||
 | 
			
		||||
    請透過方向鍵 ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ 或 ++w++++a++++s++++d++ 控制選項並按 ++enter++ 回車鍵確認。如果發現互動異常那麼請改變終端軟體的視窗大小後重試,另外視窗不要鋪滿全螢幕。
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
### 常見問題
 | 
			
		||||
 | 
			
		||||
- #### 關於報錯 Command not found
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        此報錯是由於系統沒有安裝 `curl` 軟體包導致,安裝命令如下
 | 
			
		||||
 | 
			
		||||
        === "Debian 係 / openKylin"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            apt-get install -y curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`   `openKylin`
 | 
			
		||||
 | 
			
		||||
            新裝系統需要先執行一遍更新 `apt-get update`
 | 
			
		||||
 | 
			
		||||
        === "RedHat 係 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            dnf install -y curl || yum install -y curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
        === "openSUSE"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            zypper install curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Arch Linux / Manjaro"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            pacman -S curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Alpine Linux"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            apk --no-cache add -f curl bash ncurses
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Gentoo"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            emerge --ask curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "NixOS"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            nix-env -iA nixos.curl
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        ??? question "安裝不上? (點擊展開查看其它解決方法)"
 | 
			
		||||
 | 
			
		||||
            假如係統原有軟體源是無效的導致安裝不上 `curl` 軟體包,那麼對於 Linux 初學者來說可能會比較麻煩,這裡提供幾個在線獲取腳本的應急方法
 | 
			
		||||
 | 
			
		||||
            === "使用 Python 下載"
 | 
			
		||||
 | 
			
		||||
                適用於大部分作業系統(`Alpine Linux` 除外),`python3` 要是不存在那就再試試 `python` 指令
 | 
			
		||||
                ``` bash
 | 
			
		||||
                python3 -c "import urllib.request; urllib.request.urlretrieve('https://linuxmirrors.cn/main.sh', 'main.sh')"
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === "使用 wget 指令下載"
 | 
			
		||||
 | 
			
		||||
                一般沒有預先安裝 `curl` 軟體包的系統也不會預先安裝 `wget` 軟體包,所以大機率這個方法應該是不行的
 | 
			
		||||
                ``` bash
 | 
			
		||||
                wget https://linuxmirrors.cn/main.sh
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === "使用瀏覽器下載"
 | 
			
		||||
 | 
			
		||||
                如果可以存取系統 GUI 映像介面和桌面的話那可以直接在瀏覽器中開啟連結下載腳本,許多系統都會預先安裝 Firefox 火狐瀏覽器
 | 
			
		||||
 | 
			
		||||
            之後再執行腳本即可
 | 
			
		||||
 | 
			
		||||
            === ":material-home-city: 中國大陸"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                bash main.sh
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === ":material-earth: 境外以及海外地區"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                bash main.sh --abroad
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === ":material-library: 中國大陸教育網"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                bash main.sh --edu
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            如果以上方法試了都不行,那就複製[原始碼](https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)至本地新建任意名稱的 `.sh` 腳本,貼上原始碼內容後透過 `bash` 指令手動執行。
 | 
			
		||||
 | 
			
		||||
- #### 備份原有軟體源
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        腳本會自動備份原有軟體源內容,備份路徑為原始文件或目錄的絕對路徑加上 `.bak` 後綴,例如 `/etc/apt/sources.list => /etc/apt/sources.list.bak`,檢查已存在備份內容時會詢問是否覆蓋備份。
 | 
			
		||||
 | 
			
		||||
- #### 還原已備份的軟體源
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        === "Debian 係 / openKylin"
 | 
			
		||||
 | 
			
		||||
            === "傳統格式"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                cp -rf /etc/apt/sources.list.bak /etc/apt/sources.list
 | 
			
		||||
                apt-get update
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            === "DEB822 格式"
 | 
			
		||||
 | 
			
		||||
                ``` bash
 | 
			
		||||
                system_name="$(lsb_release -is | tr '[:upper:]' '[:lower:]')"
 | 
			
		||||
                cp -rf "/etc/apt/sources.list.d/${system_name}.sources.bak" "/etc/apt/sources.list.d/${system_name}.sources"
 | 
			
		||||
                apt-get update
 | 
			
		||||
                ```
 | 
			
		||||
 | 
			
		||||
            > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`   `openKylin`
 | 
			
		||||
 | 
			
		||||
        === "RedHat 係 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/yum.repos.d.bak /etc/yum.repos.d
 | 
			
		||||
            yum makecache
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
            > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
        === "openSUSE"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/zypp/repos.d.bak /etc/zypp/repos.d
 | 
			
		||||
            zypper ref
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Arch Linux / Manjaro"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
 | 
			
		||||
            pacman -Sy
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Alpine Linux"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/apk/repositories.bak /etc/apk/repositories
 | 
			
		||||
            apk update -f
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "Gentoo"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/portage/make.conf.bak /etc/portage/make.conf
 | 
			
		||||
            [ -d /etc/portage/repos.conf ] && cp -rf /etc/portage/repos.conf/gentoo.conf.bak /etc/portage/repos.conf/gentoo.conf
 | 
			
		||||
            emerge --sync --quiet
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "NixOS"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cp -rf /etc/nix/nix.conf.bak /etc/nix/nix.conf
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
- #### 關於開啟 SSH 遠端登入的方法
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        命令以及設定步驟僅供參考,只適配了部分常見發行版
 | 
			
		||||
 | 
			
		||||
        - 驗證是否已安裝 `SSH` 服務
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            ls /etc | grep ssh
 | 
			
		||||
            ```
 | 
			
		||||
            > 如果沒有這個資料夾說明系統未安裝 `SSH` 服務,你需要透過套件管理工具安裝 `openssh` 軟體包  
 | 
			
		||||
            > 要注意的是不同系統上的軟體包名稱有所差異,可直接使用 `openssh*` 通配符進行安裝
 | 
			
		||||
 | 
			
		||||
        - 設定允許 Root 使用者登入
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cat /etc/ssh/sshd_config | grep -Eq "^[# ]?PermitRootLogin " ; [ $? -eq 0 ] && sed -i 's/^[# ]\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config || echo -e "\nPermitRootLogin yes" >> /etc/ssh/sshd_config
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        - 設定密碼認證
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            cat /etc/ssh/sshd_config | grep -Eq "^[# ]?PasswordAuthentication " ; [ $? -eq 0 ] && sed -i 's/^[# ]\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config || echo -e "\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        - 啟動/重啟 `SSH` 服務
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            ps -ef | grep -q ssh ; [ $? -eq 0 ] && systemctl restart sshd || systemctl enable --now sshd
 | 
			
		||||
            ```
 | 
			
		||||
            > 不同系統上的服務名稱有所差異,如果不是 `sshd` 那就試試 `ssh`
 | 
			
		||||
 | 
			
		||||
- #### 關於未顯示方向鍵交互控制介面
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        如果發現互動介面是輸入而非新式的方向鍵控制,那麼請自行安裝 `ncurses` 或 `nano` 軟體包,新式的按鍵互動依賴 `tput` 指令實作。
 | 
			
		||||
 | 
			
		||||
- #### 關於呼叫腳本的互聯網位置
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        項目利用 [GitHub Action](https://github.com/SuperManito/LinuxMirrors/blob/main/.github/workflows/build-docs.yml#L29) 在每次提交後自動拷貝原始碼到文檔目錄作為網站資源發佈,網站託管於 :netlify: [Netlify](https://www.com),網站託管於 :netlify: [Netlify](https://www.com)幾乎沒有使用風險。 
 | 
			
		||||
 | 
			
		||||
        當然你也可以使用程式碼託管倉庫的原始位址來調用,這裡只是想告訴你為什麼會有幾個不同的位址,預設的官網位址更容易記憶和存取。
 | 
			
		||||
 | 
			
		||||
- #### 關於軟體源下載速度相關問題
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        首先,在[軟體源列表](../mirrors/index.md)的使用幫助處有寫使用推薦,這是根據以往經驗總結出來的,但總有用戶在糾結軟體源速度的問題。 
 | 
			
		||||
 | 
			
		||||
        軟體源(鏡像站)的網路延遲即 `Ping` 與下載速度沒有太大的關聯,雙方地理位置間隔的遠近不代表實際體驗,有些鏡像站下行總頻寬很高但實際測速卻並不理想,因為這與鏡像站的負載策略有關。 
 | 
			
		||||
 | 
			
		||||
        網路上也有很多基於 C、Python 編寫的鏡像站測速開源腳本,而本項目腳本基於 Bash Shell 編寫且不依賴任何第三方庫,Bash 是 Linux 運維中最常用的腳本語言並且絕大部分發行版都會預裝,這意味著用戶不需要安裝任何環境就能直接運行,這種便利性是其高級語言無法替代的,不過目前 Bash腳本可能不太容易實現精準測速的功能,使用其它高級語言編寫測速功能無疑是造輪子的行為。
 | 
			
		||||
 | 
			
		||||
- #### 關於未啟用的軟體源倉庫
 | 
			
		||||
 | 
			
		||||
    !!! quote ""
 | 
			
		||||
 | 
			
		||||
        許多系統的軟體源會啟用多個倉庫,腳本遵循系統預設設置,預設不啟用的軟體源(倉庫)不會在運行完本腳本後被啟用,但是它們也隨腳本更換了目標軟體源位址,具體啟用方法如下:
 | 
			
		||||
 | 
			
		||||
        === "Debian 係 / openKylin"
 | 
			
		||||
 | 
			
		||||
            預設禁用了`deb-src`原始碼倉庫和`proposed`預發佈軟體源,若需啟用請將 `/etc/apt/sources.list` 文件中相關內容的所在行取消註釋
 | 
			
		||||
 | 
			
		||||
            > `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`   `openKylin`
 | 
			
		||||
 | 
			
		||||
        === "RedHat 係 / openEuler / OpenCloudOS / Anolis OS"
 | 
			
		||||
 | 
			
		||||
            部分倉庫預設沒有啟用,若需啟用請將 `/etc/yum.repos.d` 目錄下相關 repo 文件中的 `enabled` 值修改為 `1`
 | 
			
		||||
 | 
			
		||||
            > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 | 
			
		||||
 | 
			
		||||
        === "openSUSE"
 | 
			
		||||
 | 
			
		||||
            部分倉庫預設沒有啟用,若需啟用請將 `/etc/zypp/repos.d` 目錄下相關 repo 文件中的 `enabled` 值修改為 `1`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## 命令選項(進階用法)
 | 
			
		||||
 | 
			
		||||
| 名称 | 含义 | 选项值 |
 | 
			
		||||
| - | - | :-: |
 | 
			
		||||
| `--abroad` | 使用境外以及海外軟體源 | 無 |
 | 
			
		||||
| `--edu` | 使用中國大陸教育網軟體源 | 無 |
 | 
			
		||||
| `--source` | 指定軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--source-epel` | 指定 EPEL 附加軟體包倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--source-security` | 指定 Debian / Ubuntu 系統 security 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--source-vault` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--source-portage` | 指定 Gentoo 系統 portage 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--source-base-system` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `--branch` | 指定軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--branch-epel` | 指定 EPEL 附加軟體包倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--branch-security` | 指定 Debian 係統 security 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--branch-vault` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--branch-portage` | 指定 Gentoo 系統 portage 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--branch-base-system` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `--codename` | 指定 Debian 係 / openKylin 作業系統的版本代號 | `代號名稱` |
 | 
			
		||||
| `--protocol` | 指定 WEB 協議 | `http` 或 `https` |
 | 
			
		||||
| `--use-intranet-source` | 是否優先使用內部網路軟體源位址 | `true` 或 `false` |
 | 
			
		||||
| `--use-official-source` | 是否使用目標作業系統的官方軟體源 | `true` 或 `false` |
 | 
			
		||||
| `--use-official-source-epel` | 是否使用 EPEL 附加軟體包的官方軟體源 | `true` 或 `false` |
 | 
			
		||||
| `--install-epel` | 是否安裝 EPEL 附加軟體包 | `true` 或 `false` |
 | 
			
		||||
| `--backup` | 是否備份原有軟體源 | `true` 或 `false` |
 | 
			
		||||
| `--upgrade-software` | 是否更新軟體套件 | `true` 或 `false` |
 | 
			
		||||
| `--clean-cache` | 是否在更新軟體包後清理下載快取 | `true` 或 `false` |
 | 
			
		||||
| `--clean-screen` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
 | 
			
		||||
| `--print-diff` | 是否列印原始文件修改前後差異 | `true` 或 `false` |
 | 
			
		||||
| `--only-epel` | 僅更換 EPEL 軟體源模式 | 無 |
 | 
			
		||||
| `--ignore-backup-tips` | 忽略覆蓋備份提示(即不覆蓋備份) | 無 |
 | 
			
		||||
| `--pure-mode` | 純淨模式,精簡列印內容 | 無 |
 | 
			
		||||
| `--help` | 查看幫助選單 | 無 |
 | 
			
		||||
 | 
			
		||||
> 軟體源完整格式 `<WEB協議>://<軟體源位址(網域名稱或IP)>/<軟體源倉庫(路徑)>`
 | 
			
		||||
 | 
			
		||||
以下是一些進階用法的舉例
 | 
			
		||||
 | 
			
		||||
- ### 指定軟體源位址
 | 
			
		||||
 | 
			
		||||
    ``` { .bash .no-copy }
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) --source mirror.example.com
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
- ### 指定軟體源倉庫
 | 
			
		||||
 | 
			
		||||
    這裡的軟體源倉庫與系統內容軟體源倉庫不同,指的是軟體源位址後面的路徑即鏡像站分支倉庫,雖然名義上都是倉庫但是非常容易混淆
 | 
			
		||||
 | 
			
		||||
    主要使用情境:目標鏡像站有對應的系統鏡像倉庫但是不符合本項目腳本關於軟體源倉庫設定的預設規則
 | 
			
		||||
 | 
			
		||||
    ??? note "項目對於各作業系統所使用的預設倉庫名稱(點選展開檢視)"
 | 
			
		||||
 | 
			
		||||
        項目腳本為了適配大的環境不會針對某一鏡像站獨特的倉庫名稱而單獨適配
 | 
			
		||||
 | 
			
		||||
        | 系統名稱 | 涉及的名稱 |
 | 
			
		||||
        | --- | :---: |
 | 
			
		||||
        | <a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | `debian` `debian-archive` |
 | 
			
		||||
        | <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** | `ubuntu` `ubuntu-ports` |
 | 
			
		||||
        | <a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> **Kali Linux** | `kali` |
 | 
			
		||||
        | <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | `linuxmint` `ubuntu` `ubuntu-ports` `debian` |
 | 
			
		||||
        | <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Deepin** | `deepin` |
 | 
			
		||||
        | <a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Zorin OS** | `ubuntu` `ubuntu-ports` |
 | 
			
		||||
        | <a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
 | 
			
		||||
        | <a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Proxmox VE** | `proxmox` |
 | 
			
		||||
        | <a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> **Raspberry Pi OS** | `raspberrypi` `raspbian` `debian` `debian-archive` |
 | 
			
		||||
        | <a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code>, 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
 | 
			
		||||
        | <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Fedora** | `fedora` `fedora-archive` |
 | 
			
		||||
        | <a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
 | 
			
		||||
        | <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
 | 
			
		||||
        | <a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
 | 
			
		||||
        | <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | `openeuler` |
 | 
			
		||||
        | <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> **OpenCloudOS** | `opencloudos` |
 | 
			
		||||
        | <a href="https://www.openkylin.top" title="https://www.openkylin.top" target="_blank"><img src="/assets/images/icon/openkylin.ico" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
 | 
			
		||||
        | <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> **Anolis OS** | `anolis` |
 | 
			
		||||
        | <a href="https://www.opensuse.org" title="https://www.opensuse.org" target="_blank"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | `opensuse` |
 | 
			
		||||
        | <a href="https://archlinux.org" title="https://archlinux.org" target="_blank"><img src="/assets/images/icon/arch-linux.ico" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | `archlinux` `archlinuxarm` |
 | 
			
		||||
        | <a href="https://manjaro.org" title="https://manjaro.org" target="_blank"><img src="/assets/images/icon/manjaro.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Manjaro** | `manjaro` |
 | 
			
		||||
        | <a href="https://www.alpinelinux.org" title="https://www.alpinelinux.org" target="_blank"><img src="/assets/images/icon/alpine.png" width="16" height="16" style="vertical-align: -0.15em"></a> **Alpine Linux** | `alpine` |
 | 
			
		||||
        | <a href="https://www.gentoo.org" title="https://www.gentoo.org" target="_blank"><img src="/assets/images/icon/gentoo.svg" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | `gentoo` `gentoo-portage` |
 | 
			
		||||
        | <a href="https://nixos.org" title="https://nixos.org" target="_blank"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
 | 
			
		||||
 | 
			
		||||
    請看下面的例子
 | 
			
		||||
 | 
			
		||||
    ``` { .bash title="使用阿里雲鏡像站的 Rocky Linux 軟體源" }
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
      --source mirrors.aliyun.com \
 | 
			
		||||
      --branch rockylinux
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
    阿里雲鏡像站的 Rocky Linux 倉庫名稱為 [`rockylinux`](https://mirrors.aliyun.com/rockylinux),不符合預設規則 `rocky`,但是可以透過命令選項繞過腳本預設規則來實現。
 | 
			
		||||
 | 
			
		||||
    > 部分系統會同時配置多個倉庫的軟體源,具體詳見命令選項
 | 
			
		||||
 | 
			
		||||
    > 由於軟體源倉庫作用在軟體源位址上因此也可以使用多層路徑,例如 `--branch "linux/debian"` -> `https://mirrors.example.com/linux/debian`
 | 
			
		||||
 | 
			
		||||
- ### 單獨更換 EPEL 源
 | 
			
		||||
 | 
			
		||||
    !!! info "EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 組織維護的一個附加軟體包倉庫,它主要適用於除 Fedora 作業系統以外的紅帽系 Linux 發行版,配置 EPEL 倉庫已成為廣大用戶的普遍需求,建議默認安裝它"
 | 
			
		||||
 | 
			
		||||
    有些時候你會發現想使用的鏡像站沒有 EPEL 倉庫,那麼你可以在第一次運行腳本時不安裝或更換 EPEL 來源然後再單獨執行下面的命令
 | 
			
		||||
 | 
			
		||||
    ``` bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) --only-epel
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
    對於已經 EOL 的 EPEL 7 注意需要使用 [`archive`](https://dl.fedoraproject.org/pub/archive/epel) 倉庫,境外以及海外網絡環境建議通過命令選項 `--use-official-source-epel true` 使用官方源
 | 
			
		||||
 | 
			
		||||
- ### 恢復使用官方源
 | 
			
		||||
 | 
			
		||||
    當你不小心刪除了官方來源的備份時可以使用此命令來恢復,使用此命令選項後將跳過選擇軟體源步驟
 | 
			
		||||
 | 
			
		||||
    ``` bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) --use-official-source true
 | 
			
		||||
    ```
 | 
			
		||||
    > 部分系統不存在官方來源例如 `Arch Linux`,屆時會自動更換成相容性較高的阿里雲鏡像站
 | 
			
		||||
 | 
			
		||||
- ### 特定係統的使用範例
 | 
			
		||||
 | 
			
		||||
    - #### 關於 CentOS 停服問題
 | 
			
		||||
 | 
			
		||||
        腳本對於已經 EOL 的 CentOS 7/8、CentOS Stream 8 進行了適配
 | 
			
		||||
 | 
			
		||||
        <div class="grid cards" markdown>
 | 
			
		||||
 | 
			
		||||
        -   __中國大陸__
 | 
			
		||||
 | 
			
		||||
            ---
 | 
			
		||||
 | 
			
		||||
            直接正常使用即可,因為大部分中國大陸鏡像站都同步了 [`CentOS Vault`](https://vault.centos.org/) 倉庫
 | 
			
		||||
 | 
			
		||||
        -   __國際地區__
 | 
			
		||||
 | 
			
		||||
            ---
 | 
			
		||||
 | 
			
		||||
            建議使用 `騰訊雲` 或 `阿里雲` 鏡像站,或透過 `--use-official-source true` 命令選項使用官方來源
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        另外 EPEL 7 也進入了 EOL,腳本同樣對其進行了適配
 | 
			
		||||
 | 
			
		||||
    - #### 指定 GNU/Linux Debian 作業系統的 Security 來源
 | 
			
		||||
 | 
			
		||||
        如果你想盡可能提高伺服器的安全性建議使用官方來源,因為鏡像同步存在延遲
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
          --source-security security.debian.org \
 | 
			
		||||
          --branch-security debian-security
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    - #### 指定 Debian 係 Linux 作業系統的版本代號
 | 
			
		||||
 | 
			
		||||
        大多數情況下自訂版本代號用於更換系統版本,請看下面的例子
 | 
			
		||||
 | 
			
		||||
        === "升級 GNU/Linux Debian 至 12 版本 Bookworm"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename bookworm
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        === "將 GNU/Linux Debian 的版本切換到測試分支"
 | 
			
		||||
 | 
			
		||||
            ``` bash
 | 
			
		||||
            bash <(curl -sSL https://linuxmirrors.cn/main.sh) --codename testing
 | 
			
		||||
            ```
 | 
			
		||||
 | 
			
		||||
        更換軟體源後還需要執行系統更新命令 `apt-get dist-upgrade`,並且建議在更新完成並重新啟動系統後重新執行本換源腳本,因為僅更換軟體源配置中的系統版本代號可能會在後期使用時產生一些相容性問題
 | 
			
		||||
 | 
			
		||||
        ``` { .bash title="如果腳本無法實現指定版本代號,你也可以在執行腳本後手動替換" }
 | 
			
		||||
        sed -i "s/$(lsb_release -cs)/指定版本代号/g" /etc/apt/sources.list
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    - #### 更換 Ubuntu EOL版本軟體源
 | 
			
		||||
 | 
			
		||||
        !!! info "EOL 為生命週期結束的縮寫(End Of Life),Ubuntu 迭代速度較快一般非LTS(長期支持)版本的生命週期只有9個月。官方會定期從主倉庫移除不在生命週期內的版本倉庫目錄,屆時可能就需要使用鏡像站的 `Ubuntu Old Releases` 倉庫"
 | 
			
		||||
 | 
			
		||||
        具體版本支援情況詳見官方 [Wiki](https://wiki.ubuntu.com/Releases),關於 `Ubuntu Old Releases` 倉庫的支援情況詳見各鏡像站
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
          --source mirrors.ustc.edu.cn \
 | 
			
		||||
          --branch ubuntu-old-releases
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    - #### Arch Linux 使用中文社群倉庫
 | 
			
		||||
 | 
			
		||||
        本項目腳本目前不支援此額外倉庫,因使用人數較少等原因暫不考慮適配,若想使用請參考下方的一鍵設定命令
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        SOURCE="https://mirrors.aliyun.com/archlinuxcn" # 指定軟體源位址
 | 
			
		||||
        grep -q "\[archlinuxcn\]" /etc/pacman.conf || echo -e "[archlinuxcn]\nServer = ${SOURCE}/\$arch" >>/etc/pacman.conf # 一鍵配置命令
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
- ### 無人值守(自動化)
 | 
			
		||||
 | 
			
		||||
    不透過交互完成換源操作,至少需要使用以下命令選項來實現,建議熟悉後再使用
 | 
			
		||||
 | 
			
		||||
    ``` { .bash .no-copy title="参考命令" }
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
      --source mirror.example.com \
 | 
			
		||||
      --protocol http \
 | 
			
		||||
      --use-intranet-source false \
 | 
			
		||||
      --install-epel true \
 | 
			
		||||
      --backup true \
 | 
			
		||||
      --upgrade-software false \
 | 
			
		||||
      --clean-cache false \
 | 
			
		||||
      --ignore-backup-tips
 | 
			
		||||
    ```
 | 
			
		||||
    > 如果報錯 `命令選項無效` 那麼請檢查選項合法性以及空格字元編碼,在範例中一行寫一個選項是為了提高命令的可讀性
 | 
			
		||||
 | 
			
		||||
- ### 純淨模式
 | 
			
		||||
 | 
			
		||||
    為了方便開發人員使用所推出的功能,啟用後會精簡腳本內容輸出,建議搭配其它命令選項無互動使用
 | 
			
		||||
 | 
			
		||||
    ``` bash
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
    !!! tip "滾動輸出的命令日誌可能有無法預料的顯示問題,不過目前暫未發現異常"
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## 客製化腳本
 | 
			
		||||
 | 
			
		||||
如果你是其它項目的開發者希望透過本項目來製作專屬腳本那麼請參考下面提到的內容,目前已經有中國大陸教育單位鏡像站的維護者這樣做了。
 | 
			
		||||
 | 
			
		||||
1.  首先不建議修改程式碼的底層邏輯,應盡量與本項目原始碼保持同步,腳本內容執行順序由 `main` 函數控制,程式碼邏輯清晰
 | 
			
		||||
2.  你可以簡單去除一些無關內容,例如將軟體源列表(陣列)`mirror_list_(default|edu|abroad|extranet|intranet)` 中的內容刪除,例如:`mirror_list_default=()`
 | 
			
		||||
3.  如果你想要自訂腳本列印內容可直接修改 `run_start` `run_end` `print_title` 這三個函數中的內容
 | 
			
		||||
4.  如果你想加入自訂 Shell 內容詳見 `main` 函數中腳本執行順序,可以在對應位置直接插入內容也可以封裝函數後調用
 | 
			
		||||
5.  如果你想要縮減腳本體積那麼可以刪除一些不必要的內容,除了上面提到的軟體源列表還有一些涉及腳本工作的部分模組內容,具體如下:
 | 
			
		||||
    1. 首先在刪除內容時應盡可能保留腳本原始結構,直接把涉及函數中的內容刪除即可,使其保留為空函數
 | 
			
		||||
    2. 可以刪除一些不使用(作業系統)的軟體源原始內容 `gen_repo_files_xxx`,這些內容佔據了腳本 `60%` 以上的體積
 | 
			
		||||
    3. 如果你不使用某些功能那麼可以刪除對應功能模組函數中的內容,`命令選項 handle_command_options`、`備份原有軟體源 backup_original_mirrors`、`更新軟體包 upgrade_software`
 | 
			
		||||
6. 腳本主要功能配置是由統一的變量控制的,命令選項亦是如此,這些全局變量由全大寫字母構成並遵循下劃線命名法,具體變量詳見如下表格,你只需要將這些變量聲明在腳本頭部(預留註釋區域)即可快速完成定制
 | 
			
		||||
 | 
			
		||||
| 變數名 | 意義 | 值型別 |
 | 
			
		||||
| :-: | :-: | :-: |
 | 
			
		||||
| `SOURCE` | 指定軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_EPEL` | 指定 EPEL 附加軟體包倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_SECURITY` | 指定 Debian / Ubuntu 系統 security 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_PORTAGE` | 指定 Gentoo 系統 portage 倉庫的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源位址(網域名稱或IP) | `位址` |
 | 
			
		||||
| `SOURCE_BRANCH` | 指定軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加軟體套件倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系統 security 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系統 vault 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系統 portage 倉庫的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint / Raspberry Pi OS 底層系統的軟體源倉庫(路徑) | `倉庫名稱` |
 | 
			
		||||
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 作業系統的版本代號 | `代號名稱` |
 | 
			
		||||
| `USE_INTRANET_SOURCE` | 是否優先使用內網軟體源位址 | `true` 或 `false` |
 | 
			
		||||
| `USE_OFFICIAL_SOURCE` | 是否使用目標作業系統的官方軟體源 | `true` 或 `false` |
 | 
			
		||||
| `USE_OFFICIAL_SOURCE_EPEL` | 是否使用 EPEL 附加軟體包的官方軟體源 | `true` 或 `false` |
 | 
			
		||||
| `WEB_PROTOCOL` | 指定 WEB 協議 | `http` 或 `https` |
 | 
			
		||||
| `INSTALL_EPEL` | 是否安裝 EPEL 附加軟體包 | `true` 或 `false` |
 | 
			
		||||
| `ONLY_EPEL` | 僅更換 EPEL 軟體源模式 | `true` 或 `false` |
 | 
			
		||||
| `BACKUP` | 是否備份原有軟體源 | `true` 或 `false` |
 | 
			
		||||
| `IGNORE_BACKUP_TIPS` | 忽略覆蓋備份提示(即不覆蓋備份) | `true` 或 `false` |
 | 
			
		||||
| `UPGRADE_SOFTWARE` | 是否更新軟體包 | `true` 或 `false` |
 | 
			
		||||
| `CLEAN_CACHE` | 是否在更新軟體包後清理下載快取 | `true` 或 `false` |
 | 
			
		||||
| `CLEAN_SCREEN` | 是否在運行前清除螢幕上的所有內容 | `true` 或 `false` |
 | 
			
		||||
| `PRINT_DIFF` | 是否列印原始文件修改前後差異 | `true` 或 `false` |
 | 
			
		||||
| `PURE_MODE` | 純淨模式,精簡列印內容 | `true` 或 `false` |
 | 
			
		||||
 | 
			
		||||
> 部分變數存在預設值,未涉及的變數無需聲明為空值(空字串),另外如果對應功能配置不存在那麼就可能會出現交互
 | 
			
		||||
							
								
								
									
										78
									
								
								mkdocs.yml
									
									
									
									
									
								
							
							
						
						@@ -4,6 +4,15 @@ repo_url: https://github.com/SuperManito/LinuxMirrors
 | 
			
		||||
edit_uri: edit/main/docs/
 | 
			
		||||
copyright: 'Copyright © 2025 <a href="https://github.com/SuperManito" target="_blank">SuperManito</a></br>本网站由 <a href="https://www.netlify.com" target="_blank">Netlify</a> 部署并提供全球 CDN 边缘网络加速 <a href="https://www.netlify.com" target="_blank"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>'
 | 
			
		||||
 | 
			
		||||
nav:
 | 
			
		||||
  - "介绍": index.md
 | 
			
		||||
  - "使用方法": use/index.md
 | 
			
		||||
  - "软件源列表": mirrors/index.md
 | 
			
		||||
  - "其它工具": other/index.md
 | 
			
		||||
  - "更新日志": changelog/index.md
 | 
			
		||||
  - "社区": community/index.md
 | 
			
		||||
  - "赞助": sponsor/index.md
 | 
			
		||||
 | 
			
		||||
extra_javascript:
 | 
			
		||||
  - assets/js/modules/vue.global.prod.js
 | 
			
		||||
  - assets/js/modules/tdesign.min.js
 | 
			
		||||
@@ -68,7 +77,7 @@ theme:
 | 
			
		||||
    - navigation.top
 | 
			
		||||
    - navigation.tabs
 | 
			
		||||
    - navigation.path
 | 
			
		||||
    - navigation.instant
 | 
			
		||||
    # - navigation.instant
 | 
			
		||||
    - navigation.instant.progress
 | 
			
		||||
    - navigation.indexes
 | 
			
		||||
    - navigation.footer
 | 
			
		||||
@@ -113,7 +122,7 @@ extra:
 | 
			
		||||
markdown_extensions:
 | 
			
		||||
  - toc:
 | 
			
		||||
      permalink: "#"
 | 
			
		||||
      permalink_title: 永久链接
 | 
			
		||||
      permalink_title: 链接
 | 
			
		||||
      toc_depth: 3
 | 
			
		||||
      slugify: !!python/object/apply:pymdownx.slugs.slugify
 | 
			
		||||
        kwds:
 | 
			
		||||
@@ -142,7 +151,7 @@ markdown_extensions:
 | 
			
		||||
      emoji_generator: !!python/name:material.extensions.emoji.to_svg
 | 
			
		||||
      options:
 | 
			
		||||
        custom_icons:
 | 
			
		||||
          - docs/theme
 | 
			
		||||
          - docs/assets/images/icon/custom
 | 
			
		||||
  - pymdownx.highlight:
 | 
			
		||||
      anchor_linenums: true
 | 
			
		||||
      use_pygments: true
 | 
			
		||||
@@ -154,28 +163,51 @@ markdown_extensions:
 | 
			
		||||
  - pymdownx.tasklist:
 | 
			
		||||
      custom_checkbox: true
 | 
			
		||||
plugins:
 | 
			
		||||
  - i18n:
 | 
			
		||||
      docs_structure: suffix
 | 
			
		||||
      languages:
 | 
			
		||||
        - locale: zh
 | 
			
		||||
          default: true
 | 
			
		||||
          name: 简体中文
 | 
			
		||||
        - locale: zh-hant
 | 
			
		||||
          name: 繁體中文
 | 
			
		||||
          nav_translations:
 | 
			
		||||
            "介绍": 介紹
 | 
			
		||||
            "使用方法": 使用方法
 | 
			
		||||
            "软件源列表": 軟體源列表
 | 
			
		||||
            "其它工具": 其它工具
 | 
			
		||||
            "更新日志": 更新日誌
 | 
			
		||||
            "社区": 社群
 | 
			
		||||
            "赞助": 贊助
 | 
			
		||||
          build: true
 | 
			
		||||
          copyright: 'Copyright © 2025 <a href="https://github.com/SuperManito" target="_blank">SuperManito</a></br>本網站由 <a href="https://www.netlify.com" target="_blank">Netlify</a> 部署並提供全球 CDN 邊緣網路加速 <a href="https://www.netlify.com" target="_blank"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>'
 | 
			
		||||
          extra:
 | 
			
		||||
            homepage: https://linuxmirrors.cn/zh-hant
 | 
			
		||||
          theme:
 | 
			
		||||
            palette:
 | 
			
		||||
              - media: "(prefers-color-scheme)"
 | 
			
		||||
                toggle:
 | 
			
		||||
                  name: 跟隨系統
 | 
			
		||||
              - media: "(prefers-color-scheme: light)"
 | 
			
		||||
                toggle:
 | 
			
		||||
                  name: 亮色模式
 | 
			
		||||
              - media: "(prefers-color-scheme: dark)"
 | 
			
		||||
                toggle:
 | 
			
		||||
                  name: 暗黑模式
 | 
			
		||||
  - search:
 | 
			
		||||
      lang: en
 | 
			
		||||
      separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
 | 
			
		||||
  - tags
 | 
			
		||||
  - termynal
 | 
			
		||||
  - minify:
 | 
			
		||||
      minify_js: true
 | 
			
		||||
      minify_css: true
 | 
			
		||||
      htmlmin_opts:
 | 
			
		||||
          remove_comments: true
 | 
			
		||||
      cache_safe: true
 | 
			
		||||
      js_files:
 | 
			
		||||
        - assets/js/useThemeTransition.js
 | 
			
		||||
        - assets/js/common.js
 | 
			
		||||
        - assets/js/component.js
 | 
			
		||||
        - assets/js/components/mirrors-table/data.js
 | 
			
		||||
        - assets/js/components/mirrors-table/index.js
 | 
			
		||||
nav:
 | 
			
		||||
  - "介绍": index.md
 | 
			
		||||
  - "使用方法": use/index.md
 | 
			
		||||
  - "软件源列表": mirrors/index.md
 | 
			
		||||
  - "其它工具": other/index.md
 | 
			
		||||
  - "更新日志": changelog/index.md
 | 
			
		||||
  - "社区": community/index.md
 | 
			
		||||
  - "赞助": sponsor/index.md
 | 
			
		||||
  # - minify:
 | 
			
		||||
  #     minify_js: true
 | 
			
		||||
  #     minify_css: true
 | 
			
		||||
  #     htmlmin_opts:
 | 
			
		||||
  #         remove_comments: true
 | 
			
		||||
  #     cache_safe: false
 | 
			
		||||
  #     js_files:
 | 
			
		||||
  #       - assets/js/useThemeTransition.js
 | 
			
		||||
  #       - assets/js/common.js
 | 
			
		||||
  #       - assets/js/component.js
 | 
			
		||||
  #       - assets/js/components/mirrors-table/data.js
 | 
			
		||||
  #       - assets/js/components/mirrors-table/index.js
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
mkdocs-material==9.6.14
 | 
			
		||||
mkdocs-glightbox==0.4.0
 | 
			
		||||
mkdocs-exclude-search==0.6.6
 | 
			
		||||
mkdocs-minify-plugin==0.8.0
 | 
			
		||||
# mkdocs-minify-plugin==0.8.0
 | 
			
		||||
mkdocs-static-i18n==1.3.0
 | 
			
		||||
termynal==0.13.0
 | 
			
		||||