2023-05-03 22:50:12 +08:00
---
2025-01-04 19:20:15 +08:00
title: 一键脚本使换源更简单
2024-11-02 03:29:54 +08:00
description: GNU/Linux 更换系统软件源脚本及 Docker 安装脚本
2023-05-09 22:04:55 +08:00
comments: true
2024-02-04 00:39:49 +08:00
glightbox: false
2024-10-12 19:23:08 +08:00
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或提出建议请前往< a href = "/community" > 社区< / a >
2023-05-03 22:50:12 +08:00
hide:
- navigation
- toc
2023-05-09 22:04:55 +08:00
- feedback
- footer
2023-05-03 22:50:12 +08:00
---
2024-12-29 23:07:15 +08:00
< div class = "grid" markdown >
2025-01-04 21:12:25 +08:00
< figure style = "margin: 0 auto" markdown >
2024-02-04 00:39:49 +08:00
{ width="300" }
{ width="300" }
2024-07-25 10:21:28 +08:00
< figcaption > GNU/Linux 更换系统软件源脚本及 Docker 安装脚本< / figcaption >
2025-01-04 19:20:15 +08:00
< figcaption > 一键脚本使换源更简单< / figcaption >
2024-02-04 00:39:49 +08:00
< / figure >
2025-01-04 19:20:15 +08:00
< figure class = "home-cmd" style = "margin: 0; display: flex; flex-direction: column; justify-content: center" markdown >
2024-12-29 23:07:15 +08:00
=== "GNU/Linux"
``` { .bash title="一键命令" }
bash < (curl -sSL https://linuxmirrors.cn/main.sh)
```
=== "Docker"
``` { .bash title="一键命令" }
bash < (curl -sSL https://linuxmirrors.cn/docker.sh)
```
< / figure >
< / div >
2023-05-03 22:50:12 +08:00
2024-02-04 00:39:49 +08:00
< div class = "grid" markdown >
2023-12-30 00:07:34 +08:00
2024-02-04 00:39:49 +08:00
< div class = "grid cards" style = "height: fit-content" markdown >
2023-05-05 22:08:16 +08:00
2025-01-04 19:20:15 +08:00
- :material-thumb-up-outline:{ .lg .middle } __轻松使用__
---
只需要一行命令就能直接运行,无需安装任何依赖
文档提供了各种场景的解决方案, Linux 初学者也能轻松上手
2024-07-25 10:21:28 +08:00
- :material-source-branch:{ .lg .middle } __多元软件源适配__
2023-05-05 22:08:16 +08:00
2024-02-04 00:39:49 +08:00
---
2023-12-30 00:07:34 +08:00
2024-07-25 10:21:28 +08:00
深入考察了国内镜像站的系统适配情况, 测试了下载速度与IPv6兼容性
2024-12-29 23:07:15 +08:00
另外提供全网搜集的国内教育网镜像站和海外镜像站供用户选择
2023-12-30 00:07:34 +08:00
2024-07-25 10:21:28 +08:00
- :material-rocket-launch-outline:{ .lg .middle } __零技术门槛__
2023-12-30 00:07:34 +08:00
---
2025-01-04 19:20:15 +08:00
无需了解相关技术,文档提供了全面的知识储备和操作指引
2024-08-22 18:19:49 +08:00
文档还提供了一些常见问题的解决方法以及一些高级用法的示例
2024-02-04 15:57:20 +08:00
2024-07-25 10:21:28 +08:00
- :material-vector-polyline:{ .lg .middle } __广泛的系统支持__
2024-02-04 15:57:20 +08:00
---
2023-12-30 00:07:34 +08:00
2024-07-25 10:21:28 +08:00
适配众多操作系统,涵盖主流版本,精准识别系统类型及其版本
脚本兼容性较高,不支持的系统会有相应提示并无操作跳出
- :material-arm-flex-outline:{ .lg .middle } __脚本功能强大__
---
2024-07-31 21:30:10 +08:00
脚本使换源变得更简单,默认交互运行,逐步引导用户选择软件源配置
2025-01-04 19:20:15 +08:00
同时提供了强大的命令选项,可实现各种高级定制需求
2023-12-30 00:07:34 +08:00
2024-10-24 01:55:14 +08:00
- :material-pencil-ruler-outline:{ .lg .middle } __高度可定制__
---
脚本命令选项设计遵循正式应用程序规范,能够满足各种高级需求
代码结构清晰,易于阅读和修改,可克隆后根据需求自行定制
2024-02-04 15:57:20 +08:00
- :material-scale-balance:{ .lg .middle } __开源, MIT__
2023-12-30 00:07:34 +08:00
---
2024-07-25 10:21:28 +08:00
项目已设立开源许可协议,脚本代码完全开源且免费使用
请尊重作者的知识成果,传播时请在显著位置标注来源和作者
2023-12-30 00:07:34 +08:00
2024-10-24 20:00:48 +08:00
- :material-information-variant-box-outline:{ .lg .middle } __意见与建议__
2024-02-04 00:39:49 +08:00
---
2024-10-12 19:23:08 +08:00
如有适配请求或意见与建议请提交至 [Issues ](https://github.com/SuperManito/LinuxMirrors/issues ) 或直接在 [社区 ](./community/index.md ) 中参与讨论
2024-07-25 10:21:28 +08:00
若愿意贡献代码,请前往 GitHub 仓库提交 [Pull Requests ](https://github.com/SuperManito/LinuxMirrors/pulls )
2024-02-04 00:39:49 +08:00
2023-12-30 00:07:34 +08:00
< / div >
2024-11-02 03:29:54 +08:00
| 操作系统 | 适配版本 |
2024-02-04 00:39:49 +08:00
| --- | :---: |
2024-11-08 15:02:45 +08:00
| < a href = "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://cn.ubuntu.com" target = "_blank" >< img src = "/assets/images/icon/ubuntu.svg" width = "16" height = "16" style = "vertical-align: -0.1em" ></ a > Ubuntu :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如 < code > 优麒麟</ code > < code > Kubuntu</ code > 等< br /> 由于迭代速度较快并不直接支持所有非 LTS 的版本,具体详见使用文档中的高级用法" } | _14 ~ 24_ |
2024-11-02 03:29:54 +08:00
| < a href = "https://www.kali.org" target = "_blank" >< img src = "/assets/images/icon/kali-linux.svg" width = "16" height = "16" ></ a > Kali Linux | _all_ |
2024-11-08 15:02:45 +08:00
| < a href = "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_ |
2024-12-02 19:03:05 +08:00
| < a href = "https://www.deepin.org" target = "_blank" >< img src = "/assets/images/icon/deepin.png" width = "16" height = "16" style = "vertical-align: -0.25em" ></ a > Deepin( 深度) | _all_ |
2024-11-02 03:29:54 +08:00
| < a href = "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" target = "_blank" >< img src = "/assets/images/icon/armbian.png" width = "16" height = "16" style = "vertical-align: -0.2em" ></ a > Armbian | _all_ |
2025-03-06 13:20:29 +08:00
| < a href = "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_ |
2025-03-15 23:10:49 +08:00
| < a href = "https://www.raspberrypi.com" target = "_blank" >< img src = "/assets/images/icon/raspberry-pi.png" width = "16" height = "16" style = "vertical-align: -0.2em" ></ a > Raspberry Pi OS | _all_ |
2024-11-08 15:02:45 +08:00
| < 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.1em" ></ a > Red Hat Enterprise Linux :material-information-outline:{ title="使用 < code > CentOS Stream</ code > 或 < code > CentOS</ code > 源" } | _7 ~ 9_ |
2024-12-05 06:02:06 +08:00
| < 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 ~ 41_ |
2025-03-14 18:57:40 +08:00
| < a href = "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_ |
2024-11-02 03:29:54 +08:00
| < 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 | _8 ~ 9_ |
| < a href = "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 ~ 9_ |
2024-12-02 19:03:05 +08:00
| < a href = "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 ~ 24_ |
2024-12-06 00:13:13 +08:00
| < 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( 鸥栖) | _8.6 ~ 9 / Stream 23_ |
2024-12-02 19:03:05 +08:00
| < a href = "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_ |
2024-12-05 06:02:06 +08:00
| < a href = "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_ |
2024-11-02 03:29:54 +08:00
| < 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_ |
| < a href = "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_ |
2025-02-20 17:21:12 +08:00
| < a href = "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_ |
2024-01-17 17:14:51 +08:00
2024-02-04 00:39:49 +08:00
< / div >
2024-01-17 17:14:51 +08:00
2024-02-04 00:39:49 +08:00
[开 始 使 用 ](use/index.md ){ .md-button .md-button--primary } [查看软件源列表 ](mirrors/index.md ){ .md-button }
2025-01-04 19:20:15 +08:00
< div class = "md-nav__sponsor-bottom" style = "border-top: none; margin-top: 0" >
< div class = "sponsor-label" >
< strong > 赞助商< / strong >
< / div >
< div class = "sponsor-wrapper sponsor-flex-wrapper" >
2025-03-31 21:24:23 +08:00
< a class = "sponsor-item sponsor-flex-item" target = "_blank" href = "https://1panel.cn" title = "1Panel · 新一代的 Linux 服务器运维管理面板" >
2025-04-04 13:15:39 +08:00
< img src = "/assets/images/sponsor/1panel.png" alt = "1Panel" style = "width: 60%" / >
2025-03-31 21:24:23 +08:00
< / a >
2025-04-04 13:15:39 +08:00
< a class = "sponsor-item sponsor-flex-item" target = "_blank" href = "https://www.dkdun.cn/aff/VAWGETUL" title = "林枫云 · 专注独立IP高频VPS| R9/i9系列定制" >
2025-01-04 19:20:15 +08:00
< img src = "/assets/images/sponsor/linfengyun-light.png #only -light" alt = "林枫云" style = "width: 60%" />
< img src = "/assets/images/sponsor/linfengyun-dark.png #only -dark" alt = "林枫云" style = "width: 60%" />
< / a >
< a class = "sponsor-item sponsor-flex-item" target = "_blank" href = "https://arcadia.cool" title = "Arcadia 一站式代码运维平台" >
2025-04-04 13:15:39 +08:00
< img src = "/assets/images/sponsor/arcadia-light.png #only -light" alt = "Arcadia" style = "width: 60%" />
< img src = "/assets/images/sponsor/arcadia-dark.png #only -dark" alt = "Arcadia" style = "width: 60%" />
2025-01-04 19:20:15 +08:00
< / a >
< / div >
< / div >