mirror of
				https://gitee.com/SuperManito/LinuxMirrors
				synced 2025-11-04 00:10:27 +08:00 
			
		
		
		
	适配 Alpine Linux & 优化
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								docs/assets/images/icon/alpine.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/assets/images/icon/alpine.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.1 KiB  | 
@@ -8,30 +8,25 @@ hide:
 | 
			
		||||
  - footer
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
# GNU/Linux 一键更换系统软件源脚本
 | 
			
		||||
 | 
			
		||||
{ width="300" }
 | 
			
		||||
{ width="300" }
 | 
			
		||||
 | 
			
		||||
## 适配系统及其版本
 | 
			
		||||
 | 
			
		||||
!!! note inline end "说明"
 | 
			
		||||
 | 
			
		||||
    当前支持基于 `Debian`、`RedHat`、`OpenCloudOS`、`openEuler`、`openSUSE`、`Arch Linux` 的发行版和及其部分衍生版本  
 | 
			
		||||
    点击列表中的图标可快速前往其官网,理论支持所有架构的环境
 | 
			
		||||
    当前支持基于 `Debian`、`RedHat`、`OpenCloudOS`、`openEuler`、`openSUSE`、`Arch Linux`、`Alpine Linux` 的发行版和及其部分衍生版本  
 | 
			
		||||
    点击列表中的图标可快速前往其官网,理论支持所有处理器架构的环境
 | 
			
		||||
 | 
			
		||||
    暂无计划适配更多系统或版本  
 | 
			
		||||
    如果你有需求那么请提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues)
 | 
			
		||||
 | 
			
		||||
<div class="annotate" markdown>
 | 
			
		||||
 | 
			
		||||
| 名称 | 版本号 |
 | 
			
		||||
|---|:---:|
 | 
			
		||||
| 系统名称 | 适配版本 |
 | 
			
		||||
| --- | :---: |
 | 
			
		||||
| <a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.45em"></a> Debian | 8.0 ~ 12 |
 | 
			
		||||
| <a href="https://cn.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> 等" } | 14.04 ~ 23 |
 | 
			
		||||
| <a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux | 2.0 ~ 2023 |
 | 
			
		||||
| <a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Deepin | all |
 | 
			
		||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16"></a> Red Hat Enterprise Linux :material-information-outline:{ title="使用 <code>Rocky Linux</code> 源" } | 7.0 ~ 9 |
 | 
			
		||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16"></a> Red Hat Enterprise Linux :material-information-outline:{ title="使用 <code>Rocky Linux</code> 或 <code>CentOS</code> 源" } | 7.0 ~ 9 |
 | 
			
		||||
| <a href="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 ~ 39 |
 | 
			
		||||
| <a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> CentOS | 7.0 ~ 8.5 / Stream 8 ~ 9 |
 | 
			
		||||
| <a href="https://rockylinux.org/zh_CN" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Rocky Linux | 8 ~ 9 |
 | 
			
		||||
@@ -40,11 +35,9 @@ hide:
 | 
			
		||||
| <a href="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.3em"></a> openEuler | 21.03 ~ 23 |
 | 
			
		||||
| <a href="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" 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://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 |
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
[开始使用](use/index.md){ .md-button .md-button--primary } [查看软件源列表](mirrors/index.md){ .md-button }
 | 
			
		||||
 | 
			
		||||
<div class="grid cards" markdown>
 | 
			
		||||
 | 
			
		||||
-   :octicons-report-24:{ .lg .middle } __意见与建议__
 | 
			
		||||
@@ -68,3 +61,6 @@ hide:
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
> 这是一个开源的非盈利项目,旨在为从事计算机相关行业的朋友们提供便利
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
[开 始 使 用](use/index.md){ .md-button .md-button--primary } [查看软件源列表](mirrors/index.md){ .md-button }
 | 
			
		||||
 
 | 
			
		||||
@@ -8,27 +8,26 @@ hide:
 | 
			
		||||
 | 
			
		||||
