Compare commits
16 Commits
c84ed20dfa
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57753a4bc2 | ||
|
|
8c113a955a | ||
|
|
78baade68f | ||
|
|
7667285f90 | ||
|
|
a2126b3aad | ||
|
|
02a8949ac6 | ||
|
|
de858b4847 | ||
|
|
c5c3efd80e | ||
|
|
f12b8405e2 | ||
|
|
1fd4d534a1 | ||
|
|
d54b57b440 | ||
|
|
ec62d43851 | ||
|
|
1dfd50d406 | ||
|
|
487a2a3388 | ||
|
|
fec7c28054 | ||
|
|
1ddf1fb708 |
1
.github/workflows/build-docs.yml
vendored
@@ -28,4 +28,5 @@ jobs:
|
||||
- run: pip install -r ./requirements.txt
|
||||
- run: cp -rvf ./ChangeMirrors.sh ./docs/main.sh
|
||||
- run: cp -rvf ./DockerInstallation.sh ./docs/docker.sh
|
||||
- run: cp -rvf ./DockerInstallationLite.sh ./docs/docker-lite.sh
|
||||
- run: mkdocs gh-deploy --force
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2025-11-02
|
||||
|
||||
* Adapted for Kylin Server to docker script [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
2025-10-12
|
||||
|
||||
* Added support for I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2025-11-02
|
||||
|
||||
* Docker 脚本新增适配 Kylin Server 操作系统 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
2025-10-12
|
||||
|
||||
* 新增适配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2025-11-02
|
||||
|
||||
* Docker 腳本新增適配 Kylin Server 作業系統 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
2025-10-12
|
||||
|
||||
* 新增適配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
592
ChangeMirrors.sh
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2025-11-01
|
||||
## Modified: 2025-12-01
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -171,7 +171,8 @@ SPONSOR_ADS=(
|
||||
"速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ \033[3mhttps://www.sutuoyun.com\033[0m"
|
||||
"语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m"
|
||||
"不二云 · 国内外建站快响应服务器的不二之选 ➜ \033[3mhttps://cb2.cn\033[0m"
|
||||
"HKGserver · 全球家宽|双ISP|住宅原生云服务器54元/月起 ➜ \033[3mhttps://www.hkgserver.com\033[0m"
|
||||
"CN2network · 超低价优质机器免实名自动开通 ➜ \033[3mhttps://idc.cn2network.com\033[0m"
|
||||
"破碎工坊云 · 专注高性能国内外云服务器 ➜ \033[3mhttps://www.crash.work\033[0m"
|
||||
"浪浪云 · BGP网络让每一次连接都纵享丝滑,明码标价、无套路续费 ➜ \033[3mhttps://langlangy.cn\033[0m"
|
||||
)
|
||||
|
||||
@@ -198,6 +199,8 @@ SYSTEM_OPENCLOUDOS_STREAM="OpenCloudOS Stream"
|
||||
SYSTEM_TENCENTOS="TencentOS"
|
||||
SYSTEM_OPENEULER="openEuler"
|
||||
SYSTEM_ANOLISOS="Anolis"
|
||||
SYSTEM_KYLIN_DESKTOP="Kylin Desktop"
|
||||
SYSTEM_KYLIN_SERVER="Kylin Server"
|
||||
SYSTEM_OPENKYLIN="openKylin"
|
||||
SYSTEM_OPENSUSE="openSUSE"
|
||||
SYSTEM_ARCH="Arch"
|
||||
@@ -223,7 +226,8 @@ File_ArchLinuxRelease=/etc/arch-release
|
||||
File_ManjaroRelease=/etc/manjaro-release
|
||||
File_AlpineRelease=/etc/alpine-release
|
||||
File_GentooRelease=/etc/gentoo-release
|
||||
File_openKylinVersion=/etc/kylin-version/kylin-system-version.conf
|
||||
File_KylinRelease=/etc/kylin-release
|
||||
File_kylinVersion=/etc/kylin-version/kylin-system-version.conf
|
||||
File_ProxmoxVersion=/etc/pve/.version
|
||||
|
||||
## 定义软件源相关文件或目录
|
||||
@@ -272,10 +276,10 @@ PLAIN='\033[0m'
|
||||
BOLD='\033[1m'
|
||||
SUCCESS="\033[1;32m✔${PLAIN}"
|
||||
COMPLETE="\033[1;32m✔${PLAIN}"
|
||||
WARN="\033[1;43m 警告 ${PLAIN}"
|
||||
WARN="\033[1;43m WARN ${PLAIN}"
|
||||
ERROR="\033[1;31m✘${PLAIN}"
|
||||
FAIL="\033[1;31m✘${PLAIN}"
|
||||
TIP="\033[1;44m 提示 ${PLAIN}"
|
||||
TIP="\033[1;44m TIP ${PLAIN}"
|
||||
WORKING="\033[1;36m◉${PLAIN}"
|
||||
|
||||
function main() {
|
||||
@@ -727,7 +731,11 @@ function command_exists() {
|
||||
|
||||
function permission_judgment() {
|
||||
if [ $UID -ne 0 ]; then
|
||||
output_error "$(msg "error.needRoot")"
|
||||
local change_cmd="su root"
|
||||
if command_exists sudo; then
|
||||
change_cmd="sudo -i"
|
||||
fi
|
||||
output_error "$(msg "error.needRoot" "${BLUE}${change_cmd}${PLAIN}")"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -744,7 +752,7 @@ function collect_system_info() {
|
||||
SYSTEM_PRETTY_NAME="$(get_os_release_value PRETTY_NAME)"
|
||||
## 定义系统版本号
|
||||
SYSTEM_VERSION_ID="$(get_os_release_value VERSION_ID)"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%.*}"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%%.*}"
|
||||
SYSTEM_VERSION_ID_MINOR="${SYSTEM_VERSION_ID#*.}"
|
||||
## 定义系统ID
|
||||
SYSTEM_ID="$(get_os_release_value ID)"
|
||||
@@ -759,7 +767,7 @@ function collect_system_info() {
|
||||
SYSTEM_FACTIONS="${SYSTEM_OPENCLOUDOS}" # 自 9.0 版本起不再基于红帽
|
||||
elif [ -s "${File_AnolisOSRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_ANOLISOS}" # 自 8.8 版本起不再基于红帽
|
||||
elif [ -s "${File_openKylinVersion}" ]; then
|
||||
elif [ -s "${File_kylinVersion}" ] && [[ "${SYSTEM_ID}" == *"openkylin"* ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_OPENKYLIN}"
|
||||
elif [ -f "${File_ArchLinuxRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_ARCH}"
|
||||
@@ -800,7 +808,7 @@ function collect_system_info() {
|
||||
## 尚未正式发布的版本
|
||||
if [[ -z "${SYSTEM_VERSION_ID}" && "${SYSTEM_VERSION_CODENAME}" == "trixie" ]]; then
|
||||
SYSTEM_VERSION_ID="13"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%.*}"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%%.*}"
|
||||
SYSTEM_VERSION_ID_MINOR="${SYSTEM_VERSION_ID#*.}"
|
||||
fi
|
||||
## 是否使用 DEB822 格式
|
||||
@@ -840,11 +848,9 @@ function collect_system_info() {
|
||||
local is_supported="true"
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" =~ ^[0-9]{1,2}$ ]]; then
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -lt 8 || "${SYSTEM_VERSION_ID_MAJOR}" -gt 13 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^(1[0-3]|[8-9])$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
fi
|
||||
if [[ "${SYSTEM_VERSION_CODENAME}" == "sid" ]]; then
|
||||
if [[ "${PURE_MODE}" != "true" ]]; then
|
||||
echo -e "\n${WARN} $(msg "warn.unstableDebian" "${BLUE}unstable(sid)${PLAIN}")\n"
|
||||
@@ -852,17 +858,23 @@ function collect_system_info() {
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_UBUNTU}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -lt 14 || "${SYSTEM_VERSION_ID_MAJOR}" -gt 25 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^(1[4-9]|2[0-5])$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_LINUX_MINT}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != 19 && "${SYSTEM_VERSION_ID_MAJOR}" != 2[0-2] && "${SYSTEM_VERSION_ID_MAJOR}" != 6 ]]; then
|
||||
if [[ "${SYSTEM_NAME}" == *"LMDE"* ]]; then
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != [6-7] ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
else
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^(19|2[0-2])$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_RHEL}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != [7-9] && "${SYSTEM_VERSION_ID_MAJOR}" != 10 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^([7-9]|10)$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
;;
|
||||
@@ -872,7 +884,7 @@ function collect_system_info() {
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_CENTOS_STREAM}" | "${SYSTEM_ROCKY}" | "${SYSTEM_ALMALINUX}" | "${SYSTEM_ORACLE}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != [8-9] && "${SYSTEM_VERSION_ID_MAJOR}" != 10 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^([8-9]|10)$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
;;
|
||||
@@ -887,12 +899,12 @@ function collect_system_info() {
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_OPENCLOUDOS}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != [8-9] && "${SYSTEM_VERSION_ID_MAJOR}" != 23 ]] || [[ "${SYSTEM_VERSION_ID_MAJOR}" == 8 && "${SYSTEM_VERSION_ID_MINOR}" -lt 6 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^([8-9]|23)$ ]] || [[ "${SYSTEM_VERSION_ID_MAJOR}" == 8 && "${SYSTEM_VERSION_ID_MINOR}" -lt 6 ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_ANOLISOS}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" != 8 && "${SYSTEM_VERSION_ID_MAJOR}" != 23 ]]; then
|
||||
if [[ ! "${SYSTEM_VERSION_ID_MAJOR}" =~ ^(8|23)$ ]]; then
|
||||
is_supported="false"
|
||||
fi
|
||||
;;
|
||||
@@ -956,7 +968,7 @@ function collect_system_info() {
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
8 | 9 | 10)
|
||||
8 | 9 | 10 | 11)
|
||||
SOURCE_BRANCH="debian-archive/debian"
|
||||
;;
|
||||
*)
|
||||
@@ -2049,17 +2061,21 @@ function upgrade_software() {
|
||||
|
||||
## 更换基于 Debian 系 Linux 发行版的软件源
|
||||
function change_mirrors_Debian() {
|
||||
local source_file=$File_AptSourceList
|
||||
local source_content=""
|
||||
local deb_src_disabled_tips="## $(msg "source.comment.disabledSourceCode")"
|
||||
|
||||
function write_source_file() {
|
||||
if [[ -n "${source_content}" ]]; then
|
||||
echo "${source_content}" >>$source_file
|
||||
local apt_source_file=$File_AptSourceList
|
||||
local apt_source_content=""
|
||||
function write_apt_source() {
|
||||
if [[ -n "${apt_source_content}" ]]; then
|
||||
echo "${apt_source_content}" >>$apt_source_file
|
||||
fi
|
||||
source_content=""
|
||||
apt_source_content="" # 重置内容
|
||||
}
|
||||
|
||||
## 注释的提示语句
|
||||
local deb_src_disabled_tips="## $(msg "source.comment.disabledSourceCode")"
|
||||
local security_source_tips="## $(msg "source.comment.securitySource")"
|
||||
local proposed_source_tips="## $(msg "source.comment.proposedSource")"
|
||||
|
||||
## one-line 格式模板
|
||||
function _template_deb() {
|
||||
echo "${1} ${WEB_PROTOCOL}://${2}/ ${3} ${4}"
|
||||
}
|
||||
@@ -2076,7 +2092,12 @@ $(_template_deb "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||
function gen_deb_unsrc_disabled() {
|
||||
echo "$(gen_deb_unsrc "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||
}
|
||||
function gen_deb_security() {
|
||||
echo "${security_source_tips}
|
||||
$(gen_deb "${1}" "${2}-security" "${3}")"
|
||||
}
|
||||
|
||||
## DEB822 格式模板
|
||||
function _template_deb822() {
|
||||
echo "Types: ${1}
|
||||
URIs: ${WEB_PROTOCOL}://${2}/
|
||||
@@ -2087,70 +2108,167 @@ Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
|
||||
function gen_deb822() {
|
||||
echo "$(_template_deb822 "deb" "${1}" "${2}" "${3}")
|
||||
|
||||
${deb_src_disabled_tips}
|
||||
$(_template_deb822 "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||
}
|
||||
function gen_deb822_disabled() {
|
||||
echo "$(_template_deb822 "deb" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")
|
||||
|
||||
${deb_src_disabled_tips}
|
||||
$(_template_deb822 "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||
}
|
||||
function gen_deb_security() {
|
||||
echo "## $(msg "source.comment.securitySource")
|
||||
$(gen_deb "${1}" "${2}-security" "${3}")"
|
||||
}
|
||||
function gen_deb822_security() {
|
||||
echo "## $(msg "source.comment.securitySource")
|
||||
echo "${security_source_tips}
|
||||
$(gen_deb822 "${1}" "${2}-security" "${3}")"
|
||||
}
|
||||
|
||||
## 针对特定系统生成软件源
|
||||
function gen_debian_deb() {
|
||||
## 获取 Debian 软件源相关信息
|
||||
function _template_get_debian_info() {
|
||||
local data1="${1}"
|
||||
local data2="${2}"
|
||||
local mode="${3:-main}"
|
||||
local codename="${4}"
|
||||
local result="${data2}"
|
||||
case "${mode}" in
|
||||
"security")
|
||||
local -a majors=(8 9 10)
|
||||
local -a codenames=("jessie" "stretch" "buster")
|
||||
;;
|
||||
*)
|
||||
local -a majors=(8 9 10 11)
|
||||
local -a codenames=("jessie" "stretch" "buster" "bullseye")
|
||||
;;
|
||||
esac
|
||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_DEBIAN}" ]]; then
|
||||
for version in "${majors[@]}"; do
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" == "${version}" ]]; then
|
||||
result="${data1}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
else
|
||||
for name in "${codenames[@]}"; do
|
||||
if [[ "${codename}" == "${name}" ]]; then
|
||||
result="${data1}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
echo "${result}"
|
||||
}
|
||||
function get_debian_official_source() {
|
||||
# 注:使用官方源时仓库分支固定为 debian,应同此方法一起使用
|
||||
_template_get_debian_info "archive.debian.org" "deb.debian.org" "main" "${1}"
|
||||
}
|
||||
function get_debian_source_branch() {
|
||||
_template_get_debian_info "debian-archive/debian" "debian" "main" "${1}"
|
||||
}
|
||||
function get_debian_repo_components() {
|
||||
_template_get_debian_info "main contrib non-free" "main contrib non-free non-free-firmware" "main" "${1}"
|
||||
}
|
||||
function get_debian_official_source_security_host() {
|
||||
# 注:使用官方源时仓库分支固定为 debian-security,应同此方法一起使用
|
||||
_template_get_debian_info "archive.debian.org" "security.debian.org" "security" "${1}"
|
||||
}
|
||||
function get_debian_source_security_branch() {
|
||||
_template_get_debian_info "debian-archive/debian-security" "debian-security" "security" "${1}"
|
||||
}
|
||||
|
||||
## Debian 软件源模板
|
||||
# debian-backports: https://ftp.debian.org/debian/dists
|
||||
# debian-security: https://security.debian.org/debian-security/dists
|
||||
function _template_gen_debian_source() {
|
||||
local mode="${4:-main}"
|
||||
local type="${5:-deb}"
|
||||
local result=""
|
||||
|
||||
case "${mode}" in
|
||||
"security")
|
||||
case "${2}" in
|
||||
forky | trixie | bookworm | stable | oldstable | testing)
|
||||
echo "$(gen_deb "${1}" "${2}" "${3}")
|
||||
"forky" | "trixie" | "bookworm" | "bullseye" | "oldoldstable" | "oldstable" | "stable" | "testing")
|
||||
if [[ "${type}" == "deb822" ]]; then
|
||||
result="$(gen_deb822_security "${1}" "${2}" "${3}")"
|
||||
else
|
||||
result="$(gen_deb_security "${1}" "${2}" "${3}")"
|
||||
fi
|
||||
;;
|
||||
"jessie" | "stretch" | "buster")
|
||||
if [[ "${type}" == "deb822" ]]; then
|
||||
result="${security_source_tips}
|
||||
$(gen_deb822 "${1}" "${2}" "${3}")"
|
||||
else
|
||||
result="${security_source_tips}
|
||||
$(gen_deb "${1}" "${2}" "${3}")"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
result=""
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
*)
|
||||
case "${2}" in
|
||||
"forky" | "trixie" | "bookworm" | "stable" | "oldstable" | "testing")
|
||||
if [[ "${type}" == "deb822" ]]; then
|
||||
result="${deb_src_disabled_tips}
|
||||
$(gen_deb822 "${1}" "${2} ${2}-updates ${2}-backports" "${3}")"
|
||||
else
|
||||
result="$(gen_deb "${1}" "${2}" "${3}")
|
||||
$(gen_deb "${1}" "${2}-updates" "${3}")
|
||||
$(gen_deb "${1}" "${2}-backports" "${3}")"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "$(gen_deb "${1}" "${2}" "${3}")
|
||||
if [[ "${type}" == "deb822" ]]; then
|
||||
result="${deb_src_disabled_tips}
|
||||
$(gen_deb822 "${1}" "${2} ${2}-updates" "${3}")"
|
||||
else
|
||||
result="$(gen_deb "${1}" "${2}" "${3}")
|
||||
$(gen_deb "${1}" "${2}-updates" "${3}")"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
echo "${result}"
|
||||
}
|
||||
function gen_debian_deb() {
|
||||
_template_gen_debian_source "${1}" "${2}" "${3}" "main" "deb"
|
||||
}
|
||||
function gen_debian_deb_security() {
|
||||
_template_gen_debian_source "${1}" "${2}" "${3}" "security" "deb"
|
||||
}
|
||||
function gen_debian_deb822() {
|
||||
case "${2}" in
|
||||
forky | trixie | bookworm | stable | oldstable | testing)
|
||||
echo "$(gen_deb822 "${1}" "${2} ${2}-updates ${2}-backports" "${3}")"
|
||||
;;
|
||||
*)
|
||||
echo "$(gen_deb822 "${1}" "${2} ${2}-updates" "${3}")"
|
||||
;;
|
||||
esac
|
||||
_template_gen_debian_source "${1}" "${2}" "${3}" "main" "deb822"
|
||||
}
|
||||
function gen_debian_deb822_security() {
|
||||
_template_gen_debian_source "${1}" "${2}" "${3}" "security" "deb822"
|
||||
}
|
||||
|
||||
## Ubuntu 软件源模板
|
||||
function gen_ubuntu_deb() {
|
||||
echo "$(gen_deb "${1}" "${2}" "${3}")
|
||||
$(gen_deb "${1}" "${2}-updates" "${3}")
|
||||
$(gen_deb "${1}" "${2}-backports" "${3}")
|
||||
## $(msg "source.comment.proposedSource")
|
||||
${proposed_source_tips}
|
||||
$(gen_deb_disabled "${1}" "${2}-proposed" "${3}")"
|
||||
}
|
||||
function gen_ubuntu_deb822() {
|
||||
echo "$(gen_deb822 "${1}" "${2} ${2}-updates ${2}-backports" "${3}")
|
||||
echo "${deb_src_disabled_tips}
|
||||
$(gen_deb822 "${1}" "${2} ${2}-updates ${2}-backports" "${3}")
|
||||
|
||||
## $(msg "source.comment.proposedSource")
|
||||
${proposed_source_tips}
|
||||
$(gen_deb822_disabled "${1}" "${2}-proposed" "${3}")"
|
||||
}
|
||||
|
||||
## 使用官方源
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
SOURCE="deb.debian.org"
|
||||
;;
|
||||
"${SYSTEM_UBUNTU}" | "${SYSTEM_ZORIN}")
|
||||
if [[ "${DEVICE_ARCH_RAW}" == "x86_64" || "${DEVICE_ARCH_RAW}" == *i?86* ]]; then
|
||||
SOURCE="archive.ubuntu.com"
|
||||
else
|
||||
SOURCE="ports.ubuntu.com"
|
||||
fi
|
||||
;;
|
||||
"${SYSTEM_KALI}")
|
||||
SOURCE="http.kali.org"
|
||||
@@ -2158,215 +2276,264 @@ $(gen_deb822_disabled "${1}" "${2}-proposed" "${3}")"
|
||||
"${SYSTEM_DEEPIN}")
|
||||
SOURCE="community-packages.deepin.com"
|
||||
;;
|
||||
"${SYSTEM_LINUX_MINT}")
|
||||
SOURCE="packages.linuxmint.com"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
local repository_sections # 仓库区域
|
||||
local source_host="${SOURCE}/${SOURCE_BRANCH}"
|
||||
local source_security_host=""
|
||||
# 注:SOURCE_<XXX> SOURCE_<XXX>_BRANCH 系列变量默认为空值,仅在自定义(使用相关命令选项)时提供,需注意逻辑顺序
|
||||
local repo_components="" # 软件源仓库区域
|
||||
local source_address="${SOURCE}/${SOURCE_BRANCH}" # 软件源地址
|
||||
|
||||
local source_security_host="${SOURCE}"
|
||||
local source_security_branch="${SOURCE_BRANCH}"
|
||||
local source_security_address=""
|
||||
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
case "${SYSTEM_VERSION_ID}" in
|
||||
8 | 9 | 10 | 11)
|
||||
repository_sections="main contrib non-free"
|
||||
;;
|
||||
*)
|
||||
repository_sections="main contrib non-free non-free-firmware"
|
||||
;;
|
||||
esac
|
||||
source_security_host="${SOURCE_SECURITY:-"${SOURCE}"}/${SOURCE_SECURITY_BRANCH:-"${SOURCE_BRANCH}-security"}"
|
||||
repo_components="$(get_debian_repo_components "${SYSTEM_VERSION_CODENAME}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="$(get_debian_official_source "${SYSTEM_VERSION_CODENAME}")"
|
||||
SOURCE_BRANCH="debian"
|
||||
source_address="${SOURCE}/${SOURCE_BRANCH}"
|
||||
fi
|
||||
# 安全更新源
|
||||
source_security_branch="$(get_debian_source_security_branch "${SYSTEM_VERSION_CODENAME}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
source_security_host="$(get_debian_official_source_security_host "${SYSTEM_VERSION_CODENAME}")"
|
||||
source_security_branch="debian-security"
|
||||
fi
|
||||
source_security_address="${SOURCE_SECURITY:-${source_security_host}}/${SOURCE_SECURITY_BRANCH:-${source_security_branch}}"
|
||||
## DEB822 / one-line
|
||||
if [[ "${USE_DEB822_FORMAT}" == "true" ]]; then
|
||||
source_file="${File_DebianSources}"
|
||||
apt_source_file="${File_DebianSources}"
|
||||
if [[ "${SYSTEM_VERSION_CODENAME}" != "sid" ]]; then
|
||||
source_content="$(gen_debian_deb822 "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")
|
||||
apt_source_content="$(gen_debian_deb822 "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")
|
||||
|
||||
$(gen_deb822_security "${source_security_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
$(gen_debian_deb822_security "${source_security_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
else
|
||||
source_content="$(gen_debian_deb822 "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
apt_source_content="$(gen_debian_deb822 "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
fi
|
||||
else
|
||||
source_file="${File_AptSourceList}"
|
||||
apt_source_file="${File_AptSourceList}"
|
||||
if [[ "${SYSTEM_VERSION_CODENAME}" != "sid" ]]; then
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_debian_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")
|
||||
$(gen_deb_security "${source_security_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_debian_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")
|
||||
$(gen_debian_deb_security "${source_security_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
else
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
fi
|
||||
fi
|
||||
write_source_file
|
||||
write_apt_source
|
||||
;;
|
||||
|
||||
"${SYSTEM_UBUNTU}" | "${SYSTEM_ZORIN}")
|
||||
repository_sections="main restricted universe multiverse"
|
||||
source_security_host="${SOURCE_SECURITY:-${SOURCE}}/${SOURCE_BRANCH}"
|
||||
if [[ "${USE_DEB822_FORMAT}" == "true" ]]; then
|
||||
source_file="${File_UbuntuSources}"
|
||||
source_content="$(gen_ubuntu_deb822 "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")
|
||||
|
||||
$(gen_deb822_security "${source_security_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
repo_components="main restricted universe multiverse"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
if [[ "${DEVICE_ARCH_RAW}" == "x86_64" || "${DEVICE_ARCH_RAW}" == *i?86* ]]; then
|
||||
SOURCE="archive.ubuntu.com"
|
||||
SOURCE_BRANCH="ubuntu"
|
||||
source_address="${SOURCE}/${SOURCE_BRANCH}"
|
||||
else
|
||||
source_file="${File_AptSourceList}"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_ubuntu_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")
|
||||
$(gen_deb_security "${source_security_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
SOURCE="ports.ubuntu.com"
|
||||
SOURCE_BRANCH="" # 官方源默认无分支(注:有 ubuntu-ports 重定向)
|
||||
source_address="${SOURCE}"
|
||||
fi
|
||||
write_source_file
|
||||
fi
|
||||
# 安全更新源
|
||||
source_security_address="${SOURCE_SECURITY:-${source_security_host}}/${SOURCE_SECURITY_BRANCH:-${source_security_branch}}"
|
||||
## DEB822 / one-line
|
||||
if [[ "${USE_DEB822_FORMAT}" == "true" ]]; then
|
||||
apt_source_file="${File_UbuntuSources}"
|
||||
apt_source_content="$(gen_ubuntu_deb822 "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")
|
||||
|
||||
$(gen_deb822_security "${source_security_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
else
|
||||
apt_source_file="${File_AptSourceList}"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_ubuntu_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")
|
||||
$(gen_deb_security "${source_security_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
fi
|
||||
write_apt_source
|
||||
;;
|
||||
|
||||
"${SYSTEM_KALI}")
|
||||
repository_sections="main contrib non-free non-free-firmware"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
write_source_file
|
||||
repo_components="main contrib non-free non-free-firmware"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="http.kali.org"
|
||||
SOURCE_BRANCH="" # 官方源无分支
|
||||
source_address="${SOURCE}"
|
||||
fi
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
write_apt_source
|
||||
;;
|
||||
|
||||
"${SYSTEM_DEEPIN}")
|
||||
if [[ "${SYSTEM_VERSION_ID_MAJOR}" == "25" ]]; then
|
||||
repository_sections="main commercial community"
|
||||
repo_components="main commercial community"
|
||||
else
|
||||
repository_sections="main contrib non-free"
|
||||
repo_components="main contrib non-free"
|
||||
fi
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
write_source_file
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="community-packages.deepin.com"
|
||||
SOURCE_BRANCH="deepin"
|
||||
source_address="${SOURCE}/${SOURCE_BRANCH}"
|
||||
fi
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
write_apt_source
|
||||
;;
|
||||
|
||||
"${SYSTEM_LINUX_MINT}")
|
||||
## 专用源
|
||||
repository_sections="main upstream import backport"
|
||||
source_file="${File_LinuxMintSourceList}"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb_unsrc "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")
|
||||
"
|
||||
write_source_file
|
||||
## 底层系统软件源
|
||||
# 专用源
|
||||
repo_components="main upstream import backport"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="packages.linuxmint.com"
|
||||
SOURCE_BRANCH="" # 官方源无分支
|
||||
source_address="${SOURCE}"
|
||||
fi
|
||||
apt_source_file="${File_LinuxMintSourceList}"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb_unsrc "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")
|
||||
" # 注:此处空行用于隔开两种软件源内容
|
||||
write_apt_source
|
||||
|
||||
# 底层系统软件源
|
||||
local base_system_branch base_system_codename
|
||||
if [[ "${SYSTEM_NAME}" == *"LMDE"* ]]; then
|
||||
# Debian 版(LMDE)
|
||||
base_system_branch="debian"
|
||||
## Debian 版(LMDE)
|
||||
base_system_codename="$(get_os_release_value DEBIAN_CODENAME)"
|
||||
if [[ -z "${base_system_codename}" ]]; then
|
||||
base_system_codename="bookworm"
|
||||
[[ -z "${base_system_codename}" ]] && base_system_codename="bookworm"
|
||||
base_system_branch="$(get_debian_source_branch "${base_system_codename}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="$(get_debian_official_source "${base_system_codename}")"
|
||||
base_system_branch="debian"
|
||||
fi
|
||||
repository_sections="main contrib non-free non-free-firmware"
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_security_host="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_SECURITY_BRANCH:-${SOURCE_BASE_SYSTEM_BRANCH:-debian-security}}"
|
||||
source_file="${File_LinuxMintSourceList}"
|
||||
source_content="$(gen_debian_deb "${source_host}" "${base_system_codename}" "${repository_sections}")
|
||||
$(gen_deb_security "${source_security_host}" "${base_system_codename}" "${repository_sections}")"
|
||||
write_source_file
|
||||
repo_components="$(get_debian_repo_components "${base_system_codename}")"
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
# 安全更新源
|
||||
source_security_branch="$(get_debian_source_security_branch "${base_system_codename}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
source_security_host="$(get_debian_official_source_security_host "${base_system_codename}")"
|
||||
source_security_branch="debian-security"
|
||||
fi
|
||||
source_security_address="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${source_security_host}}}/${SOURCE_SECURITY_BRANCH:-${source_security_branch}}"
|
||||
# 写入源文件
|
||||
apt_source_file="${File_LinuxMintSourceList}"
|
||||
apt_source_content="$(gen_debian_deb "${source_address}" "${base_system_codename}" "${repo_components}")
|
||||
$(gen_debian_deb_security "${source_security_address}" "${base_system_codename}" "${repo_components}")"
|
||||
write_apt_source
|
||||
else
|
||||
# Ubuntu 版
|
||||
## Ubuntu 版
|
||||
base_system_codename="$(get_os_release_value UBUNTU_CODENAME)"
|
||||
[[ -z "${base_system_codename}" ]] && base_system_codename="noble"
|
||||
if [[ "${DEVICE_ARCH_RAW}" == "x86_64" || "${DEVICE_ARCH_RAW}" == *i?86* ]]; then
|
||||
base_system_branch="ubuntu"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="archive.ubuntu.com"
|
||||
fi
|
||||
else
|
||||
base_system_branch="ubuntu-ports"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="ports.ubuntu.com"
|
||||
fi
|
||||
base_system_codename="$(get_os_release_value UBUNTU_CODENAME)"
|
||||
if [[ -z "${base_system_codename}" ]]; then
|
||||
base_system_codename="noble"
|
||||
fi
|
||||
repository_sections="main restricted universe multiverse"
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_security_host="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_file="${File_LinuxMintSourceList}"
|
||||
source_content="$(gen_ubuntu_deb "${source_host}" "${base_system_codename}" "${repository_sections}")
|
||||
$(gen_deb_security "${source_security_host}" "${base_system_codename}" "${repository_sections}")"
|
||||
write_source_file
|
||||
repo_components="main restricted universe multiverse"
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
# 安全更新源
|
||||
source_security_address="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${source_security_host}}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
# 写入源文件
|
||||
apt_source_file="${File_LinuxMintSourceList}"
|
||||
apt_source_content="$(gen_ubuntu_deb "${source_address}" "${base_system_codename}" "${repo_components}")
|
||||
$(gen_deb_security "${source_security_address}" "${base_system_codename}" "${repo_components}")"
|
||||
write_apt_source
|
||||
fi
|
||||
;;
|
||||
|
||||
"${SYSTEM_RASPBERRY_PI_OS}")
|
||||
## 专用源
|
||||
repository_sections="main"
|
||||
# 专用源
|
||||
repo_components="main"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="archive.raspberrypi.org"
|
||||
SOURCE_BRANCH="debian"
|
||||
source_host="${SOURCE}/${SOURCE_BRANCH}"
|
||||
source_address="${SOURCE}/${SOURCE_BRANCH}"
|
||||
fi
|
||||
source_file="${File_RaspberryPiSourceList}"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")"
|
||||
write_source_file
|
||||
## 底层系统软件源(64位系统为 Debian 官方仓库,32位为 Raspbian 仓库)
|
||||
apt_source_file="${File_RaspberryPiSourceList}"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")"
|
||||
write_apt_source
|
||||
|
||||
# 底层系统软件源(注:64位系统为 Debian 官方仓库,32位为 Raspbian 仓库)
|
||||
local base_system_branch base_system_codename
|
||||
case "${DEVICE_ARCH_RAW}" in
|
||||
x86_64 | aarch64)
|
||||
case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
8 | 9 | 10)
|
||||
base_system_branch="debian-archive/debian"
|
||||
;;
|
||||
*)
|
||||
base_system_branch="debian"
|
||||
;;
|
||||
esac
|
||||
## Debian 版
|
||||
base_system_codename="${SYSTEM_VERSION_CODENAME}"
|
||||
case "${SYSTEM_VERSION_ID}" in
|
||||
8 | 9 | 10 | 11)
|
||||
repository_sections="main contrib non-free"
|
||||
;;
|
||||
*)
|
||||
repository_sections="main contrib non-free non-free-firmware"
|
||||
;;
|
||||
esac
|
||||
base_system_branch="$(get_debian_source_branch "${base_system_codename}")"
|
||||
repo_components="$(get_debian_repo_components "${base_system_codename}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="deb.debian.org"
|
||||
SOURCE="$(get_debian_official_source "${base_system_codename}")"
|
||||
base_system_branch="debian"
|
||||
fi
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_security_host="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_SECURITY_BRANCH:-${SOURCE_BASE_SYSTEM_BRANCH:-debian-security}}"
|
||||
source_file="${File_AptSourceList}"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_debian_deb "${source_host}" "${base_system_codename}" "${repository_sections}")
|
||||
$(gen_deb_security "${source_security_host}" "${base_system_codename}" "${repository_sections}")"
|
||||
write_source_file
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
# 安全更新源
|
||||
source_security_branch="$(get_debian_source_security_branch "${base_system_codename}")"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
source_security_host="$(get_debian_official_source_security_host "${base_system_codename}")"
|
||||
source_security_branch="debian-security"
|
||||
fi
|
||||
source_security_address="${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${source_security_host}}}/${SOURCE_SECURITY_BRANCH:-${source_security_branch}}"
|
||||
# 写入源文件
|
||||
apt_source_file="${File_AptSourceList}"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_debian_deb "${source_address}" "${base_system_codename}" "${repo_components}")
|
||||
$(gen_debian_deb_security "${source_security_address}" "${base_system_codename}" "${repo_components}")"
|
||||
write_apt_source
|
||||
;;
|
||||
*)
|
||||
## Raspbian 版
|
||||
base_system_branch="raspbian"
|
||||
base_system_codename="${SYSTEM_VERSION_CODENAME}"
|
||||
repository_sections="main contrib non-free rpi"
|
||||
repo_components="main contrib non-free rpi"
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="raspbian.raspberrypi.org"
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
else
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}/raspbian"
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}/raspbian"
|
||||
fi
|
||||
source_file="${File_AptSourceList}"
|
||||
source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_host}" "${base_system_codename}" "${repository_sections}")"
|
||||
## multiarch 源
|
||||
# 写入源文件
|
||||
apt_source_file="${File_AptSourceList}"
|
||||
apt_source_content="${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${base_system_codename}" "${repo_components}")"
|
||||
# multiarch 源
|
||||
if [[ "${DEVICE_ARCH_RAW}" == "armv7l" && "${USE_OFFICIAL_SOURCE}" != "true" ]]; then
|
||||
source_host="${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||
source_content="${source_content}
|
||||
|
||||
# deb [arch=arm64] ${WEB_PROTOCOL}://${source_host}/multiarch/ ${base_system_codename} ${repository_sections}"
|
||||
source_address="${SOURCE_BASE_SYSTEM:-${SOURCE}}/${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}}"
|
||||
apt_source_content="${apt_source_content}
|
||||
## multiarch
|
||||
# deb [arch=arm64] ${WEB_PROTOCOL}://${source_address}/multiarch/ ${base_system_codename} ${repo_components}"
|
||||
fi
|
||||
write_source_file
|
||||
write_apt_source
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
## 处理其它衍生操作系统的专用源
|
||||
# Armbian
|
||||
if [ -f "${File_ArmbianRelease}" ]; then
|
||||
source_file="${File_ArmbianSourceList}"
|
||||
source_content="deb [signed-by=/usr/share/keyrings/armbian.gpg] ${WEB_PROTOCOL}://${SOURCE}/armbian ${SYSTEM_VERSION_CODENAME} main ${SYSTEM_VERSION_CODENAME}-utils ${SYSTEM_VERSION_CODENAME}-desktop"
|
||||
write_source_file
|
||||
apt_source_file="${File_ArmbianSourceList}"
|
||||
apt_source_content="deb [signed-by=/usr/share/keyrings/armbian.gpg] ${WEB_PROTOCOL}://${SOURCE}/armbian ${SYSTEM_VERSION_CODENAME} main ${SYSTEM_VERSION_CODENAME}-utils ${SYSTEM_VERSION_CODENAME}-desktop"
|
||||
write_apt_source
|
||||
fi
|
||||
# Proxmox VE
|
||||
if [ -f "${File_ProxmoxVersion}" ]; then
|
||||
source_host="${SOURCE}/proxmox/debian"
|
||||
source_file="${File_ProxmoxSourceList}"
|
||||
source_content="$(gen_deb_unsrc "${source_host}/pve" "${SYSTEM_VERSION_CODENAME}" "pve-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_host}/pbs" "${SYSTEM_VERSION_CODENAME}" "pbs-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_host}/pbs-client" "${SYSTEM_VERSION_CODENAME}" "pbs-client-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_host}/pmg" "${SYSTEM_VERSION_CODENAME}" "pmg-no-subscription")"
|
||||
write_source_file
|
||||
source_address="${SOURCE}/proxmox/debian"
|
||||
apt_source_file="${File_ProxmoxSourceList}"
|
||||
apt_source_content="$(gen_deb_unsrc "${source_address}/pve" "${SYSTEM_VERSION_CODENAME}" "pve-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_address}/pbs" "${SYSTEM_VERSION_CODENAME}" "pbs-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_address}/pbs-client" "${SYSTEM_VERSION_CODENAME}" "pbs-client-no-subscription")
|
||||
$(gen_deb_unsrc_disabled "${source_address}/pmg" "${SYSTEM_VERSION_CODENAME}" "pmg-no-subscription")"
|
||||
write_apt_source
|
||||
if [ -s "${File_ProxmoxAPLInfo}" ]; then
|
||||
sed -e "s|url => [\"']https\?://[^/]*/images[\"']|url => \"${WEB_PROTOCOL}://${SOURCE}/images\"|g" \
|
||||
-i \
|
||||
@@ -2456,7 +2623,7 @@ function change_mirrors_RedHat() {
|
||||
-e "s|\$releasever|8.5.2111|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
sed -e "s|vault.centos.org/\$contentdir|vault.centos.org/${SOURCE_VAULT_BRANCH:-centos-vault}|g" \
|
||||
sed -e "s|vault.centos.org/\$contentdir|vault.centos.org/${SOURCE_VAULT_BRANCH:-"centos-vault"}|g" \
|
||||
-i \
|
||||
CentOS-Linux-Sources.repo
|
||||
;;
|
||||
@@ -2465,13 +2632,13 @@ function change_mirrors_RedHat() {
|
||||
-e "s|\$releasever|7.9.2009|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
sed -e "s|vault.centos.org/centos|vault.centos.org/${SOURCE_VAULT_BRANCH:-centos-vault}|g" \
|
||||
sed -e "s|vault.centos.org/centos|vault.centos.org/${SOURCE_VAULT_BRANCH:-"centos-vault"}|g" \
|
||||
-i \
|
||||
CentOS-Sources.repo
|
||||
;;
|
||||
esac
|
||||
sed -e "s|mirror.centos.org|${SOURCE}|g" \
|
||||
-e "s|vault.centos.org|${SOURCE_VAULT:-"${SOURCE}"}|g" \
|
||||
-e "s|vault.centos.org|${SOURCE_VAULT:-${SOURCE}}|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
;;
|
||||
@@ -2507,7 +2674,7 @@ function change_mirrors_RedHat() {
|
||||
-e "s|\$releasever|8.5.2111|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
sed -e "s|vault.centos.org/\$contentdir|vault.centos.org/${SOURCE_VAULT_BRANCH:-centos-vault}|g" \
|
||||
sed -e "s|vault.centos.org/\$contentdir|vault.centos.org/${SOURCE_VAULT_BRANCH:-"centos-vault"}|g" \
|
||||
-i \
|
||||
CentOS-Linux-Sources.repo
|
||||
;;
|
||||
@@ -2517,13 +2684,13 @@ function change_mirrors_RedHat() {
|
||||
-e "s|\$releasever|7.9.2009|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
sed -e "s|vault.centos.org/centos|vault.centos.org/${SOURCE_VAULT_BRANCH:-centos-vault}|g" \
|
||||
sed -e "s|vault.centos.org/centos|vault.centos.org/${SOURCE_VAULT_BRANCH:-"centos-vault"}|g" \
|
||||
-i \
|
||||
CentOS-Sources.repo
|
||||
;;
|
||||
esac
|
||||
sed -e "s|mirror.centos.org|${SOURCE}|g" \
|
||||
-e "s|vault.centos.org|${SOURCE_VAULT:-"${SOURCE}"}|g" \
|
||||
-e "s|vault.centos.org|${SOURCE_VAULT:-${SOURCE}}|g" \
|
||||
-i \
|
||||
CentOS-*
|
||||
;;
|
||||
@@ -2548,7 +2715,7 @@ function change_mirrors_RedHat() {
|
||||
sed -e "s|^#baseurl=http|baseurl=${WEB_PROTOCOL}|g" \
|
||||
-e "s|^mirrorlist=|#mirrorlist=|g" \
|
||||
-e "s|mirror.centos.org/\$contentdir|${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-e "s|vault.centos.org/\$contentdir|${SOURCE_VAULT:-"${SOURCE}"}/${SOURCE_VAULT_BRANCH:-centos-vault}|g" \
|
||||
-e "s|vault.centos.org/\$contentdir|${SOURCE_VAULT:-${SOURCE}}/${SOURCE_VAULT_BRANCH:-"centos-vault"}|g" \
|
||||
-i \
|
||||
CentOS-Stream-*
|
||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_ORACLE}" ]]; then
|
||||
@@ -2586,7 +2753,8 @@ function change_mirrors_RedHat() {
|
||||
10)
|
||||
sed -e "s|^# baseurl=https|baseurl=${WEB_PROTOCOL}|g" \
|
||||
-e "s|^mirrorlist=|#mirrorlist=|g" \
|
||||
-e "s|vault.almalinux.org|${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-e "s|vault.almalinux.org|${SOURCE_VAULT:-${SOURCE}}/${SOURCE_VAULT_BRANCH:-"almalinux-vault"}|g" \
|
||||
-e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-i \
|
||||
almalinux-appstream.repo \
|
||||
almalinux-baseos.repo \
|
||||
@@ -2601,7 +2769,7 @@ function change_mirrors_RedHat() {
|
||||
9)
|
||||
sed -e "s|^# baseurl=https|baseurl=${WEB_PROTOCOL}|g" \
|
||||
-e "s|^mirrorlist=|#mirrorlist=|g" \
|
||||
-e "s|repo.almalinux.org/vault|${SOURCE_VAULT:-"${SOURCE}"}/${SOURCE_VAULT_BRANCH:-almalinux-vault}|g" \
|
||||
-e "s|repo.almalinux.org/vault|${SOURCE_VAULT:-${SOURCE}}/${SOURCE_VAULT_BRANCH:-"almalinux-vault"}|g" \
|
||||
-e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-i \
|
||||
almalinux-appstream.repo \
|
||||
@@ -2619,7 +2787,7 @@ function change_mirrors_RedHat() {
|
||||
8)
|
||||
sed -e "s|^mirrorlist=|#mirrorlist=|g" \
|
||||
-e "s|^# baseurl=https|baseurl=${WEB_PROTOCOL}|g" \
|
||||
-e "s|repo.almalinux.org/vault|${SOURCE_VAULT:-"${SOURCE}"}/${SOURCE_VAULT_BRANCH:-almalinux-vault}|g" \
|
||||
-e "s|repo.almalinux.org/vault|${SOURCE_VAULT:-${SOURCE}}/${SOURCE_VAULT_BRANCH:-"almalinux-vault"}|g" \
|
||||
-e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \
|
||||
-i \
|
||||
almalinux-ha.repo \
|
||||
@@ -2729,6 +2897,8 @@ function change_mirrors_OpenCloudOS() {
|
||||
|
||||
## 更换 openKylin 软件源
|
||||
function change_mirrors_openKylin() {
|
||||
local deb_src_disabled_tips="## $(msg "source.comment.disabledSourceCode")"
|
||||
|
||||
function gen_deb() {
|
||||
echo "deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}
|
||||
# deb-src ${WEB_PROTOCOL}://${1}/ ${2} ${3}
|
||||
@@ -2742,10 +2912,10 @@ deb ${WEB_PROTOCOL}://${1}/ ${2}-updates ${3}
|
||||
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||
SOURCE="archive.build.openkylin.top"
|
||||
fi
|
||||
local repository_sections="main cross pty" # 仓库区域
|
||||
local source_host="${SOURCE}/${SOURCE_BRANCH}"
|
||||
echo "## $(msg "source.comment.disabledSourceCode")
|
||||
$(gen_deb "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")" >>$File_AptSourceList
|
||||
local repo_components="main cross pty" # 仓库区域
|
||||
local source_address="${SOURCE}/${SOURCE_BRANCH}"
|
||||
echo "${deb_src_disabled_tips}
|
||||
$(gen_deb "${source_address}" "${SYSTEM_VERSION_CODENAME}" "${repo_components}")" >>$File_AptSourceList
|
||||
}
|
||||
|
||||
## 更换 Anolis OS 软件源
|
||||
@@ -2935,7 +3105,7 @@ main-repo = gentoo
|
||||
[gentoo]
|
||||
location = /usr/portage
|
||||
sync-type = rsync
|
||||
sync-uri = rsync://${SOURCE_PORTAGE:-"${SOURCE}"}/${SOURCE_PORTAGE_BRANCH:-gentoo-portage}
|
||||
sync-uri = rsync://${SOURCE_PORTAGE:-${SOURCE}}/${SOURCE_PORTAGE_BRANCH:-"gentoo-portage"}
|
||||
auto-sync = yes" >$File_GentooReposConf
|
||||
}
|
||||
|
||||
@@ -2981,7 +3151,7 @@ function change_mirrors_or_install_EPEL() {
|
||||
if [[ "${epel_version}" == "7" ]]; then
|
||||
[ -z "${SOURCE_EPEL_BRANCH}" ] && SOURCE_EPEL_BRANCH="epel-archive"
|
||||
[[ "${PURE_MODE}" != "true" ]] && echo -e "\n$WARN $(msg "warn.EPEL7")"
|
||||
[[ "${PURE_MODE}" != "true" ]] && echo -e "\n$TIP $(msg "tip.EPEL7")\n\n${GREEN}➜${PLAIN} ${WEB_PROTOCOL}://${SOURCE_EPEL:-"${SOURCE}"}/${SOURCE_EPEL_BRANCH:-epel}"
|
||||
[[ "${PURE_MODE}" != "true" ]] && echo -e "\n$TIP $(msg "tip.EPEL7")\n\n${GREEN}➜${PLAIN} ${WEB_PROTOCOL}://${SOURCE_EPEL:-${SOURCE}}/${SOURCE_EPEL_BRANCH:-"epel"}"
|
||||
fi
|
||||
## 安装 EPEL 软件包
|
||||
if [ $VERIFICATION_EPEL -ne 0 ]; then
|
||||
@@ -3036,7 +3206,7 @@ function change_mirrors_or_install_EPEL() {
|
||||
## 修改源
|
||||
sed -e "s|^#baseurl=http\(s\)\?|baseurl=${WEB_PROTOCOL}|g" \
|
||||
-e "s|^metalink=|#metalink=|g" \
|
||||
-e "s|download.example/pub/epel|${SOURCE_EPEL:-"${SOURCE}"}/${SOURCE_EPEL_BRANCH:-epel}|g" \
|
||||
-e "s|download.example/pub/epel|${SOURCE_EPEL:-${SOURCE}}/${SOURCE_EPEL_BRANCH:-"epel"}|g" \
|
||||
-i \
|
||||
$Dir_YumRepos/epel*
|
||||
## 启用所需的仓库(EPEL 需要结合 PowerTools / CRB 使用)
|
||||
@@ -3250,6 +3420,12 @@ function animate_exec() {
|
||||
local max_lines=${3:-5}
|
||||
local spinner_style="${4:-dots}"
|
||||
local refresh_rate="${5:-0.1}"
|
||||
local scroll_mode="${6:-1}"
|
||||
if [[ "${scroll_mode}" == "0" ]]; then
|
||||
echo -e "◉ ${title} \n"
|
||||
eval "${cmd}"
|
||||
return $?
|
||||
fi
|
||||
local -A spinners=([dots]="⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏" [circle]="◐ ◓ ◑ ◒" [classic]="-\\ |/")
|
||||
local -A recommended_rates=([dots]="0.08" [circle]="0.12" [classic]="0.12")
|
||||
[[ -z "${spinners[$spinner_style]}" ]] && spinner_style="dots"
|
||||
@@ -6365,7 +6541,7 @@ EOF
|
||||
|
||||
## 生成 OpenCloudOS repo 源文件
|
||||
function gen_repo_files_OpenCloudOS() {
|
||||
case "${1%.*}" in
|
||||
case "${1%%.*}" in
|
||||
23)
|
||||
cat <<'EOF' >$Dir_YumRepos/OpenCloudOS-Stream.repo
|
||||
[BaseOS]
|
||||
@@ -6694,7 +6870,7 @@ EOF
|
||||
|
||||
## 生成 Anolis OS repo 源文件
|
||||
function gen_repo_files_AnolisOS() {
|
||||
case "${1%.*}" in
|
||||
case "${1%%.*}" in
|
||||
23)
|
||||
cat <<'EOF' >$Dir_YumRepos/AnolisOS.repo
|
||||
[os]
|
||||
@@ -6958,7 +7134,7 @@ EOF
|
||||
function gen_repo_files_openSUSE() {
|
||||
case "$1" in
|
||||
"leap")
|
||||
case "${2%.*}" in
|
||||
case "${2%%.*}" in
|
||||
16)
|
||||
cat <<'EOF' >$Dir_ZYppRepos/openSUSE:repo-non-oss-debug.repo
|
||||
[openSUSE:repo-non-oss-debug]
|
||||
@@ -7722,7 +7898,7 @@ function init_msg_pack() {
|
||||
eval "${func_name}"
|
||||
fi
|
||||
}
|
||||
local current_lang="${1:-"${MESSAGE_LANG_DEFAULT}"}"
|
||||
local current_lang="${1:-${MESSAGE_LANG_DEFAULT}}"
|
||||
current_lang="$(echo "${current_lang}" | sed 's/^-*//')"
|
||||
current_lang="${current_lang,,}"
|
||||
if [[ "${MESSAGE_LANG_DISPLAY[${current_lang}]}" ]]; then
|
||||
@@ -7758,7 +7934,7 @@ function msg_pack_zh_hans() {
|
||||
['error.unknownSystem']='未知系统'
|
||||
['error.unknownVersion']='系统版本未知'
|
||||
['error.input']='输入错误,{}!'
|
||||
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
|
||||
['error.needRoot']='权限不足,请切换至 root 账户后运行本脚本,切换命令 {}'
|
||||
['error.defaultBehavior.https']='默认使用 HTTPS 协议'
|
||||
['error.defaultBehavior.noReplace']='默认不更换'
|
||||
['error.defaultBehavior.noOverwrite']='默认不覆盖'
|
||||
@@ -7990,7 +8166,7 @@ function msg_pack_zh_hant() {
|
||||
['error.unknownSystem']='未知系統'
|
||||
['error.unknownVersion']='系統版本未知'
|
||||
['error.input']='輸入錯誤,{}!'
|
||||
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
|
||||
['error.needRoot']='權限不足,請切換至 root 帳戶後執行本腳本,切換指令 {}'
|
||||
['error.defaultBehavior.https']='預設使用 HTTPS 協定'
|
||||
['error.defaultBehavior.noReplace']='預設不更換'
|
||||
['error.defaultBehavior.noOverwrite']='預設不覆蓋'
|
||||
@@ -8222,7 +8398,7 @@ function msg_pack_en() {
|
||||
['error.unknownSystem']='Unknown system'
|
||||
['error.unknownVersion']='System version unknown'
|
||||
['error.input']='Input error, {}!'
|
||||
['error.needRoot']='Insufficient permissions, please run this script as Root user'
|
||||
['error.needRoot']='Insufficient privileges, please run this script as root. Switch command: {}'
|
||||
['error.defaultBehavior.https']='HTTPS is used by default'
|
||||
['error.defaultBehavior.noReplace']='No replacement by default'
|
||||
['error.defaultBehavior.noOverwrite']='No overwrite by default'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
## Author: SuperManito
|
||||
## Modified: 2025-11-01
|
||||
## Modified: 2025-12-06
|
||||
## License: MIT
|
||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||
## Website: https://linuxmirrors.cn
|
||||
@@ -89,7 +89,8 @@ SPONSOR_ADS=(
|
||||
"速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ \033[3mhttps://www.sutuoyun.com\033[0m"
|
||||
"语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m"
|
||||
"不二云 · 国内外建站快响应服务器的不二之选 ➜ \033[3mhttps://cb2.cn\033[0m"
|
||||
"HKGserver · 全球家宽|双ISP|住宅原生云服务器54元/月起 ➜ \033[3mhttps://www.hkgserver.com\033[0m"
|
||||
"CN2network · 超低价优质机器免实名自动开通 ➜ \033[3mhttps://idc.cn2network.com\033[0m"
|
||||
"破碎工坊云 · 专注高性能国内外云服务器 ➜ \033[3mhttps://www.crash.work\033[0m"
|
||||
"浪浪云 · BGP网络让每一次连接都纵享丝滑,明码标价、无套路续费 ➜ \033[3mhttps://langlangy.cn\033[0m"
|
||||
)
|
||||
|
||||
@@ -116,9 +117,12 @@ SYSTEM_OPENCLOUDOS_STREAM="OpenCloudOS Stream"
|
||||
SYSTEM_TENCENTOS="TencentOS"
|
||||
SYSTEM_OPENEULER="openEuler"
|
||||
SYSTEM_ANOLISOS="Anolis"
|
||||
SYSTEM_KYLIN_DESKTOP="Kylin Desktop"
|
||||
SYSTEM_KYLIN_SERVER="Kylin Server"
|
||||
SYSTEM_OPENKYLIN="openKylin"
|
||||
SYSTEM_OPENSUSE="openSUSE"
|
||||
SYSTEM_ARCH="Arch"
|
||||
SYSTEM_MANJARO="Manjaro"
|
||||
SYSTEM_ALPINE="Alpine"
|
||||
SYSTEM_GENTOO="Gentoo"
|
||||
SYSTEM_NIXOS="NixOS"
|
||||
@@ -140,7 +144,9 @@ File_ArchLinuxRelease=/etc/arch-release
|
||||
File_ManjaroRelease=/etc/manjaro-release
|
||||
File_AlpineRelease=/etc/alpine-release
|
||||
File_GentooRelease=/etc/gentoo-release
|
||||
File_openKylinVersion=/etc/kylin-version/kylin-system-version.conf
|
||||
File_KylinRelease=/etc/kylin-release
|
||||
File_kylinVersion=/etc/kylin-version/kylin-system-version.conf
|
||||
File_ProxmoxVersion=/etc/pve/.version
|
||||
|
||||
## 定义软件源相关文件或目录
|
||||
File_AptSourceList=/etc/apt/sources.list
|
||||
@@ -168,10 +174,10 @@ PLAIN='\033[0m'
|
||||
BOLD='\033[1m'
|
||||
SUCCESS="\033[1;32m✔${PLAIN}"
|
||||
COMPLETE="\033[1;32m✔${PLAIN}"
|
||||
WARN="\033[1;43m 警告 ${PLAIN}"
|
||||
WARN="\033[1;43m WARN ${PLAIN}"
|
||||
ERROR="\033[1;31m✘${PLAIN}"
|
||||
FAIL="\033[1;31m✘${PLAIN}"
|
||||
TIP="\033[1;44m 提示 ${PLAIN}"
|
||||
TIP="\033[1;44m TIP ${PLAIN}"
|
||||
WORKING="\033[1;36m◉${PLAIN}"
|
||||
|
||||
function main() {
|
||||
@@ -496,7 +502,11 @@ function command_exists() {
|
||||
|
||||
function permission_judgment() {
|
||||
if [ $UID -ne 0 ]; then
|
||||
output_error "$(msg "error.needRoot")"
|
||||
local change_cmd="su root"
|
||||
if command_exists sudo; then
|
||||
change_cmd="sudo -i"
|
||||
fi
|
||||
output_error "$(msg "error.needRoot" "${BLUE}${change_cmd}${PLAIN}")"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -513,13 +523,16 @@ function collect_system_info() {
|
||||
SYSTEM_PRETTY_NAME="$(get_os_release_value PRETTY_NAME)"
|
||||
## 定义系统版本号
|
||||
SYSTEM_VERSION_ID="$(get_os_release_value VERSION_ID)"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%.*}"
|
||||
SYSTEM_VERSION_ID_MAJOR="${SYSTEM_VERSION_ID%%.*}"
|
||||
SYSTEM_VERSION_ID_MINOR="${SYSTEM_VERSION_ID#*.}"
|
||||
## 定义系统ID
|
||||
SYSTEM_ID="$(get_os_release_value ID)"
|
||||
## 判定当前系统派系
|
||||
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.io"
|
||||
fi
|
||||
elif [ -s "${File_RedHatRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
||||
elif [ -s "${File_openEulerRelease}" ] || [ -s "${File_HuaweiCloudEulerOSRelease}" ]; then
|
||||
@@ -530,8 +543,12 @@ function collect_system_info() {
|
||||
SYSTEM_FACTIONS="${SYSTEM_ANOLISOS}" # 自 8.8 版本起不再基于红帽
|
||||
elif [ -s "${File_TencentOSServerRelease}" ]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_TENCENTOS}" # 自 4 版本起不再基于红帽
|
||||
elif [ -s "${File_openKylinVersion}" ]; then
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "openKylin" "apt-get install -y docker\nsystemctl enable --now docker"
|
||||
elif [ -s "${File_kylinVersion}" ] || [ -s "${File_KylinRelease}" ]; then
|
||||
if [[ "${SYSTEM_ID}" == *"openkylin"* ]]; then
|
||||
SYSTEM_FACTIONS="${SYSTEM_OPENKYLIN}"
|
||||
else
|
||||
SYSTEM_FACTIONS="${SYSTEM_KYLIN_SERVER}"
|
||||
fi
|
||||
elif [ -f "${File_ArchLinuxRelease}" ]; then
|
||||
[[ "${ONLY_REGISTRY}" != "true" ]] && unsupport_system_error "Arch Linux" "pacman -S docker\nsystemctl enable --now docker"
|
||||
elif [ -f "${File_GentooRelease}" ]; then
|
||||
@@ -545,7 +562,7 @@ function collect_system_info() {
|
||||
fi
|
||||
## 判定系统类型、版本、版本号
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
if command_exists lsb_release; then
|
||||
SYSTEM_JUDGMENT="$(lsb_release -is)"
|
||||
SYSTEM_VERSION_CODENAME="${DEBIAN_CODENAME:-"$(lsb_release -cs)"}"
|
||||
@@ -616,7 +633,8 @@ function collect_system_info() {
|
||||
## 定义软件源仓库名称
|
||||
if [[ -z "${SOURCE_BRANCH}" ]]; then
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
local debian_codename_latest="trixie"
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
SOURCE_BRANCH="debian"
|
||||
@@ -626,7 +644,7 @@ function collect_system_info() {
|
||||
;;
|
||||
"${SYSTEM_KALI}")
|
||||
SOURCE_BRANCH="debian"
|
||||
SOURCE_BRANCH_CODENAME="trixie"
|
||||
SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
;;
|
||||
"${SYSTEM_LINUX_MINT}")
|
||||
if [[ "${SYSTEM_NAME}" == *"LMDE"* ]]; then
|
||||
@@ -652,6 +670,24 @@ function collect_system_info() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
# "${SYSTEM_KYLIN_DESKTOP}")
|
||||
# SOURCE_BRANCH="ubuntu"
|
||||
# case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
# "v10")
|
||||
# SOURCE_BRANCH_CODENAME="focal"
|
||||
# ;;
|
||||
# "v11")
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# *)
|
||||
# SOURCE_BRANCH_CODENAME="noble"
|
||||
# ;;
|
||||
# esac
|
||||
# ;;
|
||||
"${SYSTEM_OPENKYLIN}")
|
||||
SOURCE_BRANCH="debian"
|
||||
SOURCE_BRANCH_CODENAME="${debian_codename_latest}"
|
||||
;;
|
||||
*)
|
||||
# 其余 Debian 系衍生操作系统
|
||||
SOURCE_BRANCH="debian"
|
||||
@@ -659,7 +695,7 @@ function collect_system_info() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
case "${SYSTEM_JUDGMENT}" in
|
||||
"${SYSTEM_FEDORA}")
|
||||
SOURCE_BRANCH="fedora"
|
||||
@@ -679,10 +715,10 @@ function collect_system_info() {
|
||||
fi
|
||||
## 定义软件源更新文字
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text1")"
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
SYNC_MIRROR_TEXT="$(msg "source.sync.text2")"
|
||||
;;
|
||||
esac
|
||||
@@ -1004,22 +1040,22 @@ function install_dependency_packages() {
|
||||
local commands package_manager
|
||||
## 删除原有源
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
sed -i '/docker-ce/d' $File_AptSourceList
|
||||
rm -rf $File_DockerSourceList
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
rm -rf $Dir_YumRepos/*docker*.repo
|
||||
;;
|
||||
esac
|
||||
## 更新软件源
|
||||
commands=()
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
package_manager="apt-get"
|
||||
commands+=("${package_manager} update")
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
package_manager="$(get_package_manager)"
|
||||
commands+=("${package_manager} makecache")
|
||||
;;
|
||||
@@ -1047,11 +1083,10 @@ function install_dependency_packages() {
|
||||
|
||||
commands=()
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
commands+=("${package_manager} install -y ca-certificates curl")
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
# 注:红帽 8 版本才发布了 dnf 包管理工具
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
7)
|
||||
commands+=("${package_manager} install -y yum-utils device-mapper-persistent-data lvm2")
|
||||
@@ -1088,7 +1123,7 @@ function install_dependency_packages() {
|
||||
function configure_docker_ce_mirror() {
|
||||
local -a commands=()
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
## 处理 GPG 密钥
|
||||
local file_keyring="/etc/apt/keyrings/docker.asc"
|
||||
apt-key del 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 >/dev/null 2>&1 # 删除旧的密钥
|
||||
@@ -1101,11 +1136,11 @@ function configure_docker_ce_mirror() {
|
||||
chmod a+r $file_keyring
|
||||
## 添加源
|
||||
[ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources
|
||||
local source_content="deb [arch=$(dpkg --print-architecture) signed-by=${file_keyring}] ${WEB_PROTOCOL}://${SOURCE}/linux/${SOURCE_BRANCH} ${SOURCE_BRANCH_CODENAME:-"${SYSTEM_VERSION_CODENAME}"} stable"
|
||||
echo "${source_content}" | tee $File_DockerSourceList >/dev/null 2>&1
|
||||
local apt_source_content="deb [arch=$(dpkg --print-architecture) signed-by=${file_keyring}] ${WEB_PROTOCOL}://${SOURCE}/linux/${SOURCE_BRANCH} ${DEBIAN_CODENAME:-${SOURCE_BRANCH_CODENAME:-${SYSTEM_VERSION_CODENAME}}} stable"
|
||||
echo "${apt_source_content}" | tee $File_DockerSourceList >/dev/null 2>&1
|
||||
commands+=("apt-get update")
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
local repo_file_url="${WEB_PROTOCOL}://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo"
|
||||
local package_manager="$(get_package_manager)"
|
||||
case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
@@ -1194,6 +1229,19 @@ function configure_docker_ce_mirror() {
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_KYLIN_SERVER}" ]]; then
|
||||
case "${SYSTEM_VERSION_ID_MAJOR}" in
|
||||
"V10")
|
||||
target_version="8"
|
||||
;;
|
||||
"V11")
|
||||
target_version="10"
|
||||
;;
|
||||
*)
|
||||
target_version="10"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
sed -e "s|\$releasever|${target_version}|g" \
|
||||
@@ -1226,12 +1274,12 @@ function install_docker_engine() {
|
||||
## 导出可安装的版本列表
|
||||
function export_version_list() {
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$File_DockerCEVersionTmp
|
||||
apt-cache madison docker-ce-cli | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$File_DockerCECliVersionTmp
|
||||
grep -wf $File_DockerCEVersionTmp $File_DockerCECliVersionTmp >$File_DockerVersionTmp
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
local package_manager="$(get_package_manager)"
|
||||
$package_manager list docker-ce --showduplicates | sort -r | awk '{print $2}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$File_DockerCEVersionTmp
|
||||
$package_manager list docker-ce-cli --showduplicates | sort -r | awk '{print $2}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$File_DockerCECliVersionTmp
|
||||
@@ -1251,20 +1299,20 @@ function install_docker_engine() {
|
||||
# 确定需要卸载的软件包
|
||||
local package_list
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
package_list='docker* podman podman-docker containerd runc'
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
package_list='docker* podman podman-docker runc'
|
||||
;;
|
||||
esac
|
||||
# 卸载软件包并清理残留
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
apt-get remove -y $package_list >/dev/null 2>&1
|
||||
apt-get autoremove -y >/dev/null 2>&1
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
local package_manager="$(get_package_manager)"
|
||||
$package_manager remove -y $package_list >/dev/null 2>&1
|
||||
$package_manager autoremove -y >/dev/null 2>&1
|
||||
@@ -1326,7 +1374,7 @@ function install_docker_engine() {
|
||||
local major_version="$(echo ${target_docker_version} | cut -d'.' -f1)"
|
||||
local minor_version="$(echo ${target_docker_version} | cut -d'.' -f2)"
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
if [[ $major_version -gt 18 ]] || [[ $major_version -eq 18 && $minor_version -ge 9 ]]; then
|
||||
local tmp_version="$(apt-cache madison docker-ce-cli | grep "${target_docker_version}" | head -1 | awk '{print $3}' | awk -F "${target_docker_version}" '{print$1}')"
|
||||
pkgs="docker-ce=${tmp_version}${target_docker_version}* docker-ce-cli=${tmp_version}${target_docker_version}*"
|
||||
@@ -1335,7 +1383,7 @@ function install_docker_engine() {
|
||||
fi
|
||||
;;
|
||||
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
pkgs="docker-ce-${target_docker_version}"
|
||||
if [[ $major_version -gt 18 ]] || [[ $major_version -eq 18 && $minor_version -ge 9 ]]; then
|
||||
pkgs="${pkgs} docker-ce-cli-${target_docker_version}"
|
||||
@@ -1351,10 +1399,10 @@ function install_docker_engine() {
|
||||
fi
|
||||
fi
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
commands+=("apt-get install -y ${pkgs}")
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
commands+=("$(get_package_manager) install -y ${pkgs}")
|
||||
;;
|
||||
esac
|
||||
@@ -1409,10 +1457,10 @@ function install_docker_engine() {
|
||||
|
||||
## 判定是否已安装
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
dpkg -l | grep docker-ce-cli -q
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
rpm -qa | grep docker-ce-cli -q
|
||||
;;
|
||||
esac
|
||||
@@ -1505,10 +1553,10 @@ function change_docker_registry_mirror() {
|
||||
function only_change_docker_registry_mirror() {
|
||||
## 判定是否已安装
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
dpkg -l | grep docker-ce-cli -q
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
rpm -qa | grep docker-ce-cli -q
|
||||
;;
|
||||
esac
|
||||
@@ -1527,11 +1575,11 @@ function only_change_docker_registry_mirror() {
|
||||
local package_manager
|
||||
local -a commands=()
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
package_manager="apt-get"
|
||||
commands+=("${package_manager} update")
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
package_manager="$(get_package_manager)"
|
||||
commands+=("${package_manager} makecache")
|
||||
;;
|
||||
@@ -1612,11 +1660,11 @@ function check_installed_result() {
|
||||
echo -e "\n$FAIL $(msg "result.install.failed")"
|
||||
local source_file package_manager
|
||||
case "${SYSTEM_FACTIONS}" in
|
||||
"${SYSTEM_DEBIAN}")
|
||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
||||
source_file="${File_DockerSourceList}"
|
||||
package_manager="apt-get"
|
||||
;;
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
source_file="${File_DockerRepo}"
|
||||
package_manager="$(get_package_manager)"
|
||||
;;
|
||||
@@ -1658,7 +1706,7 @@ function get_package_manager() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"${SYSTEM_FEDORA}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}")
|
||||
"${SYSTEM_FEDORA}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}" | "${SYSTEM_TENCENTOS}" | "${SYSTEM_KYLIN_SERVER}")
|
||||
command="dnf"
|
||||
;;
|
||||
esac
|
||||
@@ -1847,6 +1895,12 @@ function animate_exec() {
|
||||
local max_lines=${3:-5}
|
||||
local spinner_style="${4:-dots}"
|
||||
local refresh_rate="${5:-0.1}"
|
||||
local scroll_mode="${6:-1}"
|
||||
if [[ "${scroll_mode}" == "0" ]]; then
|
||||
echo -e "◉ ${title} \n"
|
||||
eval "${cmd}"
|
||||
return $?
|
||||
fi
|
||||
local -A spinners=([dots]="⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏" [circle]="◐ ◓ ◑ ◒" [classic]="-\\ |/")
|
||||
local -A recommended_rates=([dots]="0.08" [circle]="0.12" [classic]="0.12")
|
||||
[[ -z "${spinners[$spinner_style]}" ]] && spinner_style="dots"
|
||||
@@ -2042,7 +2096,7 @@ function init_msg_pack() {
|
||||
eval "${func_name}"
|
||||
fi
|
||||
}
|
||||
local current_lang="${1:-"${MESSAGE_LANG_DEFAULT}"}"
|
||||
local current_lang="${1:-${MESSAGE_LANG_DEFAULT}}"
|
||||
current_lang="$(echo "${current_lang}" | sed 's/^-*//')"
|
||||
current_lang="${current_lang,,}"
|
||||
if [[ "${MESSAGE_LANG_DISPLAY[${current_lang}]}" ]]; then
|
||||
@@ -2081,7 +2135,7 @@ function msg_pack_zh_hans() {
|
||||
['error.unknownArch']='未知的系统架构:{}'
|
||||
['error.unsupportS390x']='请查阅 RHEL 发行版声明以了解 s390x 支持'
|
||||
['error.input']='输入错误,{}!'
|
||||
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
|
||||
['error.needRoot']='权限不足,请切换至 root 账户后运行本脚本,切换命令 {}'
|
||||
['error.sync']='{}出错,请先解决系统原有软件源错误以确保 {} 软件包管理工具可用!'
|
||||
['error.downloadGPG']='GPG 密钥下载失败,请检查网络或更换 Docker CE 软件源后重试!'
|
||||
['error.queryVersionFailed']='查询 Docker Engine 版本列表失败!'
|
||||
@@ -2232,7 +2286,7 @@ function msg_pack_zh_hant() {
|
||||
['error.unknownArch']='未知的系統架構:{}'
|
||||
['error.unsupportS390x']='請查閱 RHEL 發行版宣告以瞭解 s390x 支援'
|
||||
['error.input']='輸入錯誤,{}!'
|
||||
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
|
||||
['error.needRoot']='權限不足,請切換至 root 帳戶後執行本腳本,切換指令 {}'
|
||||
['error.sync']='{}出錯,請先解決系統原有軟體源錯誤以確保 {} 軟體包管理工具可用!'
|
||||
['error.downloadGPG']='GPG 金鑰下載失敗,請檢查網路或更換 Docker CE 軟體源後重試!'
|
||||
['error.queryVersionFailed']='查詢 Docker Engine 版本清單失敗!'
|
||||
@@ -2384,7 +2438,7 @@ function msg_pack_en() {
|
||||
['error.unknownArch']='Unknown system architecture: {}'
|
||||
['error.unsupportS390x']='Please refer to RHEL distribution announcement for s390x support'
|
||||
['error.input']='Input error, {}!'
|
||||
['error.needRoot']='Insufficient permissions, please run this script as Root user'
|
||||
['error.needRoot']='Insufficient privileges, please run this script as root. Switch command: {}'
|
||||
['error.sync']='{} failed. Please fix system software sources (package repositories) so the {} package manager is available!'
|
||||
['error.downloadGPG']='GPG key download failed, please check network or switch Docker CE mirror and retry!'
|
||||
['error.queryVersionFailed']='Failed to query Docker Engine version list!'
|
||||
|
||||
1770
DockerInstallationLite.sh
Executable file
@@ -26,103 +26,103 @@
|
||||
<th align="center">Supported Versions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a> Debian</td>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" alt="Debian" width="16" height="16"></sub></a> Debian</td>
|
||||
<td align="center">8 ~ 13</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a> Ubuntu</td>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><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>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16"></sub></a> Linux Mint</td>
|
||||
<td align="center">17 ~ 22 / LMDE 2 ~ 7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a> Deepin</td>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" alt="Deepin" width="16" height="16"></sub></a> Deepin</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a> Zorin OS</td>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a> Proxmox VE</td>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a> Raspberry Pi OS</td>
|
||||
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a> Red Hat Enterprise Linux</td>
|
||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a> CentOS</td>
|
||||
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" alt="CentOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a> Rocky Linux</td>
|
||||
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16"></sub></a> AlmaLinux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a> openEuler</td>
|
||||
<td><a href="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16"></sub></a> openEuler</td>
|
||||
<td align="center">20 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a> OpenCloudOS</td>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a> openKylin</td>
|
||||
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16"></sub></a> openKylin</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a> Anolis OS</td>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" alt="Manjaro" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a> Alpine Linux</td>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
52
README.md
@@ -26,103 +26,103 @@
|
||||
<th align="center">适配版本</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a> Debian</td>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" alt="Debian" width="16" height="16"></sub></a> Debian</td>
|
||||
<td align="center">8 ~ 13</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a> Ubuntu</td>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><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>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16"></sub></a> Linux Mint</td>
|
||||
<td align="center">17 ~ 22 / LMDE 2 ~ 7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a> Deepin(深度)</td>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" alt="Deepin" width="16" height="16"></sub></a> Deepin(深度)</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a> Zorin OS</td>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a> Proxmox VE</td>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a> Raspberry Pi OS</td>
|
||||
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a> Red Hat Enterprise Linux</td>
|
||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a> CentOS</td>
|
||||
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" alt="CentOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a> Rocky Linux</td>
|
||||
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16"></sub></a> AlmaLinux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a> openEuler(开源欧拉)</td>
|
||||
<td><a href="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16"></sub></a> openEuler(开源欧拉)</td>
|
||||
<td align="center">20 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a> OpenCloudOS(鸥栖)</td>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a> openKylin(开放麒麟)</td>
|
||||
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16"></sub></a> openKylin(开放麒麟)</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a> Anolis OS(龙蜥)</td>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" alt="Manjaro" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a> Alpine Linux</td>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -26,103 +26,103 @@
|
||||
<th align="center">適配版本</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" width="16" height="16"></sub></a> Debian</td>
|
||||
<td><a href="https://www.debian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/debian.svg" alt="Debian" width="16" height="16"></sub></a> Debian</td>
|
||||
<td align="center">8 ~ 13</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" width="16" height="16"></sub></a> Ubuntu</td>
|
||||
<td><a href="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.svg" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td><a href="https://www.kali.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></sub></a> Kali Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><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>
|
||||
<td><a href="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16"></sub></a> Linux Mint</td>
|
||||
<td align="center">17 ~ 22 / LMDE 2 ~ 7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" width="16" height="16"></sub></a> Deepin</td>
|
||||
<td><a href="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/deepin.png" alt="Deepin" width="16" height="16"></sub></a> Deepin</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" width="16" height="16"></sub></a> Zorin OS</td>
|
||||
<td><a href="https://zorin.com/os" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td><a href="https://www.armbian.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16"></sub></a> Armbian</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" width="16" height="16"></sub></a> Proxmox VE</td>
|
||||
<td><a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" width="16" height="16"></sub></a> Raspberry Pi OS</td>
|
||||
<td><a href="https://www.raspberrypi.com/software" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" width="16" height="16"></sub></a> Red Hat Enterprise Linux</td>
|
||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" width="16" height="16"></sub></a> CentOS</td>
|
||||
<td><a href="https://www.centos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/centos.svg" alt="CentOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" width="16" height="16"></sub></a> Rocky Linux</td>
|
||||
<td><a href="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16"></sub></a> AlmaLinux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td><a href="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16"></sub></a> Oracle Linux</td>
|
||||
<td align="center">8 ~ 10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" width="16" height="16"></sub></a> openEuler</td>
|
||||
<td><a href="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16"></sub></a> openEuler</td>
|
||||
<td align="center">20 ~ 25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" width="16" height="16"></sub></a> OpenCloudOS</td>
|
||||
<td><a href="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" width="16" height="16"></sub></a> openKylin</td>
|
||||
<td><a href="https://www.openkylin.top" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16"></sub></a> openKylin</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" width="16" height="16"></sub></a> Anolis OS</td>
|
||||
<td><a href="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td><a href="https://www.opensuse.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></sub></a> openSUSE</td>
|
||||
<td align="center">Leap 15 ~ 16 / Tumbleweed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td><a href="https://archlinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16"></sub></a> Arch Linux</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td><a href="https://manjaro.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/manjaro.svg" alt="Manjaro" width="16" height="16"></sub></a> Manjaro</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" width="16" height="16"></sub></a> Alpine Linux</td>
|
||||
<td><a href="https://www.alpinelinux.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td><a href="https://www.gentoo.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16"></sub></a> Gentoo</td>
|
||||
<td align="center">all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td><a href="https://nixos.org" target="_blank" rel="noopener noreferrer"><sub><img src="/docs/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16"></sub></a> NixOS</td>
|
||||
<td align="center">19 ~ 25</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 6.5 KiB |
BIN
docs/assets/images/icon/kali-linux.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
@@ -1 +0,0 @@
|
||||
<svg viewBox="0 0 519.36 293.65" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m478.2 30.541c-1.708-.45694-3.4119-.54087-5.1767-.54087h-427.93c-6.4231.050078-12.061 4.1054-14.195 10.144-.69747 1.9633-.90029 3.9505-.90029 6.0098v202.42c.23751 8.4346 6.8365 15.012 15.194 15.033 17.519.0232 53.594-.0631 53.594-.0631l-.06358-15.665h-52.62c-.27926-1.6828-.20829-199.78.06358-200.69 1.6119-.225 425.79-.1438 426.72.07426.25653 1.5279.1824 199.65-.0982 200.69h-354.74v15.667s1.3845 0 2.0182.0232h354.25c6.3531-.0631 11.982-4.0483 14.147-10.038.69741-1.9079.89785-3.8747.89785-5.886v-202.8c-.13354-6.6996-4.6932-12.585-11.143-14.365zm-360.14 174.01v-40.513c0-.91374.25653-1.5554 1.0028-2.1347 3.129-2.4743 6.2158-5.019 9.3034-7.5448.30803-.22871.60752-.43189.99168-.71223.33308.4305.61322.78284.87185 1.1699 5.2486 7.5722 10.501 15.136 15.746 22.696 6.4361 9.3128 12.883 18.583 19.306 27.852.35674.53803.68407.94598 1.475.94598 6.7627-.0232 13.519-.0232 20.273-.0232.22361 0 .4537-.0743.80993-.15494-14.956-21.781-29.85-43.412-44.79-65.174 3.0057-3.4891 5.9134-6.8472 8.8178-10.288 2.912-3.3691 5.8136-6.7497 8.7208-10.142 2.9029-3.3839 5.7849-6.7734 8.6954-10.161 2.9045-3.3952 5.8136-6.7826 8.6851-10.168 2.8915-3.3601 5.7622-6.7219 8.8271-10.347h-1.704c-6.1202 0-12.237.03707-18.358-.0232-1.1253 0-1.835.32611-2.5775 1.1995-15.036 17.806-30.108 35.614-45.178 53.399-.19994.22776-.45973.43188-.89398.83223v-44.294c0-3.6662.0631-7.3435 0-11.012h-18.909v116.15c1.5011.2635 17.926.20969 18.939-.0631v-1.4778zm100.96 1.681c.15215-.43977.32612-.81748.45878-1.2267 3.0557-8.6814 6.1147-17.348 9.1787-26.037.50973-1.3965 1.0166-2.8008 1.4772-4.2031.18231-.58535.48083-.89161 1.0981-.81748.19994.0232.43236 0 .6355 0h43.136c3.8993 10.803 7.7716 21.529 11.629 32.255h20.193c-14.567-39.029-29.072-77.903-43.549-116.77h-20.649c-.1327.25469-.2301.44024-.28254.61435-14.377 38.551-28.737 77.119-43.109 115.66-.0631.0631-.0631.18231-.0631.25654v.1234c0 .0501.0631.0743.0743.1322h19.734zm17.457-50.036c3.9768-11.515 8.0101-22.979 11.885-34.526 1.5549-4.6404 2.7269-9.4269 4.0507-14.159.11181-.3586.18231-.7185.33309-1.2583.19994.30524.35627.49141.41055.69246 3.1587 11.794 7.4766 23.237 11.398 34.807 1.6288 4.8139 3.3157 9.5985 4.9739 14.415.12618.43097.25097.86203.40405 1.3949h-33.882c.15123-.50194.27927-.93364.42586-1.3654zm102.24-57.278c0-3.0077.11083-5.988-.0868-8.9671h-18.675c-.31545 1.4523-.23845 115.33.0631 116.29h68.021v-16.18h-32.812c-2.7584 0-5.5385.0232-8.2848 0-2.7069-.0232-5.4025.0993-8.2101-.0631v-91.058zm81.201-8.2513c0-.18045 0-.33029-.0626-.51752 0-.05008-.0626-.06309-.0626-.09881 0-.0232-.0749-.06309-.0749-.06309h-18.739v116.22h18.838c.0626-.19531.11047-.29922.11047-.43097v-115.11z" fill="#367bf0" fill-rule="evenodd" stroke-width="1.2274"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
1
docs/assets/images/icon/linux-mint.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="256" height="256" viewBox="0 0 256 256" id="svg2" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><g id="layer3"><circle style="fill:#86be43;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none" id="path40" cx="128" cy="128" r="128" /><path style="color:#000000;fill:#ffffff;stroke-width:0;-inkscape-stroke:none" d="m 44.00001,50.00001 v 108 c 0,26.3675 21.63249,48 48,48 h 72 c 26.3675,0 48,-21.6325 48,-48 v -60 c 0,-19.7401 -16.25991,-36 -36,-36 -9.22193,0 -17.60014,3.64514 -24,9.43946 -6.39986,-5.79432 -14.77808,-9.43946 -24,-9.43946 -19.7401,0 -36,16.2599 -36,36 v 60 h 24 v -60 c 0,-6.76954 5.23046,-12 12,-12 6.76953,0 12,5.23046 12,12 v 60 h 24 v -60 c 0,-6.76954 5.23046,-12 12,-12 6.76953,0 12,5.23046 12,12 v 60 c 0,13.39696 -10.60304,24 -24,24 h -72 c -13.39697,0 -24,-10.60304 -24,-24 v -108 z" id="path4193" /></g></svg>
|
||||
|
After Width: | Height: | Size: 904 B |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.6 KiB |
BIN
docs/assets/images/sponsor/cn2network.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
BIN
docs/assets/images/sponsor/posuigongfangyun.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 13 KiB |
@@ -755,7 +755,7 @@ const mirrorsTableFilterSelectOptions = [
|
||||
{
|
||||
value: 'kali',
|
||||
label: 'Kali Linux',
|
||||
iconName: 'kali-linux.svg',
|
||||
iconName: 'kali-linux.png',
|
||||
},
|
||||
{
|
||||
value: 'armbian',
|
||||
@@ -775,7 +775,7 @@ const mirrorsTableFilterSelectOptions = [
|
||||
{
|
||||
value: 'linuxmint',
|
||||
label: 'Linux Mint',
|
||||
iconName: 'linux-mint.ico',
|
||||
iconName: 'linux-mint.svg',
|
||||
},
|
||||
{
|
||||
value: 'deepin',
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2025-11-02`
|
||||
|
||||
* Adapted for Kylin Server to docker script [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
### `2025-10-12`
|
||||
|
||||
* Added support for I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2025-11-02`
|
||||
|
||||
* Docker 脚本新增适配 Kylin Server 操作系统 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
### `2025-10-12`
|
||||
|
||||
* 新增适配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
@@ -6,6 +6,10 @@ search:
|
||||
exclude: true
|
||||
---
|
||||
|
||||
### `2025-11-02`
|
||||
|
||||
* Docker 腳本新增適配 Kylin Server 作業系統 [#1ddf1fb](https://github.com/SuperManito/LinuxMirrors/commit/1ddf1fb708987cf59c4ef56b0a0410caf1b8e726)
|
||||
|
||||
### `2025-10-12`
|
||||
|
||||
* 新增適配 I18n [#bf2adc1](https://github.com/SuperManito/LinuxMirrors/commit/bf2adc1adf4f2de4820f617a23aabf247a47281c)
|
||||
|
||||
@@ -21,7 +21,7 @@ hide:
|
||||
<figcaption>GNU/Linux mirror switching script & Docker installation and registry mirror switching script</figcaption>
|
||||
<figcaption>One-Click Script Makes Mirror Switching Easier</figcaption>
|
||||
</figure>
|
||||
<figure class="home-cmd no-select" style="margin: 0; display: flex; flex-direction: column; justify-content: center" markdown>
|
||||
<figure class="home-cmd no-select" style="margin: 0 auto; display: flex; flex-direction: column; justify-content: center" markdown>
|
||||
=== ":linux:{ .middle } GNU/Linux"
|
||||
|
||||
<img src="/assets/images/brand/command/linux-light.png#only-light" alt="command-linux" />
|
||||
@@ -105,31 +105,31 @@ hide:
|
||||
|
||||
| Operating System | Supported Versions |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="Supports Ubuntu family derivatives, such as <code>UKylin</code>, <code>Kubuntu</code>, etc.<br/>Due to rapid iteration, not all non-LTS versions are directly supported. See documentation for details." } | _14~25_ |
|
||||
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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="Uses <code>CentOS Stream</code> or <code>CentOS</code> mirrors" } | _7~10_ |
|
||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> mirrors" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _8~13_ |
|
||||
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" width="16" height="16" style="vertical-align: -0.15em"></a> **Ubuntu** :material-information-outline:{ title="Supports Ubuntu family derivatives, such as <code>UKylin</code>, <code>Kubuntu</code>, etc.<br/>Due to rapid iteration, not all non-LTS versions are directly supported. See documentation for details." } | _14~25_ |
|
||||
| <a href="https://www.kali.org" title="https://www.kali.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | _all_ |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _17~22 / LMDE 2~7_ |
|
||||
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> or <code>CentOS</code> mirrors" } | _7~10_ |
|
||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="Uses <code>CentOS Stream</code> mirrors" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
|
||||
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@ hide:
|
||||
<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>
|
||||
<figure class="home-cmd no-select" style="margin: 0 auto; display: flex; flex-direction: column; justify-content: center" markdown>
|
||||
=== ":linux:{ .middle } GNU/Linux"
|
||||
|
||||
<img src="/assets/images/brand/command/linux-light.png#only-light" alt="command-linux" />
|
||||
@@ -105,31 +105,31 @@ hide:
|
||||
|
||||
| 操作系统 | 适配版本 |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler(开源欧拉)** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _8~13_ |
|
||||
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | _all_ |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _17~22 / LMDE 2~7_ |
|
||||
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler(开源欧拉)** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin(开放麒麟)** | _all_ |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
|
||||
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@ hide:
|
||||
<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>
|
||||
<figure class="home-cmd no-select" style="margin: 0 auto; display: flex; flex-direction: column; justify-content: center" markdown>
|
||||
=== ":linux:{ .middle } GNU/Linux"
|
||||
|
||||
<img src="/assets/images/brand/command/linux-light.png#only-light" alt="command-linux" />
|
||||
@@ -105,31 +105,31 @@ hide:
|
||||
|
||||
| 作業系統 | 適配版本 |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" width="16" height="16" style="vertical-align: -0.35em"></a> **Debian** | _8~13_ |
|
||||
| <a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | _all_ |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" width="16" height="16" style="vertical-align: -0.2em"></a> **Linux Mint** | _17~22 / LMDE 2~7_ |
|
||||
| <a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | _all_ |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.125em"></a> **CentOS** | _7~8 / Stream 8~10_ |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | _8~10_ |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** :material-information-outline:{ title="使用 <code>CentOS Stream</code> 源" } | _8~10_ |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" width="16" height="16" style="vertical-align: -0.2em"></a> **openEuler** | _20~25_ |
|
||||
| <a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | _all_ |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></a> **openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" width="16" height="16" style="vertical-align: -0.15em"></a> **Arch Linux** | _all_ |
|
||||
| <a href="https://manjaro.org" title="https://manjaro.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" width="16" height="16" style="vertical-align: -0.2em"></a> **Gentoo** | _all_ |
|
||||
| <a href="https://nixos.org" title="https://nixos.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | _19~25_ |
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -255,4 +255,8 @@ search:
|
||||
|
||||
!!! tip "This page displays only the default repository addresses provided by the script. If you can't find the one you want, don't worry—the script supports custom addresses via command options. See [Advanced Usage](../use/index.md#command-options-advanced-usage) for details."
|
||||
|
||||
> The flag icons on this page are for quick geographic identification only and do not represent any political stance of the author. Please do not over-interpret. Statement made for clarification.
|
||||
---
|
||||
|
||||
!!! warning "Because the information on this page may be controversial, it is recommended that you do not include this page's content in your sharing on certain social media platforms to avoid unnecessary trouble."
|
||||
|
||||
The flag icons on this page are for quick geographic identification only and do not represent any political stance of the author. Please do not over-interpret. Statement made for clarification.
|
||||
|
||||
@@ -257,4 +257,8 @@ search:
|
||||
|
||||
!!! tip "该页面展示的均为脚本默认提供可供选择的软件源地址,如果没有找到你想使用的也没有关系,脚本支持命令选项可自定义使用,详见[高级用法](../use/index.md#命令选项高级用法)"
|
||||
|
||||
> 本页面涉及的旗帜图标仅用于快速区分地理位置,不代表作者任何的政治立场,请不要过度解读,特此声明。
|
||||
---
|
||||
|
||||
!!! warning "由于该页面的信息可能会引起争议,为了避免不必要的麻烦,建议不要在部分社交媒体的分享中包含此页面内容"
|
||||
|
||||
本页面涉及的旗帜图标仅用于快速区分地理位置,不代表作者任何的政治立场,请不要过度解读,特此声明。
|
||||
|
||||
@@ -257,4 +257,8 @@ search:
|
||||
|
||||
!!! tip "該頁面顯示的皆為腳本預設提供可供選擇的軟體源位址,如果沒有找到你想使用的也沒有關係,腳本支援命令選項可自定義使用,詳見[進階用法](../use/index.md#命令選項進階用法)"
|
||||
|
||||
> 本頁面涉及的旗幟圖示僅用於快速區分地理位置,不代表作者任何的政治立場,請不要過度解讀,特此聲明。
|
||||
---
|
||||
|
||||
!!! warning "由於該頁面的資訊可能會引起爭議,為了避免不必要的麻煩,建議不要在部分社交媒體的分享中包含此頁面內容"
|
||||
|
||||
本頁面涉及的旗幟圖示僅用於快速區分地理位置,不代表作者任何的政治立場,請不要過度解讀,特此聲明。
|
||||
|
||||
@@ -7,7 +7,6 @@ function install_docker() {
|
||||
|
||||
# script options
|
||||
local script_host="linuxmirrors.cn" # official host (CDN), more host see official site
|
||||
local script_lang="zh-hans" # script display language: zh-hans / zh-hant / en / auto
|
||||
local close_firewall="true" # close firewalld service and selinux (redhat systems need)
|
||||
# mirrors options
|
||||
local source_docker_ce_address="mirrors.tencent.com/docker-ce" # global high availability address
|
||||
@@ -52,15 +51,11 @@ function install_docker() {
|
||||
fi
|
||||
|
||||
# install docker engine
|
||||
bash <(curl -sSL https://${script_host}/docker.sh) \
|
||||
bash <(curl -sSL https://${script_host}/docker-lite.sh) \
|
||||
--source "${source_docker_ce_address}" \
|
||||
--source-registry "${source_docker_registry_address}" \
|
||||
--protocol "${source_docker_ce_protocol}" \
|
||||
--close-firewall "${close_firewall}" \
|
||||
--install-latest true \
|
||||
--ignore-backup-tips \
|
||||
--lang "${script_lang}" \
|
||||
--pure-mode
|
||||
--close-firewall "${close_firewall}"
|
||||
}
|
||||
|
||||
install_docker
|
||||
|
||||
@@ -110,7 +110,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the systems displayed on the official website, it also supports special systems such as <code>Huawei Cloud EulerOS</code> <code>TencentOS Server</code> <code>Alibaba Cloud Linux</code>" }
|
||||
Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the operating systems shown on the official website homepage, it also supports special systems such as those shown below. </br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
|
||||
|
||||
- :material-weight-lifter:{ .lg .middle } __Powerful and unparalleled__
|
||||
|
||||
@@ -282,6 +282,7 @@ Command options(name/meaning/value):
|
||||
--only-registry \
|
||||
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
|
||||
```
|
||||
> The option value can specify multiple addresses, which must be separated by commas.
|
||||
|
||||
=== "Manual Replacement"
|
||||
|
||||
@@ -470,6 +471,20 @@ Command options(name/meaning/value):
|
||||
|
||||
You can also use [{ width="140" style="vertical-align: -0.2rem" }](https://www.docker.com/products/docker-desktop)
|
||||
|
||||
## Lite Version
|
||||
|
||||
The project also provides a simplified version, which is a copy of the main script, designed for enterprise products and large open-source community projects. It has the following features:
|
||||
|
||||
- Single display language `English`, no I18n internationalization
|
||||
- Uses the official source by default, removing the interactive selection of built-in software sources
|
||||
- Removes irrelevant printouts
|
||||
- Retains core logic and command option design
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/docker-lite.sh)
|
||||
```
|
||||
> Please familiarize yourself with this project before using it. It is not recommended for novice users.
|
||||
|
||||
## Best Practices
|
||||
|
||||
??? note "Code examples for enterprise product deployment and automated operations such as CI/CD (expand to view)"
|
||||
|
||||
@@ -110,7 +110,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
兼容大量不受官方安装脚本支持的衍生操作系统 :material-information-outline:{ title="除官网首页展示的系统外还支持 <code>Huawei Cloud EulerOS</code> <code>TencentOS Server</code> <code>Alibaba Cloud Linux</code> 等特制系统" }
|
||||
兼容大量不受官方安装脚本支持的衍生操作系统 :material-information-outline:{ title="除官网首页展示的系统外还支持下方等特制系统</br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
|
||||
|
||||
- :material-weight-lifter:{ .lg .middle } __功能强大、无与伦比__
|
||||
|
||||
@@ -282,6 +282,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
|
||||
--only-registry \
|
||||
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
|
||||
```
|
||||
> 选项值可以指定多个地址,需使用英文逗号进行分割
|
||||
|
||||
=== "手动替换"
|
||||
|
||||
@@ -470,6 +471,20 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --help
|
||||
|
||||
也可以使用 [{ width="140" style="vertical-align: -0.2rem" }](https://www.docker.com/products/docker-desktop)
|
||||
|
||||
## 精简版(Lite)
|
||||
|
||||
项目额外提供一个精简版本,是主脚本的复制,面向企业产品、大型开源社区项目使用,具有以下特性:
|
||||
|
||||
- 单一显示语言 `English`,无 I18n 国际化功能
|
||||
- 默认使用官方源,去除了交互选择内置软件源功能
|
||||
- 去除了无关的打印内容
|
||||
- 保留核心逻辑与命令选项设计
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/docker-lite.sh)
|
||||
```
|
||||
> 请熟悉本项目后再使用,不建议新手用户使用
|
||||
|
||||
## 最佳实践
|
||||
|
||||
??? note "适用于企业产品部署以及 CI/CD 等自动化运维场景的代码示例(展开查看)"
|
||||
|
||||
@@ -110,7 +110,7 @@ hide:
|
||||
|
||||
---
|
||||
|
||||
相容於大量不受官方安裝腳本支援的衍生作業系統 :material-information-outline:{ title="除官網首頁展示的系統外也支援 <code>Huawei Cloud EulerOS</code> <code>TencentOS Server</code> <code>Alibaba Cloud Linux</code> 等特製系統" }
|
||||
相容於大量不受官方安裝腳本支援的衍生作業系統 :material-information-outline:{ title="除官網首頁展示的系統外還支援下方等特製系統</br><ul><li>Kylin Server</li><li>Huawei Cloud EulerOS</li><li>TencentOS Server</li><li>Alibaba Cloud Linux</li></ul>" }
|
||||
|
||||
- :material-weight-lifter:{ .lg .middle } __功能強大、無與倫比__
|
||||
|
||||
@@ -282,6 +282,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --help
|
||||
--only-registry \
|
||||
--source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
|
||||
```
|
||||
> 選項值可以指定多個位址,需使用英文逗號分割
|
||||
|
||||
=== "手動替換"
|
||||
|
||||
@@ -470,6 +471,20 @@ $ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --help
|
||||
|
||||
也可以使用 [{ width="140" style="vertical-align: -0.2rem" }](https://www.docker.com/products/docker-desktop)
|
||||
|
||||
## 精簡版(Lite)
|
||||
|
||||
專案額外提供一個精簡版本,是主腳本的複製,面向企業產品、大型開源社群專案使用,具有以下特性:
|
||||
|
||||
- 單一顯示語言 `English`,無 I18n 國際化功能
|
||||
- 預設使用官方來源,去除了互動選擇內建軟體源功能
|
||||
- 去除了無關的列印內容
|
||||
- 保留核心邏輯與指令選項設計
|
||||
|
||||
``` bash
|
||||
bash <(curl -sSL https://linuxmirrors.cn/docker-lite.sh)
|
||||
```
|
||||
> 請熟悉本項目後再使用,不建議新手使用者使用
|
||||
|
||||
- ## 最佳實踐
|
||||
|
||||
??? note "適用於企業產品部署以及 CI/CD 等自動化維運場景的程式碼範例(展開檢視)"
|
||||
|
||||
@@ -60,6 +60,14 @@
|
||||
<!-- 25 11 14 -->
|
||||
<img src="/assets/images/sponsor/bueryun.svg" alt="不二云" style="width: 64% !important" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://idc.cn2network.com" title="超低价优质机器免实名自动开通">
|
||||
<!-- 26 2 14 -->
|
||||
<img src="/assets/images/sponsor/cn2network.png" alt="CN2network" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-flex" target="_blank" rel="noopener noreferrer" href="https://www.crash.work" title="专注高性能国内外云服务器">
|
||||
<!-- 25 12 21 -->
|
||||
<img src="/assets/images/sponsor/posuigongfangyun.png" alt="破碎工坊云" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -116,8 +116,16 @@
|
||||
padding-right: 3em;
|
||||
}
|
||||
|
||||
.home-cmd .tabbed-block {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.home-cmd .md-clipboard {
|
||||
top: calc(100% - 60px);
|
||||
position: absolute;
|
||||
top: auto;
|
||||
bottom: 20px;
|
||||
right: 12px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.home-cmd img {
|
||||
@@ -128,7 +136,8 @@
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.home-cmd .md-clipboard {
|
||||
top: calc(100% - 50px);
|
||||
bottom: 8px;
|
||||
right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
docs/theme/partials/toc.html
vendored
@@ -26,7 +26,7 @@
|
||||
<img src="/assets/images/sponsor/1ms-dark.svg#only-dark" alt="毫秒镜像" style="filter: grayscale(1) invert(0.4)" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.dkdun.cn/aff/VAWGETUL" title="专注独立IP高频VPS|R9/i9系列定制">
|
||||
<img src="/assets/images/sponsor/linfengyun.png#only-light" alt="林枫云" style="filter: grayscale(1) invert(0.7)" />
|
||||
<img src="/assets/images/sponsor/linfengyun.png#only-light" alt="林枫云" style="filter: grayscale(1) invert(0.6)" />
|
||||
<img src="/assets/images/sponsor/linfengyun.png#only-dark" alt="林枫云" style="filter: grayscale(1) invert(0.5)" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.bsncdn.org" title="香港日本高防CDN,免实名/免备案,轻松阻断 DDOS / CC 攻击">
|
||||
@@ -65,6 +65,14 @@
|
||||
<img src="/assets/images/sponsor/bueryun.svg#only-light" alt="不二云" style="filter: grayscale(1) invert(0.6)" />
|
||||
<img src="/assets/images/sponsor/bueryun.svg#only-dark" alt="不二云" style="filter: grayscale(1) invert(0.7)" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://idc.cn2network.com" title="超低价优质机器免实名自动开通">
|
||||
<img src="/assets/images/sponsor/cn2network.png#only-light" alt="CN2network" style="filter: grayscale(1) invert(0.4)" />
|
||||
<img src="/assets/images/sponsor/cn2network.png#only-dark" alt="CN2network" style="filter: grayscale(1) invert(0.3)" />
|
||||
</a>
|
||||
<a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" href="https://www.crash.work" title="专注高性能国内外云服务器">
|
||||
<img src="/assets/images/sponsor/posuigongfangyun.png#only-light" alt="破碎工坊云" style="filter: grayscale(1) invert(0.2)" />
|
||||
<img src="/assets/images/sponsor/posuigongfangyun.png#only-dark" alt="破碎工坊云" style="filter: grayscale(1) invert(0.8)" />
|
||||
</a>
|
||||
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" rel="noopener noreferrer" title="{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}" href="/sponsor/">
|
||||
<span style="font-size: 0.6rem; opacity: 0.5">
|
||||
<strong>{{'Become a Sponsor' if i18n_page_locale == 'en' else '成為贊助商' if i18n_page_locale == 'zh-Hant' else '成为赞助商'}}</strong>
|
||||
|
||||
@@ -151,17 +151,17 @@ hide:
|
||||
|
||||
<div class="grid cards" markdown>
|
||||
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __Run the script as `ROOT` user__
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __`ROOT` privileges required__
|
||||
|
||||
---
|
||||
|
||||
Switch command: `sudo -i` or `su root`. Different systems use different commands because some systems do not set a password for the ROOT account during initial installation (such as Ubuntu) or the system disables ROOT login by default.
|
||||
Please run this script using the `root` account, switching between the `sudo -i` and `su root` commands, as the commands vary depending on the system. Also, avoid directly running one-click commands such as `sudo bash <(xxx)` using `sudo`.
|
||||
|
||||
- :material-numeric-2:{style="color: #5b84f5" .lg} __It is recommended to use a modern `SSH` client__
|
||||
|
||||
---
|
||||
|
||||
If your terminal displays garbled Chinese, you will not be able to see the interactive content. Some GUI terminal apps may have unpredictable display issues. Some systems automatically enable SSH service; otherwise, see [how to enable SSH](#how-to-enable-ssh-remote-login).
|
||||
The system's GUI graphical interface terminal application may experience some unpredictable display issues. Some systems will automatically enable the SSH service; otherwise, please refer to [how to enable SSH](#how-to-enable-ssh-remote-login).
|
||||
|
||||
- :material-numeric-3:{style="color: #5b84f5" .lg} __If running the script for the first time on a new system__
|
||||
|
||||
@@ -285,7 +285,7 @@ hide:
|
||||
|
||||
- #### Restore backed up mirrors
|
||||
|
||||
!!! quote ""
|
||||
??? quote "Click to expand and view"
|
||||
|
||||
=== "Debian-based / openKylin"
|
||||
|
||||
@@ -352,36 +352,79 @@ hide:
|
||||
|
||||
- #### How to enable SSH remote login
|
||||
|
||||
!!! quote ""
|
||||
??? quote "Click to expand and view"
|
||||
|
||||
The commands and steps are for reference only and only cover some common distributions.
|
||||
The commands and configuration steps are for reference only; please be flexible and adapt them accordingly.
|
||||
|
||||
- Check if `SSH` service is installed
|
||||
|
||||
``` bash
|
||||
ls /etc | grep ssh
|
||||
```
|
||||
> If this folder does not exist, SSH is not installed. Install the `openssh` package with your package manager.
|
||||
> Note that package names may differ; you can use `openssh*` as a wildcard.
|
||||
|
||||
- Allow Root login
|
||||
If this folder does not exist, SSH is not installed. Install the `openssh-server` package with your package manager. The installation command is as follows:
|
||||
|
||||
=== "Debian-based / openKylin"
|
||||
|
||||
``` bash
|
||||
apt-get install -y openssh-server
|
||||
```
|
||||
|
||||
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS` `openKylin`
|
||||
|
||||
For new systems, run `apt-get update` first.
|
||||
|
||||
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
|
||||
|
||||
``` bash
|
||||
dnf install -y openssh-server || yum install -y openssh-server
|
||||
```
|
||||
|
||||
> `Red Hat Enterprise Linux` `CentOS` `Rocky Linux` `AlmaLinux` `Fedora` `openEuler` `OpenCloudOS` `Anolis OS`
|
||||
|
||||
=== "openSUSE"
|
||||
|
||||
``` bash
|
||||
zypper install openssh-server
|
||||
```
|
||||
|
||||
=== "Arch Linux / Manjaro"
|
||||
|
||||
``` bash
|
||||
pacman -S openssh
|
||||
```
|
||||
|
||||
=== "Alpine Linux"
|
||||
|
||||
``` bash
|
||||
apk --no-cache add -f openssh
|
||||
```
|
||||
|
||||
=== "Gentoo"
|
||||
|
||||
``` bash
|
||||
emerge --ask --changed-use --oneshot net-misc/openssh
|
||||
```
|
||||
|
||||
> Package names may vary across different systems. If you encounter a "package not found" error, try using wildcards `openssh*` to install it.
|
||||
|
||||
- Configure `SSH` service
|
||||
|
||||
``` { .bash title="Allow root account login" }
|
||||
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
|
||||
```
|
||||
|
||||
- Enable password authentication
|
||||
|
||||
``` bash
|
||||
``` { .bash title="Enable password authentication" }
|
||||
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
|
||||
```
|
||||
|
||||
- Start/restart `SSH` service
|
||||
|
||||
``` bash
|
||||
ps -ef | grep -q ssh ; [ $? -eq 0 ] && systemctl restart sshd || systemctl enable --now sshd
|
||||
for ssh_svc in sshd ssh openssh; do systemctl restart "${ssh_svc}" 2>/dev/null && break ; systemctl enable --now "${ssh_svc}" 2>/dev/null && break ; done
|
||||
```
|
||||
> Service names may differ; if not `sshd`, try `ssh`.
|
||||
|
||||
!!! tip "Friendly reminder: If you are using a public server, it is recommended to disable SSH password authentication and set up key-based login."
|
||||
|
||||
- #### No arrow key interactive UI
|
||||
|
||||
@@ -543,31 +586,31 @@ Below are some advanced usage examples
|
||||
|
||||
| OS Name | Names Involved |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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="Version 9 uses <code>CentOS Stream</code>, 7/8 use <code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" 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" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | `kali` |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" 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" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" width="16" height="16" style="vertical-align: -0.1em"></a> **Red Hat Enterprise Linux** :material-information-outline:{ title="Version 9 uses <code>CentOS Stream</code>, 7/8 use <code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
|
||||
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></a> **openSUSE** | `opensuse` |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" 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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
|
||||
Example:
|
||||
|
||||
@@ -690,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 \
|
||||
|
||||
@@ -153,29 +153,29 @@ hide:
|
||||
|
||||
<div class="grid cards" markdown>
|
||||
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __需使用 `ROOT` 用户执行脚本__
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __需要 `ROOT` 权限__
|
||||
|
||||
---
|
||||
|
||||
切换命令为 `sudo -i` 或 `su root`。不同系统使用的命令不同,因为部分系统没有在初始安装时为 ROOT 账户设置密码(例如 Ubuntu)或系统默认禁止 ROOT 用户登录。
|
||||
请使用 `root` 账户运行本脚本,切换命令为 `sudo -i` 或 `su root`,不同系统使用的命令不同。另外注意不要通过 `sudo` 直接运行一键命令例如 `sudo bash <(xxx)`。
|
||||
|
||||
- :material-numeric-2:{style="color: #5b84f5" .lg} __建议使用现代化的 `SSH` 客户端应用__
|
||||
|
||||
---
|
||||
|
||||
如果你系统命令行界面的中文显示乱码那么将导致无法查看交互内容,此外部分系统 GUI 图形界面的终端应用可能存在一些无法预料的显示问题。部分系统会自动开启 SSH 服务,否则请参考[开启方法](#关于开启-ssh-远程登录的方法)。
|
||||
如果系统命令行界面的中文显示乱码,将导致无法查看交互内容,此外部分系统 GUI 图形界面的终端应用可能存在一些无法预料的显示问题。部分系统会自动开启 SSH 服务,否则请参考[开启方法](#关于开启-ssh-远程登录的方法)。
|
||||
|
||||
- :material-numeric-3:{style="color: #5b84f5" .lg} __如果是在新装系统上首次执行脚本__
|
||||
|
||||
---
|
||||
|
||||
当前依赖 `curl` 指令获取脚本内容,但部分操作系统没有预装此软件包,届时则会报错 `Command not found`,安装方法详见下方 [_关于报错 Command not found_](#关于报错-command-not-found)。脚本本身与 `curl` `wget` 指令无关,更不会下载任何内容。
|
||||
当前依赖 `curl` 指令获取脚本内容,但部分操作系统未预装此软件包,将会报错 `Command not found`,安装方法详见下方 [_关于报错 Command not found_](#关于报错-command-not-found)。脚本本身与 `curl` `wget` 指令无关,不会下载任何内容。
|
||||
|
||||
- :material-numeric-4:{style="color: #5b84f5" .lg} __脚本运行期间需要交互选择配置__
|
||||
|
||||
---
|
||||
|
||||
请通过方向键 ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ 或 ++w++++a++++s++++d++ 控制选项并按 ++enter++ 回车键确认。如果发现交互异常那么请改变终端软件的窗口大小后重试,另外窗口不要铺满全屏。
|
||||
请通过方向键 ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ 或 ++w++++a++++s++++d++ 控制选项并按 ++enter++ 回车键确认。如果发现交互异常请改变终端软件的窗口大小后重试,避免窗口铺满全屏。
|
||||
|
||||
</div>
|
||||
|
||||
@@ -287,7 +287,7 @@ hide:
|
||||
|
||||
- #### 还原已备份的软件源
|
||||
|
||||
!!! quote ""
|
||||
??? quote "点击展开查看"
|
||||
|
||||
=== "Debian 系 / openKylin"
|
||||
|
||||
@@ -354,36 +354,79 @@ hide:
|
||||
|
||||
- #### 关于开启 SSH 远程登录的方法
|
||||
|
||||
!!! quote ""
|
||||
??? quote "点击展开查看"
|
||||
|
||||
命令以及配置步骤仅供参考,只适配了部分常见发行版
|
||||
命令以及配置步骤仅供参考,注意灵活变通
|
||||
|
||||
- 验证是否已安装 `SSH` 服务
|
||||
|
||||
``` bash
|
||||
ls /etc | grep ssh
|
||||
```
|
||||
> 如果没有这个文件夹说明系统未安装 `SSH` 服务,你需要通过包管理工具安装 `openssh` 软件包
|
||||
> 需要注意的是不同系统上的软件包名称有所差异,可直接使用 `openssh*` 通配符进行安装
|
||||
|
||||
- 设置允许 Root 用户登录
|
||||
如果没有这个文件夹说明系统未安装 `SSH` 服务,你需要通过包管理工具安装 `openssh-server` 软件包,安装命令如下:
|
||||
|
||||
=== "Debian 系 / openKylin"
|
||||
|
||||
``` bash
|
||||
apt-get install -y openssh-server
|
||||
```
|
||||
|
||||
> `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 openssh-server || yum install -y openssh-server
|
||||
```
|
||||
|
||||
> `Red Hat Enterprise Linux` `CentOS` `Rocky Linux` `AlmaLinux` `Fedora` `openEuler` `OpenCloudOS` `Anolis OS`
|
||||
|
||||
=== "openSUSE"
|
||||
|
||||
``` bash
|
||||
zypper install openssh-server
|
||||
```
|
||||
|
||||
=== "Arch Linux / Manjaro"
|
||||
|
||||
``` bash
|
||||
pacman -S openssh
|
||||
```
|
||||
|
||||
=== "Alpine Linux"
|
||||
|
||||
``` bash
|
||||
apk --no-cache add -f openssh
|
||||
```
|
||||
|
||||
=== "Gentoo"
|
||||
|
||||
``` bash
|
||||
emerge --ask --changed-use --oneshot net-misc/openssh
|
||||
```
|
||||
|
||||
> 不同系统上的软件包名称有所差异,如果提示找不到该软件包可尝试使用通配符 `openssh*` 进行安装
|
||||
|
||||
- 配置 `SSH` 服务
|
||||
|
||||
``` { .bash title="允许 root 账户登录" }
|
||||
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
|
||||
``` { .bash title="启用密码认证" }
|
||||
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
|
||||
for ssh_svc in sshd ssh; do systemctl restart "${ssh_svc}" 2>/dev/null && break ; systemctl enable --now "${ssh_svc}" 2>/dev/null && break ; done
|
||||
```
|
||||
> 不同系统上的服务名称有所差异,如果不是 `sshd` 那就试试 `ssh`
|
||||
|
||||
!!! tip "友情提示:如果你正在使用公网服务器,建议关闭 SSH 密码认证方式并设置密钥登录。"
|
||||
|
||||
- #### 关于未显示方向键交互控制界面
|
||||
|
||||
@@ -545,31 +588,31 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
|
||||
|
||||
| 系统名称 | 涉及的名称 |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" 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" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | `kali` |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" 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" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
|
||||
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin(开放麒麟)** | `openkylin` |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16"></a> **openSUSE** | `opensuse` |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" 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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
|
||||
请看下面的例子
|
||||
|
||||
@@ -692,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) \
|
||||
|
||||
@@ -153,29 +153,29 @@ hide:
|
||||
|
||||
<div class="grid cards" markdown>
|
||||
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __需使用 `ROOT` 執行腳本__
|
||||
- :material-numeric-1:{style="color: #5b84f5" .lg} __需要 `ROOT` 權限__
|
||||
|
||||
---
|
||||
|
||||
切換指令為 `sudo -i` 或 `su root`。不同系統使用的命令不同,因為部分系統沒有在初始安裝時為 ROOT 帳戶設定密碼(例如 Ubuntu)或系統預設禁止 ROOT 登入。
|
||||
請使用 `root` 帳戶執行本腳本,切換指令為 `sudo -i` 或 `su root`,不同系統使用的指令不同。另外注意不要透過 `sudo` 直接執行一鍵指令例如 `sudo bash <(xxx)`。
|
||||
|
||||
- :material-numeric-2:{style="color: #5b84f5" .lg} __建議使用現代化的 `SSH` 用戶端應用__
|
||||
|
||||
---
|
||||
|
||||
如果你系統命令列介面的中文顯示亂碼那麼將導致無法查看互動內容,此外部分系統 GUI 圖形介面的終端應用可能存在一些無法預料的顯示問題。部分系統會自動開啟 SSH 服務,否則請參考[開啟方法](#關於開啟-ssh-遠端登入的方法)。
|
||||
如果系統命令列介面的中文顯示亂碼,將導致無法查看互動內容,此外部分系統 GUI 圖形介面的終端應用可能存在一些無法預料的顯示問題。部分系統會自動開啟 SSH 服務,否則請參考[開啟方法](#關於開啟-ssh-遠端登入的方法)。
|
||||
|
||||
- :material-numeric-3:{style="color: #5b84f5" .lg} __如果是在新裝系統上首次執行腳本__
|
||||
|
||||
---
|
||||
|
||||
目前依賴 `curl` 指令取得腳本內容,但部分作業系統沒有預先安裝此軟體包,屆時則會報錯 `Command not found`,安裝方法詳見下方 [_關於報錯 Command not found_](#關於報錯-command-not-found)。腳本本身與 `curl` `wget` 指令無關,更不會下載任何內容。
|
||||
目前依賴 `curl` 指令取得腳本內容,但部分作業系統未預先安裝此軟體包,將會報錯 `Command not found`,安裝方法詳見下方 [_關於報錯 Command not found_](#關於報錯-command-not-found)。腳本本身與 `curl` `wget` 指令無關,不會下載任何內容。
|
||||
|
||||
- :material-numeric-4:{style="color: #5b84f5" .lg} __腳本運行期間需要互動選擇配置__
|
||||
|
||||
---
|
||||
|
||||
請透過方向鍵 ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ 或 ++w++++a++++s++++d++ 控制選項並按 ++enter++ 回車鍵確認。如果發現互動異常那麼請改變終端軟體的視窗大小後重試,另外視窗不要鋪滿全螢幕。
|
||||
請透過方向鍵 ++arrow-up++++arrow-down++++arrow-left++++arrow-right++ 或 ++w++++a++++s++++d++ 控制選項並按 ++enter++ 回車鍵確認。如果發現互動異常請改變終端軟體的視窗大小後重試,避免視窗鋪滿全螢幕。
|
||||
|
||||
</div>
|
||||
|
||||
@@ -287,7 +287,7 @@ hide:
|
||||
|
||||
- #### 還原已備份的軟體源
|
||||
|
||||
!!! quote ""
|
||||
??? quote "點擊展開查看"
|
||||
|
||||
=== "Debian 系 / openKylin"
|
||||
|
||||
@@ -354,36 +354,79 @@ hide:
|
||||
|
||||
- #### 關於開啟 SSH 遠端登入的方法
|
||||
|
||||
!!! quote ""
|
||||
??? quote "點擊展開查看"
|
||||
|
||||
命令以及設定步驟僅供參考,只適配了部分常見發行版
|
||||
指令以及設定步驟僅供參考,注意靈活變通
|
||||
|
||||
- 驗證是否已安裝 `SSH` 服務
|
||||
|
||||
``` bash
|
||||
ls /etc | grep ssh
|
||||
```
|
||||
> 如果沒有這個資料夾說明系統未安裝 `SSH` 服務,你需要透過套件管理工具安裝 `openssh` 軟體包
|
||||
> 要注意的是不同系統上的軟體包名稱有所差異,可直接使用 `openssh*` 通配符進行安裝
|
||||
|
||||
- 設定允許 Root 登入
|
||||
如果沒有這個資料夾說明系統未安裝 `SSH` 服務,你需要透過套件管理工具安裝 `openssh-server` 軟體包,安裝指令如下:
|
||||
|
||||
=== "Debian 系 / openKylin"
|
||||
|
||||
``` bash
|
||||
apt-get install -y openssh-server
|
||||
```
|
||||
|
||||
> `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 openssh-server || yum install -y openssh-server
|
||||
```
|
||||
|
||||
> `Red Hat Enterprise Linux` `CentOS` `Rocky Linux` `AlmaLinux` `Fedora` `openEuler` `OpenCloudOS` `Anolis OS`
|
||||
|
||||
=== "openSUSE"
|
||||
|
||||
``` bash
|
||||
zypper install openssh-server
|
||||
```
|
||||
|
||||
=== "Arch Linux / Manjaro"
|
||||
|
||||
``` bash
|
||||
pacman -S openssh
|
||||
```
|
||||
|
||||
=== "Alpine Linux"
|
||||
|
||||
``` bash
|
||||
apk --no-cache add -f openssh
|
||||
```
|
||||
|
||||
=== "Gentoo"
|
||||
|
||||
``` bash
|
||||
emerge --ask --changed-use --oneshot net-misc/openssh
|
||||
```
|
||||
|
||||
> 不同系統上的軟體包名稱有所差異,如果提示找不到該軟體包可嘗試使用通配符 `openssh*` 進行安裝
|
||||
|
||||
- 設定 `SSH` 服務
|
||||
|
||||
``` { .bash title="允許 root 帳戶登入" }
|
||||
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
|
||||
``` { .bash title="啟用密碼認證" }
|
||||
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
|
||||
for ssh_svc in sshd ssh openssh; do systemctl restart "${ssh_svc}" 2>/dev/null && break ; systemctl enable --now "${ssh_svc}" 2>/dev/null && break ; done
|
||||
```
|
||||
> 不同系統上的服務名稱有所差異,如果不是 `sshd` 那就試試 `ssh`
|
||||
|
||||
!!! tip "友情提示:如果你正在使用公網伺服器,建議關閉 SSH 密碼認證方式並設定金鑰登入。"
|
||||
|
||||
- #### 關於未顯示方向鍵交互控制介面
|
||||
|
||||
@@ -545,31 +588,31 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --zh-hant --help
|
||||
|
||||
| 系統名稱 | 涉及的名稱 |
|
||||
| --- | :---: |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **openSUSE** | `opensuse` |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
| <a href="https://www.debian.org" title="https://www.debian.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/debian.svg" alt="Debian" 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" rel="noopener noreferrer"><img src="/assets/images/icon/ubuntu.svg" alt="Ubuntu" 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" rel="noopener noreferrer"><img src="/assets/images/icon/kali-linux.png" alt="Kali Linux" width="16" height="16"></a> **Kali Linux** | `kali` |
|
||||
| <a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/linux-mint.svg" alt="Linux Mint" 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" rel="noopener noreferrer"><img src="/assets/images/icon/deepin.png" alt="Deepin" 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" rel="noopener noreferrer"><img src="/assets/images/icon/zorin-os.png" alt="Zorin OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/armbian.png" alt="Armbian" width="16" height="16" style="vertical-align: -0.2em"></a> **Armbian** | `armbian` |
|
||||
| <a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" title="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/proxmox.svg" alt="Proxmox VE" 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" rel="noopener noreferrer"><img src="/assets/images/icon/raspberry-pi.png" alt="Raspberry Pi OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/redhat.svg" alt="Red Hat Enterprise Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/fedora.ico" alt="Fedora" 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" rel="noopener noreferrer"><img src="/assets/images/icon/centos.svg" alt="CentOS" width="16" height="16" style="vertical-align: -0.135em"></a> **CentOS** | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||
| <a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/rocky-linux.svg" alt="Rocky Linux" width="16" height="16" style="vertical-align: -0.2em"></a> **Rocky Linux** | `rocky` |
|
||||
| <a href="https://almalinux.org" title="https://almalinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/almalinux.svg" alt="AlmaLinux" width="16" height="16" style="vertical-align: -0.15em"></a> **AlmaLinux** | `almalinux` `almalinux-vault` |
|
||||
| <a href="https://www.oracle.com/linux" title="https://www.oracle.com/linux" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/oracle-linux.png" alt="Oracle Linux" width="16" height="16" style="vertical-align: -0.25em"></a> **Oracle Linux** | `centos-stream` |
|
||||
| <a href="https://www.openeuler.org" title="https://www.openeuler.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/openeuler.ico" alt="openEuler" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opencloudos.png" alt="OpenCloudOS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/openkylin.ico" alt="openKylin" width="16" height="16" style="vertical-align: -0.25em"></a> **openKylin** | `openkylin` |
|
||||
| <a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/anolis.png" alt="Anolis OS" 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" rel="noopener noreferrer"><img src="/assets/images/icon/opensuse.svg" alt="openSUSE" width="16" height="16" style="vertical-align: -0.15em"></a> **openSUSE** | `opensuse` |
|
||||
| <a href="https://archlinux.org" title="https://archlinux.org" target="_blank" rel="noopener noreferrer"><img src="/assets/images/icon/arch-linux.ico" alt="Arch Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/manjaro.svg" alt="Manjaro" 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" rel="noopener noreferrer"><img src="/assets/images/icon/alpine.png" alt="Alpine Linux" 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" rel="noopener noreferrer"><img src="/assets/images/icon/gentoo.svg" alt="Gentoo" 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" rel="noopener noreferrer"><img src="/assets/images/icon/nixos.svg" alt="NixOS" width="16" height="16" style="vertical-align: -0.15em"></a> **NixOS** | `nix-channels` |
|
||||
|
||||
請看下面的例子
|
||||
|
||||
@@ -692,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 \
|
||||
|
||||
@@ -27,7 +27,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownArch']='Unknown system architecture: {}'
|
||||
['error.unsupportS390x']='Please refer to RHEL distribution announcement for s390x support'
|
||||
['error.input']='Input error, {}!'
|
||||
['error.needRoot']='Insufficient permissions, please run this script as Root user'
|
||||
['error.needRoot']='Insufficient privileges, please run this script as root. Switch command: {}'
|
||||
['error.sync']='{} failed. Please fix system software sources (package repositories) so the {} package manager is available!'
|
||||
['error.downloadGPG']='GPG key download failed, please check network or switch Docker CE mirror and retry!'
|
||||
['error.queryVersionFailed']='Failed to query Docker Engine version list!'
|
||||
|
||||
@@ -27,7 +27,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownArch']='未知的系统架构:{}'
|
||||
['error.unsupportS390x']='请查阅 RHEL 发行版声明以了解 s390x 支持'
|
||||
['error.input']='输入错误,{}!'
|
||||
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
|
||||
['error.needRoot']='权限不足,请切换至 root 账户后运行本脚本,切换命令 {}'
|
||||
['error.sync']='{}出错,请先解决系统原有软件源错误以确保 {} 软件包管理工具可用!'
|
||||
['error.downloadGPG']='GPG 密钥下载失败,请检查网络或更换 Docker CE 软件源后重试!'
|
||||
['error.queryVersionFailed']='查询 Docker Engine 版本列表失败!'
|
||||
|
||||
@@ -27,7 +27,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownArch']='未知的系統架構:{}'
|
||||
['error.unsupportS390x']='請查閱 RHEL 發行版宣告以瞭解 s390x 支援'
|
||||
['error.input']='輸入錯誤,{}!'
|
||||
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
|
||||
['error.needRoot']='權限不足,請切換至 root 帳戶後執行本腳本,切換指令 {}'
|
||||
['error.sync']='{}出錯,請先解決系統原有軟體源錯誤以確保 {} 軟體包管理工具可用!'
|
||||
['error.downloadGPG']='GPG 金鑰下載失敗,請檢查網路或更換 Docker CE 軟體源後重試!'
|
||||
['error.queryVersionFailed']='查詢 Docker Engine 版本清單失敗!'
|
||||
|
||||
@@ -24,7 +24,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownSystem']='Unknown system'
|
||||
['error.unknownVersion']='System version unknown'
|
||||
['error.input']='Input error, {}!'
|
||||
['error.needRoot']='Insufficient permissions, please run this script as Root user'
|
||||
['error.needRoot']='Insufficient privileges, please run this script as root. Switch command: {}'
|
||||
['error.defaultBehavior.https']='HTTPS is used by default'
|
||||
['error.defaultBehavior.noReplace']='No replacement by default'
|
||||
['error.defaultBehavior.noOverwrite']='No overwrite by default'
|
||||
|
||||
@@ -24,7 +24,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownSystem']='未知系统'
|
||||
['error.unknownVersion']='系统版本未知'
|
||||
['error.input']='输入错误,{}!'
|
||||
['error.needRoot']='权限不足,请使用 Root 用户运行本脚本'
|
||||
['error.needRoot']='权限不足,请切换至 root 账户后运行本脚本,切换命令 {}'
|
||||
['error.defaultBehavior.https']='默认使用 HTTPS 协议'
|
||||
['error.defaultBehavior.noReplace']='默认不更换'
|
||||
['error.defaultBehavior.noOverwrite']='默认不覆盖'
|
||||
|
||||
@@ -25,7 +25,7 @@ MESSAGE_CONTENTS=(
|
||||
['error.unknownSystem']='未知系統'
|
||||
['error.unknownVersion']='系統版本未知'
|
||||
['error.input']='輸入錯誤,{}!'
|
||||
['error.needRoot']='權限不足,請使用 Root 使用者執行本腳本'
|
||||
['error.needRoot']='權限不足,請切換至 root 帳戶後執行本腳本,切換指令 {}'
|
||||
['error.defaultBehavior.https']='預設使用 HTTPS 協定'
|
||||
['error.defaultBehavior.noReplace']='預設不更換'
|
||||
['error.defaultBehavior.noOverwrite']='預設不覆蓋'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
mkdocs-material==9.6.22
|
||||
mkdocs-material==9.7.0
|
||||
mkdocs-glightbox==0.5.2
|
||||
mkdocs-exclude-search==0.6.6
|
||||
# mkdocs-minify-plugin==0.8.0
|
||||
|
||||