mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2026-01-31 10:55:48 +08:00
优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2025-12-01
|
||||
## Modified: 2025-12-06
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -531,7 +531,7 @@ function collect_system_info() {
|
||||
if [ -s "${File_DebianVersion}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
|
||||
if [ -s "${File_kylinVersion}" ]; then
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "Kylin Desktop" "apt-get install -y docker\nsystemctl enable --now docker"
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "Kylin Desktop" "apt-get install -y docker\nsystemctl enable --now docker.io"
|
||||
fi
|
||||
elif [ -s "${File_RedHatRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
||||
@@ -671,16 +671,16 @@ function collect_system_info() {
|
||||
esac
|
||||
;;
|
||||
# "${SYSTEM_KYLIN_DESKTOP}")
|
||||
# SOURCE_BRANCH="debian"
|
||||
# SOURCE_BRANCH="ubuntu"
|
||||
# case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
# "v10")
|
||||
# SOURCE_BRANCH_CODENAME="bullseye"
|
||||
# SOURCE_BRANCH_CODENAME="focal"
|
||||
# ;;
|
||||
# "v11")
|
||||
# SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# *)
|
||||
# SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# esac
|
||||
# ;;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2025-12-01
|
||||
## Modified: 2025-12-06
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -356,7 +356,7 @@ function collect_system_info() {
|
||||
if [ -s "${File_DebianVersion}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
|
||||
if [ -s "${File_kylinVersion}" ]; then
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "Kylin Desktop" "apt-get install -y docker\nsystemctl enable --now docker"
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "Kylin Desktop" "apt-get install -y docker\nsystemctl enable --now docker.io"
|
||||
fi
|
||||
elif [ -s "${File_RedHatRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
||||
@@ -496,16 +496,16 @@ function collect_system_info() {
|
||||
esac
|
||||
;;
|
||||
# "${SYSTEM_KYLIN_DESKTOP}")
|
||||
# SOURCE_BRANCH="debian"
|
||||
# SOURCE_BRANCH="ubuntu"
|
||||
# case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
# "v10")
|
||||
# SOURCE_BRANCH_CODENAME="bullseye"
|
||||
# SOURCE_BRANCH_CODENAME="focal"
|
||||
# ;;
|
||||
# "v11")
|
||||
# SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# *)
|
||||
# SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# esac
|
||||
# ;;
|
||||
|
||||
@@ -733,7 +733,7 @@ Below are some advanced usage examples
|
||||
|
||||
!!! info "EOL means End Of Life. Non-LTS Ubuntu versions are supported for only 9 months. Old versions are removed from the main repo and may require using the `Ubuntu Old Releases` repo."
|
||||
|
||||
See the official [Wiki](https://wiki.ubuntu.com/Releases) for version support and check each mirror for `Ubuntu Old Releases` support.
|
||||
See the official [Wiki](https://documentation.ubuntu.com/project/release-team/list-of-releases/) for version support and check each mirror for `Ubuntu Old Releases` support.
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --en \
|
||||
|
||||
@@ -735,7 +735,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
|
||||
|
||||
!!! info "EOL 为生命周期结束的缩写(End Of Life),Ubuntu 迭代速度较快一般非LTS(长期支持)版本的生命周期只有9个月。官方会定期从主仓库移除不在生命周期内的版本仓库目录,届时可能就需要使用镜像站的 `Ubuntu Old Releases` 仓库"
|
||||
|
||||
具体版本支持情况详见官方 [Wiki](https://wiki.ubuntu.com/Releases),关于 `Ubuntu Old Releases` 仓库的支持情况详见各镜像站
|
||||
具体版本支持情况详见官方 [Wiki](https://documentation.ubuntu.com/project/release-team/list-of-releases/),关于 `Ubuntu Old Releases` 仓库的支持情况详见各镜像站
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
||||
|
||||
@@ -735,7 +735,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --help
|
||||
|
||||
!!! info "EOL 為生命週期結束的縮寫(End Of Life),Ubuntu 迭代速度較快一般非LTS(長期支持)版本的生命週期只有9個月。官方會定期從主倉庫移除不在生命週期內的版本倉庫目錄,屆時可能就需要使用鏡像站的 `Ubuntu Old Releases` 倉庫"
|
||||
|
||||
具體版本支援情況詳見官方 [Wiki](https://wiki.ubuntu.com/Releases),關於 `Ubuntu Old Releases` 倉庫的支援情況詳見各鏡像站
|
||||
具體版本支援情況詳見官方 [Wiki](https://documentation.ubuntu.com/project/release-team/list-of-releases/),關於 `Ubuntu Old Releases` 倉庫的支援情況詳見各鏡像站
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant \
|
||||
|
||||
Reference in New Issue
Block a user