diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 5d0dc74..4a45699 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -146,6 +146,7 @@ mirror_list_intranet=( SYSTEM_DEBIAN="Debian" SYSTEM_UBUNTU="Ubuntu" SYSTEM_KALI="Kali" +SYSTEM_DEEPIN="Deepin" SYSTEM_REDHAT="RedHat" SYSTEM_RHEL="Red Hat Enterprise Linux" SYSTEM_CENTOS="CentOS" @@ -370,7 +371,7 @@ function EnvJudgment() { fi fi ;; - "${SYSTEM_KALI}" | "${SYSTEM_ARCH}") + "${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_ARCH}") # 理论全部支持 ;; *) @@ -400,7 +401,7 @@ function EnvJudgment() { esac ## 定义软件源分支名称 if [[ -z "${SOURCE_BRANCH}" ]]; then - ## 默认 + ## 默认为系统名称小写 SOURCE_BRANCH="$(echo "${SYSTEM_JUDGMENT,,}" | sed "s/ /-/g")" ## 处理特殊 case "${SYSTEM_JUDGMENT}" in @@ -1082,7 +1083,7 @@ function RunEnd() { ## 更换基于 Debian 系 Linux 发行版的软件源 function DebianMirrors() { local source_suffix - local TIPS="## 默认禁用源码镜像以提高速度,如需启用请自行取消注释" + local tips="## 默认禁用源码镜像以提高速度,如需启用请自行取消注释" local basic_url="${WEB_PROTOCOL}://${SOURCE}/${SOURCE_BRANCH}" case "${SYSTEM_JUDGMENT}" in "${SYSTEM_DEBIAN}") @@ -1094,7 +1095,7 @@ function DebianMirrors() { source_suffix="main contrib non-free" ;; esac - echo "${TIPS} + echo "${tips} deb ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix} # deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix} deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-updates ${source_suffix} @@ -1117,7 +1118,7 @@ deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-backports ${source_suffix} ;; "${SYSTEM_UBUNTU}") source_suffix="main restricted universe multiverse" - echo "${TIPS} + echo "${tips} deb ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix} # deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix} deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-updates ${source_suffix} @@ -1133,10 +1134,16 @@ deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-security ${source_suffix} ;; "${SYSTEM_KALI}") source_suffix="main non-free contrib" - echo "${TIPS} + echo "${tips} deb ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix} # deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix}" >>$File_DebianSourceList ;; + "${SYSTEM_DEEPIN}") + source_suffix="apricot main contrib non-free" + echo "${tips} +deb ${basic_url} ${source_suffix} +# deb-src ${basic_url} ${source_suffix}" >>$File_DebianSourceList + ;; esac } diff --git a/README.md b/README.md index f69f0a1..94be904 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- Material for MkDocs +