## 中国大陆 :flag-CN:
 | 
			
		||||
 | 
			
		||||
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` 软件源  
 | 
			
		||||
> 列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关,目前没有扩充计划
 | 
			
		||||
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
 | 
			
		||||
 | 
			
		||||
| 镜像站 | IPv6 | Arch | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS |
 | 
			
		||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
 | 
			
		||||
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [网易](https://mirrors.163.com "mirrors.163.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [搜狐](https://mirrors.sohu.com "mirrors.sohu.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [火山引擎](https://mirrors.volces.com "mirrors.volces.com") | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn/Mirrors") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [重庆大学](https://mirrors.cqu.edu.cn "mirrors.cqu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [哈尔滨工业大学](https://mirrors.hit.edu.cn "mirrors.hit.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| 镜像站 | IPv6 | Arch | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS | Alpine |
 | 
			
		||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
 | 
			
		||||
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [网易](https://mirrors.163.com "mirrors.163.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [搜狐](https://mirrors.sohu.com "mirrors.sohu.com") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [火山引擎](https://mirrors.volces.com "mirrors.volces.com") | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn/Mirrors") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} |
 | 
			
		||||
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [重庆大学](https://mirrors.cqu.edu.cn "mirrors.cqu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-circle-off-outline:{style="color:#F6B604"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [哈尔滨工业大学](https://mirrors.hit.edu.cn "mirrors.hit.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :material-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} |
 | 
			
		||||
 | 
			
		||||
???+ question "使用帮助"
 | 
			
		||||
 | 
			
		||||
@@ -59,6 +58,7 @@ hide:
 | 
			
		||||
    | 齐鲁工业大学 | [mirrors.qlu.edu.cn](https://mirrors.qlu.edu.cn "https://mirrors.qlu.edu.cn") |
 | 
			
		||||
    | 华南农业大学 | [mirrors.scau.edu.cn](https://mirrors.scau.edu.cn "https://mirrors.scau.edu.cn") |
 | 
			
		||||
    | 西安交通大学 | [mirrors.xjtu.edu.cn](https://mirrors.xjtu.edu.cn "https://mirrors.xjtu.edu.cn") |
 | 
			
		||||
    | 江西理工大学 | [mirrors.jxust.edu.cn](https://mirrors.jxust.edu.cn "https://mirrors.jxust.edu.cn") |
 | 
			
		||||
    | 南阳理工学院 | [mirror.nyist.edu.cn](https://mirror.nyist.edu.cn "https://mirror.nyist.edu.cn") |
 | 
			
		||||
    | 武昌首义学院 | [mirrors.wsyu.edu.cn](https://mirrors.wsyu.edu.cn "https://mirrors.wsyu.edu.cn") |
 | 
			
		||||
    | 哈尔滨工业大学 | [mirrors.hit.edu.cn](https://mirrors.hit.edu.cn "https://mirrors.hit.edu.cn") |
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@ bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
 | 
			
		||||
 | 
			
		||||
    卸载命令如下:
 | 
			
		||||
 | 
			
		||||
    === "Debian 系 Linux"
 | 
			
		||||
    === "Debian 系"
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        apt-get remove -y docker* containerd.io runc && apt-get autoremove
 | 
			
		||||
@@ -83,7 +83,7 @@ bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
 | 
			
		||||
 | 
			
		||||
        > `Debian`   `Ubuntu`   `Kali`   `Deepin`
 | 
			
		||||
 | 
			
		||||
    === "RedHat 系 Linux / OpenCloudOS / openEuler"
 | 
			
		||||
    === "RedHat 系 / OpenCloudOS / openEuler"
 | 
			
		||||
 | 
			
		||||
        ``` bash
 | 
			
		||||
        yum remove -y docker* containerd.io podman* runc
 | 
			
		||||
 
 | 
			
		||||
@@ -37,9 +37,9 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
 | 
			
		||||
### 指定软件源分支
 | 
			
		||||
 | 
			
		||||
使用场景:目标软件源有对应系统镜像但是不符合本脚本关于软件源分支设置的默认规则  
 | 
			
		||||
使用场景:目标镜像站有对应的系统镜像但是不符合本项目脚本关于软件源分支设置的默认规则  
 | 
			
		||||
 | 
			
		||||
本脚本为了适配大的环境不会针对某一镜像站独特的镜像分支名称而单独定制,最开始是为了更换国内软件源而设计适配的,默认使用的分支名称如下
 | 
			
		||||
项目脚本为了适配大的环境不会针对某一镜像站独特的镜像分支名称而单独适配,默认使用的分支名称如下
 | 
			
		||||
 | 
			
		||||
<table>
 | 
			
		||||
<tr>
 | 
			
		||||
@@ -48,7 +48,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://cn.ubuntu.com" target="_blank"><img src="/../assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Ubuntu</td>
 | 
			
		||||
    <td align="center">ubuntu/ubuntu-ports</td>
 | 
			
		||||
    <td align="center">ubuntu / ubuntu-ports</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.kali.org" target="_blank"><img src="/../assets/images/icon/kali-linux.svg" width="16" height="16"/></a> Kali Linux</td>
 | 
			
		||||