@@ -27,6 +27,10 @@  Kali Linux 2.0 ~ 2023 + +  Deepin + all +  Red Hat Enterprise Linux 7.0 ~ 9 diff --git a/docs/assets/images/icon/deepin.svg b/docs/assets/images/icon/deepin.svg new file mode 100644 index 0000000..4fdeea5 --- /dev/null +++ b/docs/assets/images/icon/deepin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 5ad763b..721c439 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,7 +19,7 @@ GNU/Linux 一键更换系统软件源脚本 !!! example inline end "适配计划" 暂无计划适配更多系统或版本 - 如果你有需求那么请提交 [Issues](https://github.com/SuperManito/LinuxMirrors/issues) + 如果你有需求那么请提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues) @@ -34,6 +34,10 @@ GNU/Linux 一键更换系统软件源脚本 + + + + diff --git a/docs/mirrors/index.md b/docs/mirrors/index.md index ff43f83..9921bb2 100644 --- a/docs/mirrors/index.md +++ b/docs/mirrors/index.md @@ -8,23 +8,23 @@ hide: ## 中国大陆 :flag-CN: -| | 镜像站名称 | IPv6 | Kali | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS | -| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | -| 1 | [阿里云](https://mirrors.aliyun.com) | :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"} | -| 2 | [腾讯云](https://mirrors.tencent.com) | :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"} | -| 3 | [华为云](https://mirrors.huaweicloud.com) | :material-close:{style="color:#EF5350"} | :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"} | -| 4 | [网易](https://mirrors.163.com) | :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-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | -| 5 | [搜狐](https://mirrors.sohu.com) | :material-close:{style="color:#EF5350"} | :material-close:{style="color:#EF5350"} | :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"} | -| 6 | [清华大学](https://mirrors.tuna.tsinghua.edu.cn) | :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"} | -| 7 | [北京大学](https://mirrors.pku.edu.cn/Mirrors) | :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-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | -| 8 | [浙江大学](https://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-close:{style="color:#EF5350"} | -| 9 | [南京大学](https://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-close:{style="color:#EF5350"} | -| 10 | [重庆大学](https://mirrors.cqu.edu.cn) | :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"} | -| 11 | [兰州大学](https://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-close:{style="color:#EF5350"} | -| 12 | [上海交通大学](https://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"} | -| 13 | [哈尔滨工业大学](https://mirrors.hit.edu.cn) | :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"} | -| 14 | [中国科学技术大学](https://mirrors.ustc.edu.cn) | :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"} | -| 15 | [中国科学院软件研究所](https://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-close:{style="color:#EF5350"} | +| | 镜像站名称 | IPv6 | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS | +| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | +| 1 | [阿里云](https://mirrors.aliyun.com) | :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"} | +| 2 | [腾讯云](https://mirrors.tencent.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-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | +| 3 | [华为云](https://mirrors.huaweicloud.com) | :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"} | +| 4 | [网易](https://mirrors.163.com) | :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"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | +| 5 | [搜狐](https://mirrors.sohu.com) | :material-close:{style="color:#EF5350"} | :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"} | +| 6 | [清华大学](https://mirrors.tuna.tsinghua.edu.cn) | :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"} | +| 7 | [北京大学](https://mirrors.pku.edu.cn/Mirrors) | :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"} | +| 8 | [浙江大学](https://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-close:{style="color:#EF5350"} | +| 9 | [南京大学](https://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-close:{style="color:#EF5350"} | +| 10 | [重庆大学](https://mirrors.cqu.edu.cn) | :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"} | +| 11 | [兰州大学](https://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-close:{style="color:#EF5350"} | +| 12 | [上海交通大学](https://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"} | +| 13 | [哈尔滨工业大学](https://mirrors.hit.edu.cn) | :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"} | +| 14 | [中国科学技术大学](https://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-close:{style="color:#EF5350"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-check:{style="color:#4DB6AC"} | :material-close:{style="color:#EF5350"} | +| 15 | [中国科学院软件研究所](https://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-close:{style="color:#EF5350"} | ???+ question "使用帮助" diff --git a/docs/other/index.md b/docs/other/index.md index a3e6142..ee9c1b8 100644 --- a/docs/other/index.md +++ b/docs/other/index.md @@ -81,7 +81,7 @@ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) apt-get remove -y docker* containerd.io runc && apt-get autoremove ``` - > `Debian`   `Ubuntu`   `Kali` + > `Debian`   `Ubuntu`   `Kali`   `Deepin` === "RedHat 系 Linux / OpenCloudOS / openEuler" diff --git a/docs/use/command-options.md b/docs/use/command-options.md index 45cc316..ba5c050 100644 --- a/docs/use/command-options.md +++ b/docs/use/command-options.md @@ -53,6 +53,10 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \ + + + + diff --git a/docs/use/help.md b/docs/use/help.md index 0a05cef..22db096 100644 --- a/docs/use/help.md +++ b/docs/use/help.md @@ -41,7 +41,7 @@ apt-get install -y curl ``` - > `Debian`   `Ubuntu`   `Kali` + > `Debian`   `Ubuntu`   `Kali`   `Deepin` === "RedHat 系 Linux / OpenCloudOS / openEuler" @@ -74,7 +74,7 @@ apt-get update ``` - > `Debian`   `Ubuntu`   `Kali` + > `Debian`   `Ubuntu`   `Kali`   `Deepin` === "RedHat 系 Linux / OpenCloudOS / openEuler" @@ -103,4 +103,4 @@ !!! quote "" - - 如果提示 `bash: /proc/self/fd/11: No such file or directory`,请切换至 `Root` 用户执行,切换命令为 `su root` + - 如果提示 `bash: /proc/self/fd/11: No such file or directory`,请切换至 `Root` 用户执行,切换命令为 `sudo -i` 或 `su root` diff --git a/docs/use/index.md b/docs/use/index.md index e8c8e8e..dd96f3d 100644 --- a/docs/use/index.md +++ b/docs/use/index.md @@ -33,7 +33,7 @@ hide: bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)! ``` - 1. 通过 `--edu` 命令选项来使用中国教育单位软件源 + 1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源 ??? quote "原始执行脚本方法" @@ -75,7 +75,7 @@ hide: :material-numeric-1:{style="color: #3CA7E5"} 需使用 `Root` 用户执行脚本 -: 切换命令为 `sudo -i` 或 `su root`,不同系统环境使用的命令不一样,因为有些系统没有在初始安装时为 Root 用户设置固定密码所以需要使用 `sudo` 指令来提权 +: 切换命令为 `sudo -i` 或 `su root`,不同系统环境使用的命令不一样,因为有些系统没有在初始安装时为 Root 用户设置固定密码(例如Ubuntu)所以需要使用 `sudo` 指令来提权 :material-numeric-2:{style="color: #3CA7E5"} 建议使用 `SSH` 远程工具 diff --git a/docs/use/not-enabled.md b/docs/use/not-enabled.md index 57097cc..73d71e4 100644 --- a/docs/use/not-enabled.md +++ b/docs/use/not-enabled.md @@ -4,7 +4,7 @@ 默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释 - > `Debian`   `Ubuntu`   `Kali` + > `Debian`   `Ubuntu`   `Kali`   `Deepin` === "RedHat 系 Linux / OpenCloudOS / openEuler"
 Kali Linux 2.0 ~ 2023
 Deepinall
 Red Hat Enterprise Linux 7.0 ~ 9 Kali Linux kali
 Deepindeepin
 Red Hat Enterprise Linux centos/rocky