@@ -60,7 +60,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="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.15em"/></a> Red Hat Enterprise Linux</td>
 | 
			
		||||
    <td align="center">centos/rocky</td>
 | 
			
		||||
    <td align="center">centos / centos-altarch / rocky</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="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>
 | 
			
		||||
@@ -68,7 +68,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://www.centos.org" target="_blank"><img src="/../assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> CentOS</td>
 | 
			
		||||
    <td align="center">centos/centos-stream/centos-altarch/centos-vault</td>
 | 
			
		||||
    <td align="center">centos / centos-stream / centos-altarch / centos-vault</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://rockylinux.org" target="_blank"><img src="/../assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> Rocky Linux</td>
 | 
			
		||||
@@ -76,7 +76,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> AlmaLinux</td>
 | 
			
		||||
    <td align="center">almalinux/almalinux-vault</td>
 | 
			
		||||
    <td align="center">almalinux / almalinux-vault</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="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>
 | 
			
		||||
@@ -92,7 +92,11 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="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</td>
 | 
			
		||||
    <td align="center">archlinux/archlinuxarm</td>
 | 
			
		||||
    <td align="center">archlinux / archlinuxarm</td>
 | 
			
		||||
</tr>
 | 
			
		||||
<tr>
 | 
			
		||||
    <td><a href="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</td>
 | 
			
		||||
    <td align="center">alpine</td>
 | 
			
		||||
</tr>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
@@ -116,7 +120,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --only-epel
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### 恢复官方源
 | 
			
		||||
### 恢复使用官方源
 | 
			
		||||
 | 
			
		||||
当你不小心删除了官方源的备份时可以使用此命令来恢复,使用此命令选项后将跳过选择软件源步骤
 | 
			
		||||
 | 
			
		||||
@@ -134,9 +138,9 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
  --branch-security debian-security
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### 指定 Debian 系操作系统的版本名称
 | 
			
		||||
### 指定 Debian 系 Linux 版本代号
 | 
			
		||||
 | 
			
		||||
你可以自定义该版本名称,大多数情况下用于升级系统版本,请看下面的例子
 | 
			
		||||
大多数情况下自定义版本代号用于升级系统版本,请看下面的例子
 | 
			
		||||
 | 
			
		||||
``` { .bash .no-copy title="升级 Debian 至最新 12 版本 Bookworm" }
 | 
			
		||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
 | 
			
		||||
 
 | 
			
		||||
@@ -3,39 +3,43 @@
 | 
			
		||||
 | 
			
		||||
!!! quote ""
 | 
			
		||||
 | 
			
		||||
    - 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包
 | 
			
		||||
    === "Debian 系"
 | 
			
		||||
 | 
			
		||||
        === "Debian 系 Linux"
 | 
			
		||||
        ``` sh
 | 
			
		||||
        apt-get install -y curl
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
            ``` sh
 | 
			
		||||
            apt-get install -y curl
 | 
			
		||||
            ```
 | 
			
		||||
        > `Debian`   `Ubuntu`   `Kali`   `Deepin`
 | 
			
		||||
 | 
			
		||||
            > `Debian`   `Ubuntu`   `Kali`   `Deepin`
 | 
			
		||||
        新装系统需要先执行一遍更新 `apt-get update`
 | 
			
		||||
 | 
			
		||||
            新装系统需要先执行一遍更新 `apt-get update`
 | 
			
		||||
    === "RedHat 系 / OpenCloudOS / openEuler"
 | 
			
		||||
 | 
			
		||||
        === "RedHat 系 Linux / OpenCloudOS / openEuler"
 | 
			
		||||
        ``` sh
 | 
			
		||||
        yum install -y curl || dnf install -y curl
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
            ``` sh
 | 
			
		||||
            yum install -y curl || dnf install -y curl
 | 
			
		||||
            ```
 | 
			
		||||
        > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `OpenCloudOS`   `openEuler`
 | 
			
		||||
 | 
			
		||||
            > `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `OpenCloudOS`   `openEuler`
 | 
			
		||||
        新装系统需要先执行一遍更新 `yum makecache`
 | 
			
		||||
 | 
			
		||||
            新装系统需要先执行一遍更新 `yum makecache`
 | 
			
		||||
    === "openSUSE"
 | 
			
		||||
 | 
			
		||||
        === "openSUSE"
 | 
			
		||||
        ``` sh
 | 
			
		||||
        zypper install curl
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
            ``` sh
 | 
			
		||||
            zypper install curl
 | 
			
		||||
            ```
 | 
			
		||||
    === "Arch Linux"
 | 
			
		||||
 | 
			
		||||
        === "Arch Linux"
 | 
			
		||||
        ``` sh
 | 
			
		||||
        pacman -S curl
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
            ``` sh
 | 
			
		||||
            pacman -S curl
 | 
			
		||||
            ```
 | 
			
		||||
    === "Alpine Linux"
 | 
			
		||||
 | 
			
		||||
        ``` sh
 | 
			
		||||
        apk --no-cache add -f curl bash
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
## 关于开启 SSH 远程登录的方法
 | 
			
		||||
 | 
			
		||||
@@ -70,7 +74,7 @@
 | 
			
		||||
 | 
			
		||||
!!! quote ""
 | 
			
		||||
 | 
			
		||||
    === "Debian 系 Linux"
 | 
			
		||||
    === "Debian 系"
 | 
			
		||||
 | 
			
		||||
        ``` sh
 | 
			
		||||
        cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list
 | 
			
		||||
@@ -79,7 +83,7 @@
 | 
			
		||||
 | 
			
		||||
        > `Debian`   `Ubuntu`   `Kali`   `Deepin`
 | 
			
		||||
 | 
			
		||||
    === "RedHat 系 Linux / OpenCloudOS / openEuler"
 | 
			
		||||
    === "RedHat 系 / OpenCloudOS / openEuler"
 | 
			
		||||
 | 
			
		||||
        ``` sh
 | 
			
		||||
        cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d
 | 
			
		||||
@@ -102,6 +106,13 @@
 | 
			
		||||
        pacman -Sy
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
    === "Alpine Linux"
 | 
			
		||||
 | 
			
		||||
        ``` sh
 | 
			
		||||
        cp -rvf /etc/apk/repositories.bak /etc/apk/repositories
 | 
			
		||||
        apk update -f
 | 
			
		||||
        ```
 | 
			
		||||
 | 
			
		||||
## 其它
 | 
			
		||||
 | 
			
		||||
!!! quote ""
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ hide:
 | 
			
		||||
    bash <(curl -sSL https://linuxmirrors.cn/main.sh)
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您正在使用的操作系统"
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您所使用的操作系统"
 | 
			
		||||
 | 
			
		||||
    ??? quote "原始执行命令"
 | 
			
		||||
 | 
			
		||||
@@ -37,7 +37,7 @@ hide:
 | 
			
		||||
 | 
			
		||||
    1.  通过 `--edu` 命令选项来使用中国大陆教育单位软件源
 | 
			
		||||
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您正在使用的操作系统"
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您所使用的操作系统"
 | 
			
		||||
 | 
			
		||||
    ??? quote "原始执行命令"
 | 
			
		||||
 | 
			
		||||
@@ -63,7 +63,7 @@ hide:
 | 
			
		||||
 | 
			
		||||
    1.  通过 `--abroad` 命令选项来使用海外软件源
 | 
			
		||||
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您正在使用的操作系统"
 | 
			
		||||
    !!! question "请在使用前检查目标镜像站是否支持您所使用的操作系统"
 | 
			
		||||
 | 
			
		||||
    ??? quote "原始执行命令"
 | 
			
		||||
 | 
			
		||||
@@ -109,13 +109,13 @@ hide:
 | 
			
		||||
 | 
			
		||||
遵循系统默认设置即没有启用的软件源不会在运行完本脚本后被启用,但是它们也随脚本更换了目标软件源地址,如果你有使用需求请阅读下面的启用方法
 | 
			
		||||
 | 
			
		||||
=== "Debian 系 Linux"
 | 
			
		||||
=== "Debian 系"
 | 
			
		||||
 | 
			
		||||
    默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释
 | 
			
		||||
 | 
			
		||||
    > `Debian`   `Ubuntu`   `Kali`   `Deepin`
 | 
			
		||||
 | 
			
		||||
=== "RedHat 系 Linux / OpenCloudOS / openEuler"
 | 
			
		||||
=== "RedHat 系 / OpenCloudOS / openEuler"
 | 
			
		||||
 | 
			
		||||
    部分仓库默认没有启用,若需启用请将 `/etc/yum.repos.d` 目录下相关 repo 文件中的 `enabled` 值修改为 `1`
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user