mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-09 02:40:27 +08:00
新增适配 Linux Mint 操作系统 & 代码重构
This commit is contained in:
550
ChangeMirrors.sh
550
ChangeMirrors.sh
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2024-06-07
|
## Modified: 2024-07-25
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -59,8 +59,10 @@ mirror_list_registry=(
|
|||||||
SYSTEM_DEBIAN="Debian"
|
SYSTEM_DEBIAN="Debian"
|
||||||
SYSTEM_UBUNTU="Ubuntu"
|
SYSTEM_UBUNTU="Ubuntu"
|
||||||
SYSTEM_KALI="Kali"
|
SYSTEM_KALI="Kali"
|
||||||
|
SYSTEM_DEEPIN="Deepin"
|
||||||
|
SYSTEM_LINUX_MINT="Linuxmint"
|
||||||
SYSTEM_REDHAT="RedHat"
|
SYSTEM_REDHAT="RedHat"
|
||||||
SYSTEM_RHEL="RedHat"
|
SYSTEM_RHEL="Red Hat Enterprise Linux"
|
||||||
SYSTEM_CENTOS="CentOS"
|
SYSTEM_CENTOS="CentOS"
|
||||||
SYSTEM_CENTOS_STREAM="CentOS Stream"
|
SYSTEM_CENTOS_STREAM="CentOS Stream"
|
||||||
SYSTEM_ROCKY="Rocky"
|
SYSTEM_ROCKY="Rocky"
|
||||||
@@ -68,13 +70,22 @@ SYSTEM_ALMALINUX="AlmaLinux"
|
|||||||
SYSTEM_FEDORA="Fedora"
|
SYSTEM_FEDORA="Fedora"
|
||||||
SYSTEM_OPENCLOUDOS="OpenCloudOS"
|
SYSTEM_OPENCLOUDOS="OpenCloudOS"
|
||||||
SYSTEM_OPENEULER="openEuler"
|
SYSTEM_OPENEULER="openEuler"
|
||||||
|
SYSTEM_OPENSUSE="openSUSE"
|
||||||
|
SYSTEM_ARCH="Arch"
|
||||||
|
SYSTEM_ALPINE="Alpine"
|
||||||
|
|
||||||
## 定义目录和文件
|
## 定义系统版本文件
|
||||||
File_LinuxRelease=/etc/os-release
|
File_LinuxRelease=/etc/os-release
|
||||||
File_RedHatRelease=/etc/redhat-release
|
File_RedHatRelease=/etc/redhat-release
|
||||||
|
File_DebianVersion=/etc/debian_version
|
||||||
|
File_ArmbianRelease=/etc/armbian-release
|
||||||
File_OpenCloudOSRelease=/etc/opencloudos-release
|
File_OpenCloudOSRelease=/etc/opencloudos-release
|
||||||
File_openEulerRelease=/etc/openEuler-release
|
File_openEulerRelease=/etc/openEuler-release
|
||||||
File_DebianVersion=/etc/debian_version
|
File_ArchRelease=/etc/arch-release
|
||||||
|
File_AlpineRelease=/etc/alpine-release
|
||||||
|
File_ProxmoxVersion=/etc/pve/.version
|
||||||
|
|
||||||
|
## 定义软件源相关文件或目录
|
||||||
File_DebianSourceList=/etc/apt/sources.list
|
File_DebianSourceList=/etc/apt/sources.list
|
||||||
Dir_DebianExtendSource=/etc/apt/sources.list.d
|
Dir_DebianExtendSource=/etc/apt/sources.list.d
|
||||||
Dir_YumRepos=/etc/yum.repos.d
|
Dir_YumRepos=/etc/yum.repos.d
|
||||||
@@ -92,15 +103,32 @@ RED='\033[31m'
|
|||||||
GREEN='\033[32m'
|
GREEN='\033[32m'
|
||||||
YELLOW='\033[33m'
|
YELLOW='\033[33m'
|
||||||
BLUE='\033[34m'
|
BLUE='\033[34m'
|
||||||
|
PURPLE='\033[35m'
|
||||||
|
AZURE='\033[36m'
|
||||||
PLAIN='\033[0m'
|
PLAIN='\033[0m'
|
||||||
BOLD='\033[1m'
|
BOLD='\033[1m'
|
||||||
SUCCESS='[\033[32mOK\033[0m]'
|
SUCCESS="[\033[1;32m成功${PLAIN}]"
|
||||||
COMPLETE='[\033[32mDONE\033[0m]'
|
COMPLETE="[\033[1;32m完成${PLAIN}]"
|
||||||
WARN='[\033[33mWARN\033[0m]'
|
WARN="[\033[1;5;33m注意${PLAIN}]"
|
||||||
ERROR='[\033[31mERROR\033[0m]'
|
ERROR="[\033[1;31m错误${PLAIN}]"
|
||||||
WORKING='[\033[34m*\033[0m]'
|
FAIL="[\033[1;31m失败${PLAIN}]"
|
||||||
|
TIP="[\033[1;32m提示${PLAIN}]"
|
||||||
|
WORKING="[\033[1;36m >_ ${PLAIN}]"
|
||||||
|
|
||||||
function StartTitle() {
|
function main() {
|
||||||
|
permission_judgment
|
||||||
|
collect_system_info
|
||||||
|
print_start_title
|
||||||
|
choose_mirrors
|
||||||
|
close_firewall_service
|
||||||
|
install_dependency_packages
|
||||||
|
configure_docker_ce_mirror
|
||||||
|
install_docker_engine
|
||||||
|
check_version
|
||||||
|
run_end
|
||||||
|
}
|
||||||
|
|
||||||
|
function print_start_title() {
|
||||||
[[ -z "${SOURCE}" || -z "${SOURCE_REGISTRY}" ]] && clear
|
[[ -z "${SOURCE}" || -z "${SOURCE_REGISTRY}" ]] && clear
|
||||||
echo -e ' +-----------------------------------+'
|
echo -e ' +-----------------------------------+'
|
||||||
echo -e " | \033[0;1;35;95m⡇\033[0m \033[0;1;33;93m⠄\033[0m \033[0;1;32;92m⣀⡀\033[0m \033[0;1;36;96m⡀\033[0;1;34;94m⢀\033[0m \033[0;1;35;95m⡀⢀\033[0m \033[0;1;31;91m⡷\033[0;1;33;93m⢾\033[0m \033[0;1;32;92m⠄\033[0m \033[0;1;36;96m⡀⣀\033[0m \033[0;1;34;94m⡀\033[0;1;35;95m⣀\033[0m \033[0;1;31;91m⢀⡀\033[0m \033[0;1;33;93m⡀\033[0;1;32;92m⣀\033[0m \033[0;1;36;96m⢀⣀\033[0m |"
|
echo -e " | \033[0;1;35;95m⡇\033[0m \033[0;1;33;93m⠄\033[0m \033[0;1;32;92m⣀⡀\033[0m \033[0;1;36;96m⡀\033[0;1;34;94m⢀\033[0m \033[0;1;35;95m⡀⢀\033[0m \033[0;1;31;91m⡷\033[0;1;33;93m⢾\033[0m \033[0;1;32;92m⠄\033[0m \033[0;1;36;96m⡀⣀\033[0m \033[0;1;34;94m⡀\033[0;1;35;95m⣀\033[0m \033[0;1;31;91m⢀⡀\033[0m \033[0;1;33;93m⡀\033[0;1;32;92m⣀\033[0m \033[0;1;36;96m⢀⣀\033[0m |"
|
||||||
@@ -110,21 +138,20 @@ function StartTitle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 报错退出
|
## 报错退出
|
||||||
function Output_Error() {
|
function output_error() {
|
||||||
[ "$1" ] && echo -e "\n$ERROR $1\n"
|
[ "$1" ] && echo -e "\n$ERROR $1\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
## 基础环境判断
|
## 权限判定
|
||||||
function PermissionJudgment() {
|
function permission_judgment() {
|
||||||
if [ $UID -ne 0 ]; then
|
if [ $UID -ne 0 ]; then
|
||||||
echo -e "\n$ERROR 权限不足,请使用 Root 用户运行本脚本\n"
|
output_error "权限不足,请使用 Root 用户运行本脚本"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## 系统判定变量
|
## 收集系统信息
|
||||||
function EnvJudgment() {
|
function collect_system_info() {
|
||||||
## 定义系统名称
|
## 定义系统名称
|
||||||
SYSTEM_NAME="$(cat $File_LinuxRelease | grep -E "^NAME=" | awk -F '=' '{print$2}' | sed "s/[\'\"]//g")"
|
SYSTEM_NAME="$(cat $File_LinuxRelease | grep -E "^NAME=" | awk -F '=' '{print$2}' | sed "s/[\'\"]//g")"
|
||||||
cat $File_LinuxRelease | grep "PRETTY_NAME=" -q
|
cat $File_LinuxRelease | grep "PRETTY_NAME=" -q
|
||||||
@@ -139,11 +166,11 @@ function EnvJudgment() {
|
|||||||
elif [ -s $File_openEulerRelease ]; then
|
elif [ -s $File_openEulerRelease ]; then
|
||||||
SYSTEM_FACTIONS="${SYSTEM_OPENEULER}"
|
SYSTEM_FACTIONS="${SYSTEM_OPENEULER}"
|
||||||
elif [ -s $File_RedHatRelease ]; then
|
elif [ -s $File_RedHatRelease ]; then
|
||||||
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
SYSTEM_FACTIONS="${SYSTEM_REDHAT}" # 注:RedHat 判断优先级需要高于 OpenCloudOS,因为8版本基于红帽而9版本不是
|
||||||
elif [ -s $File_OpenCloudOSRelease ]; then
|
elif [ -s $File_OpenCloudOSRelease ]; then
|
||||||
SYSTEM_FACTIONS="${SYSTEM_OPENCLOUDOS}" # 注:RedHat 判断优先级需要高于 OpenCloudOS,因为8版本基于红帽而9版本不是
|
SYSTEM_FACTIONS="${SYSTEM_OPENCLOUDOS}"
|
||||||
else
|
else
|
||||||
Output_Error "无法判断当前运行环境,当前系统不在本脚本的支持范围内"
|
output_error "无法判断当前运行环境,当前系统不在本脚本的支持范围内"
|
||||||
fi
|
fi
|
||||||
## 判定系统名称、版本、版本号
|
## 判定系统名称、版本、版本号
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
@@ -151,51 +178,46 @@ function EnvJudgment() {
|
|||||||
if [ ! -x /usr/bin/lsb_release ]; then
|
if [ ! -x /usr/bin/lsb_release ]; then
|
||||||
apt-get install -y lsb-release
|
apt-get install -y lsb-release
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
Output_Error "lsb-release 软件包安装失败\n 本脚本需要通过 lsb_release 指令判断系统具体类型和版本,当前系统可能为精简安装,请自行安装后重新执行脚本!"
|
output_error "lsb-release 软件包安装失败\n\n本脚本需要通过 lsb_release 指令判断系统具体类型和版本,当前系统可能为精简安装,请自行安装后重新执行脚本!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
SYSTEM_JUDGMENT="$(lsb_release -is)"
|
SYSTEM_JUDGMENT="$(lsb_release -is)"
|
||||||
SYSTEM_VERSION_CODENAME="${DEBIAN_CODENAME:-"$(lsb_release -cs)"}"
|
SYSTEM_VERSION_CODENAME="${DEBIAN_CODENAME:-"$(lsb_release -cs)"}"
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}")
|
"${SYSTEM_REDHAT}")
|
||||||
SYSTEM_JUDGMENT="$(cat $File_RedHatRelease | awk -F ' ' '{printf$1}')"
|
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
|
||||||
## Red Hat Enterprise Linux
|
## Red Hat Enterprise Linux
|
||||||
cat $File_RedHatRelease | grep -q "${SYSTEM_RHEL}"
|
grep -q "${SYSTEM_RHEL}" $File_RedHatRelease && SYSTEM_JUDGMENT="${SYSTEM_RHEL}"
|
||||||
[ $? -eq 0 ] && SYSTEM_JUDGMENT="${SYSTEM_RHEL}"
|
|
||||||
## CentOS Stream
|
## CentOS Stream
|
||||||
cat $File_RedHatRelease | grep -q "${SYSTEM_CENTOS_STREAM}"
|
grep -q "${SYSTEM_CENTOS_STREAM}" $File_RedHatRelease && SYSTEM_JUDGMENT="${SYSTEM_CENTOS_STREAM}"
|
||||||
[ $? -eq 0 ] && SYSTEM_JUDGMENT="${SYSTEM_CENTOS_STREAM}"
|
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_OPENCLOUDOS}")
|
*)
|
||||||
SYSTEM_JUDGMENT="${SYSTEM_OPENCLOUDOS}"
|
SYSTEM_JUDGMENT="${SYSTEM_FACTIONS}"
|
||||||
;;
|
|
||||||
"${SYSTEM_OPENEULER}")
|
|
||||||
SYSTEM_JUDGMENT="${SYSTEM_OPENEULER}"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 判定系统处理器架构
|
## 判定系统处理器架构
|
||||||
case $(uname -m) in
|
case "$(uname -m)" in
|
||||||
x86_64)
|
x86_64)
|
||||||
SYSTEM_ARCH="x86_64"
|
DEVICE_ARCH="x86_64"
|
||||||
SOURCE_ARCH="amd64"
|
SOURCE_ARCH="amd64"
|
||||||
;;
|
;;
|
||||||
aarch64)
|
aarch64)
|
||||||
SYSTEM_ARCH="ARM64"
|
DEVICE_ARCH="ARM64"
|
||||||
SOURCE_ARCH="arm64"
|
SOURCE_ARCH="arm64"
|
||||||
;;
|
;;
|
||||||
armv7l)
|
armv7l)
|
||||||
SYSTEM_ARCH="ARMv7"
|
DEVICE_ARCH="ARMv7"
|
||||||
SOURCE_ARCH="armhf"
|
SOURCE_ARCH="armhf"
|
||||||
;;
|
;;
|
||||||
armv6l)
|
armv6l)
|
||||||
SYSTEM_ARCH="ARMv6"
|
DEVICE_ARCH="ARMv6"
|
||||||
SOURCE_ARCH="armhf"
|
SOURCE_ARCH="armhf"
|
||||||
;;
|
;;
|
||||||
i386 | i686)
|
i386 | i686)
|
||||||
Output_Error "Docker Engine 不支持安装在 x86_32 架构的环境上!"
|
output_error "Docker Engine 不支持安装在 x86_32 架构的环境上!"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
SYSTEM_ARCH=$(uname -m)
|
DEVICE_ARCH=$(uname -m)
|
||||||
SOURCE_ARCH=armhf
|
SOURCE_ARCH=armhf
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -210,13 +232,13 @@ function EnvJudgment() {
|
|||||||
"${SYSTEM_RHEL}")
|
"${SYSTEM_RHEL}")
|
||||||
SOURCE_BRANCH="rhel"
|
SOURCE_BRANCH="rhel"
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_KALI}")
|
"${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_LINUX_MINT}")
|
||||||
# Kali 使用 Debian 12 的 docker ce 源
|
# 部分 Debian 系统衍生操作系统使用 Debian 12 的 docker ce 源
|
||||||
SOURCE_BRANCH="debian"
|
SOURCE_BRANCH="debian"
|
||||||
SYSTEM_VERSION_CODENAME="bullseye"
|
SYSTEM_VERSION_CODENAME="bullseye"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
Output_Error "当前系统不在本脚本的支持范围内"
|
output_error "当前系统不在本脚本的支持范围内"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 定义软件源更新文字
|
## 定义软件源更新文字
|
||||||
@@ -230,9 +252,9 @@ function EnvJudgment() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function ChooseMirrors() {
|
function choose_mirrors() {
|
||||||
## 打印软件源列表
|
## 打印软件源列表
|
||||||
function PrintMirrorsList() {
|
function print_mirrors_list() {
|
||||||
local tmp_mirror_name tmp_mirror_url arr_num default_mirror_name_length tmp_mirror_name_length tmp_spaces_nums a i j
|
local tmp_mirror_name tmp_mirror_url arr_num default_mirror_name_length tmp_mirror_name_length tmp_spaces_nums a i j
|
||||||
## 计算字符串长度
|
## 计算字符串长度
|
||||||
function StringLength() {
|
function StringLength() {
|
||||||
@@ -276,7 +298,7 @@ function ChooseMirrors() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function Title() {
|
function print_title() {
|
||||||
local system_name="${SYSTEM_PRETTY_NAME:-"${SYSTEM_NAME} ${SYSTEM_VERSION_NUMBER}"}"
|
local system_name="${SYSTEM_PRETTY_NAME:-"${SYSTEM_NAME} ${SYSTEM_VERSION_NUMBER}"}"
|
||||||
local arch=""${DEVICE_ARCH}""
|
local arch=""${DEVICE_ARCH}""
|
||||||
local date="$(date "+%Y-%m-%d %H:%M:%S")"
|
local date="$(date "+%Y-%m-%d %H:%M:%S")"
|
||||||
@@ -287,7 +309,7 @@ function ChooseMirrors() {
|
|||||||
echo -e " 系统时间 ${BLUE}${date} ${timezone}${PLAIN}"
|
echo -e " 系统时间 ${BLUE}${date} ${timezone}${PLAIN}"
|
||||||
}
|
}
|
||||||
|
|
||||||
Title
|
print_title
|
||||||
if [[ -z "${INSTALL_LATESTED_DOCKER}" ]]; then
|
if [[ -z "${INSTALL_LATESTED_DOCKER}" ]]; then
|
||||||
## 是否手动选择安装版本
|
## 是否手动选择安装版本
|
||||||
local CHOICE_A=$(echo -e "\n${BOLD}└─ 是否安装最新版本的 Docker Engine? [Y/n] ${PLAIN}")
|
local CHOICE_A=$(echo -e "\n${BOLD}└─ 是否安装最新版本的 Docker Engine? [Y/n] ${PLAIN}")
|
||||||
@@ -312,7 +334,7 @@ function ChooseMirrors() {
|
|||||||
local mirror_list_name
|
local mirror_list_name
|
||||||
if [[ -z "${SOURCE}" ]]; then
|
if [[ -z "${SOURCE}" ]]; then
|
||||||
local mirror_list_name="mirror_list_docker_ce"
|
local mirror_list_name="mirror_list_docker_ce"
|
||||||
PrintMirrorsList "${mirror_list_name}" 38
|
print_mirrors_list "${mirror_list_name}" 38
|
||||||
local CHOICE_B=$(echo -e "\n${BOLD}└─ 请选择并输入你想使用的 Docker CE 源 [ 1-$(eval echo \${#$mirror_list_name[@]}) ]:${PLAIN}")
|
local CHOICE_B=$(echo -e "\n${BOLD}└─ 请选择并输入你想使用的 Docker CE 源 [ 1-$(eval echo \${#$mirror_list_name[@]}) ]:${PLAIN}")
|
||||||
while true; do
|
while true; do
|
||||||
read -p "${CHOICE_B}" INPUT
|
read -p "${CHOICE_B}" INPUT
|
||||||
@@ -337,7 +359,7 @@ function ChooseMirrors() {
|
|||||||
|
|
||||||
if [[ -z "${SOURCE_REGISTRY}" ]]; then
|
if [[ -z "${SOURCE_REGISTRY}" ]]; then
|
||||||
mirror_list_name="mirror_list_registry"
|
mirror_list_name="mirror_list_registry"
|
||||||
PrintMirrorsList "${mirror_list_name}" 44
|
print_mirrors_list "${mirror_list_name}" 44
|
||||||
local CHOICE_C=$(echo -e "\n${BOLD}└─ 请选择并输入你想使用的 Docker Registry 源 [ 1-$(eval echo \${#$mirror_list_name[@]}) ]:${PLAIN}")
|
local CHOICE_C=$(echo -e "\n${BOLD}└─ 请选择并输入你想使用的 Docker Registry 源 [ 1-$(eval echo \${#$mirror_list_name[@]}) ]:${PLAIN}")
|
||||||
while true; do
|
while true; do
|
||||||
read -p "${CHOICE_C}" INPUT
|
read -p "${CHOICE_C}" INPUT
|
||||||
@@ -362,7 +384,7 @@ function ChooseMirrors() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 关闭防火墙和SELinux
|
## 关闭防火墙和SELinux
|
||||||
function CloseFirewall() {
|
function close_firewall_service() {
|
||||||
if [ ! -x /usr/bin/systemctl ]; then
|
if [ ! -x /usr/bin/systemctl ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@@ -391,7 +413,7 @@ function CloseFirewall() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 安装环境包
|
## 安装环境包
|
||||||
function EnvironmentInstall() {
|
function install_dependency_packages() {
|
||||||
## 删除原有源
|
## 删除原有源
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}")
|
"${SYSTEM_DEBIAN}")
|
||||||
@@ -413,7 +435,7 @@ function EnvironmentInstall() {
|
|||||||
esac
|
esac
|
||||||
VERIFICATION_SOURCESYNC=$?
|
VERIFICATION_SOURCESYNC=$?
|
||||||
if [ ${VERIFICATION_SOURCESYNC} -ne 0 ]; then
|
if [ ${VERIFICATION_SOURCESYNC} -ne 0 ]; then
|
||||||
Output_Error "${SYNC_MIRROR_TEXT}出错,请先确保软件包管理工具可用!"
|
output_error "${SYNC_MIRROR_TEXT}出错,请先确保软件包管理工具可用!"
|
||||||
fi
|
fi
|
||||||
echo -e "\n$COMPLETE ${SYNC_MIRROR_TEXT}结束\n"
|
echo -e "\n$COMPLETE ${SYNC_MIRROR_TEXT}结束\n"
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
@@ -434,8 +456,8 @@ function EnvironmentInstall() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
## 卸载旧版本的 Docker Engine
|
## 卸载 Docker Engine 原有版本软件包
|
||||||
function RemoveOldVersion() {
|
function uninstall_original_version() {
|
||||||
systemctl disable --now docker >/dev/null 2>&1
|
systemctl disable --now docker >/dev/null 2>&1
|
||||||
sleep 2s
|
sleep 2s
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
@@ -451,7 +473,7 @@ function RemoveOldVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 配置 Docker CE 源
|
## 配置 Docker CE 源
|
||||||
function ConfigureDockerCEMirror() {
|
function configure_docker_ce_mirror() {
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}")
|
"${SYSTEM_DEBIAN}")
|
||||||
## 安装密钥
|
## 安装密钥
|
||||||
@@ -484,9 +506,9 @@ function ConfigureDockerCEMirror() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 安装 Docker Engine
|
## 安装 Docker Engine
|
||||||
function DockerEngine() {
|
function install_docker_engine() {
|
||||||
## 导出可安装的版本列表
|
## 导出可安装的版本列表
|
||||||
function Export_VersionList() {
|
function export_version_list() {
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}")
|
"${SYSTEM_DEBIAN}")
|
||||||
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$DockerCEVersionFile
|
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" >$DockerCEVersionFile
|
||||||
@@ -503,7 +525,7 @@ function DockerEngine() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
function Install() {
|
function install_main() {
|
||||||
if [[ "${INSTALL_LATESTED_DOCKER}" == "true" ]]; then
|
if [[ "${INSTALL_LATESTED_DOCKER}" == "true" ]]; then
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}")
|
"${SYSTEM_DEBIAN}")
|
||||||
@@ -514,7 +536,7 @@ function DockerEngine() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
Export_VersionList
|
export_version_list
|
||||||
echo -e "\n${GREEN} --------- 请选择你要安装的版本,如:20.10.24 ---------- ${PLAIN}\n"
|
echo -e "\n${GREEN} --------- 请选择你要安装的版本,如:20.10.24 ---------- ${PLAIN}\n"
|
||||||
cat $DockerVersionFile
|
cat $DockerVersionFile
|
||||||
echo -e '\n注:以上可供选择的安装版本由官方源提供,此列表以外的版本则无法安装在当前操作系统上'
|
echo -e '\n注:以上可供选择的安装版本由官方源提供,此列表以外的版本则无法安装在当前操作系统上'
|
||||||
@@ -537,9 +559,9 @@ function DockerEngine() {
|
|||||||
done
|
done
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}")
|
"${SYSTEM_DEBIAN}")
|
||||||
CheckVersion="$(echo ${DOCKER_VERSION} | cut -c1-2)"
|
check_version="$(echo ${DOCKER_VERSION} | cut -c1-2)"
|
||||||
CheckSubversion="$(echo ${DOCKER_VERSION} | cut -c4-5)"
|
CheckSubversion="$(echo ${DOCKER_VERSION} | cut -c4-5)"
|
||||||
case ${CheckVersion} in
|
case ${check_version} in
|
||||||
18)
|
18)
|
||||||
if [ ${CheckSubversion} == "09" ]; then
|
if [ ${CheckSubversion} == "09" ]; then
|
||||||
INSTALL_JUDGMENT="5:"
|
INSTALL_JUDGMENT="5:"
|
||||||
@@ -560,8 +582,8 @@ function DockerEngine() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## 修改 Docker Registry 源
|
## 修改 Docker Registry 镜像仓库源
|
||||||
function RegistryMirror() {
|
function change_docker_registry_mirror() {
|
||||||
if [[ "${REGISTRY_SOURCEL}" != "registry.hub.docker.com" ]]; then
|
if [[ "${REGISTRY_SOURCEL}" != "registry.hub.docker.com" ]]; then
|
||||||
if [ -d $DockerDir ] && [ -e $DockerConfig ]; then
|
if [ -d $DockerDir ] && [ -e $DockerConfig ]; then
|
||||||
if [ -e $DockerConfigBackup ]; then
|
if [ -e $DockerConfigBackup ]; then
|
||||||
@@ -605,20 +627,20 @@ function DockerEngine() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
Export_VersionList
|
export_version_list
|
||||||
DOCKER_INSTALLED_VERSION=$(docker -v | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}")
|
DOCKER_INSTALLED_VERSION=$(docker -v | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}")
|
||||||
DOCKER_VERSION_LATEST=$(cat $DockerVersionFile | head -n 1)
|
DOCKER_VERSION_LATEST=$(cat $DockerVersionFile | head -n 1)
|
||||||
if [[ "${DOCKER_INSTALLED_VERSION}" == "${DOCKER_VERSION_LATEST}" ]]; then
|
if [[ "${DOCKER_INSTALLED_VERSION}" == "${DOCKER_VERSION_LATEST}" ]]; then
|
||||||
if [[ "${INSTALL_LATESTED_DOCKER}" == "true" ]]; then
|
if [[ "${INSTALL_LATESTED_DOCKER}" == "true" ]]; then
|
||||||
echo -e "\n$COMPLETE 检测到已安装最新版本的 Docker Engine,跳过安装"
|
echo -e "\n$COMPLETE 检测到已安装最新版本的 Docker Engine,跳过安装"
|
||||||
RegistryMirror
|
change_docker_registry_mirror
|
||||||
if [[ $(systemctl is-active docker) == "active" ]]; then
|
if [[ $(systemctl is-active docker) == "active" ]]; then
|
||||||
systemctl restart docker
|
systemctl restart docker
|
||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
systemctl enable --now docker >/dev/null 2>&1
|
systemctl enable --now docker >/dev/null 2>&1
|
||||||
CheckVersion
|
check_version
|
||||||
RunEnd
|
run_end
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
local CHOICE=$(echo -e "\n${BOLD}└─ 检测到已安装最新版本的 Docker Engine,是否继续安装其它版本? [Y/n] ${PLAIN}")
|
local CHOICE=$(echo -e "\n${BOLD}└─ 检测到已安装最新版本的 Docker Engine,是否继续安装其它版本? [Y/n] ${PLAIN}")
|
||||||
@@ -635,9 +657,9 @@ function DockerEngine() {
|
|||||||
case $INPUT in
|
case $INPUT in
|
||||||
[Yy] | [Yy][Ee][Ss])
|
[Yy] | [Yy][Ee][Ss])
|
||||||
echo -en "\n$WORKING 正在卸载之前的版本...\n"
|
echo -en "\n$WORKING 正在卸载之前的版本...\n"
|
||||||
RemoveOldVersion
|
uninstall_original_version
|
||||||
echo -e "\n$COMPLETE 卸载完毕\n"
|
echo -e "\n$COMPLETE 卸载完毕\n"
|
||||||
Install
|
install_main
|
||||||
;;
|
;;
|
||||||
[Nn] | [Nn][Oo]) ;;
|
[Nn] | [Nn][Oo]) ;;
|
||||||
*)
|
*)
|
||||||
@@ -646,16 +668,16 @@ function DockerEngine() {
|
|||||||
esac
|
esac
|
||||||
rm -rf $DockerVersionFile
|
rm -rf $DockerVersionFile
|
||||||
else
|
else
|
||||||
RemoveOldVersion
|
uninstall_original_version
|
||||||
Install
|
install_main
|
||||||
fi
|
fi
|
||||||
RegistryMirror
|
change_docker_registry_mirror
|
||||||
systemctl stop docker >/dev/null 2>&1
|
systemctl stop docker >/dev/null 2>&1
|
||||||
systemctl enable --now docker >/dev/null 2>&1
|
systemctl enable --now docker >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
## 查看版本并验证安装结果
|
## 查看版本并验证安装结果
|
||||||
function CheckVersion() {
|
function check_version() {
|
||||||
if [ -x /usr/bin/docker ]; then
|
if [ -x /usr/bin/docker ]; then
|
||||||
echo -en "\n验证安装版本:"
|
echo -en "\n验证安装版本:"
|
||||||
docker -v
|
docker -v
|
||||||
@@ -694,7 +716,7 @@ function CheckVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 运行结束
|
## 运行结束
|
||||||
function RunEnd() {
|
function run_end() {
|
||||||
echo -e "\n ------ 脚本执行结束 ------"
|
echo -e "\n ------ 脚本执行结束 ------"
|
||||||
echo -e ' \033[0;1;35;95m┌─\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m──\033[0;1;34;94m──\033[0;1;35;95m──\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m──\033[0;1;34;94m──\033[0;1;35;95m──\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m┐\033[0m'
|
echo -e ' \033[0;1;35;95m┌─\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m──\033[0;1;34;94m──\033[0;1;35;95m──\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m──\033[0;1;34;94m──\033[0;1;35;95m──\033[0;1;31;91m──\033[0;1;33;93m──\033[0;1;32;92m──\033[0;1;36;96m┐\033[0m'
|
||||||
echo -e ' \033[0;1;31;91m│▞\033[0;1;33;93m▀▖\033[0m \033[0;1;32;92m▙▗\033[0;1;36;96m▌\033[0m \033[0;1;31;91m▗\033[0;1;33;93m▐\033[0m \033[0;1;34;94m│\033[0m'
|
echo -e ' \033[0;1;31;91m│▞\033[0;1;33;93m▀▖\033[0m \033[0;1;32;92m▙▗\033[0;1;36;96m▌\033[0m \033[0;1;31;91m▗\033[0;1;33;93m▐\033[0m \033[0;1;34;94m│\033[0m'
|
||||||
@@ -706,9 +728,9 @@ function RunEnd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## 处理命令选项
|
## 处理命令选项
|
||||||
function CommandOptions() {
|
function handle_command_options() {
|
||||||
## 命令帮助
|
## 命令帮助
|
||||||
function Output_Help_Info() {
|
function output_command_help() {
|
||||||
echo -e "
|
echo -e "
|
||||||
命令选项(参数名/含义/参数值):
|
命令选项(参数名/含义/参数值):
|
||||||
|
|
||||||
@@ -730,13 +752,13 @@ function CommandOptions() {
|
|||||||
if [ "$2" ]; then
|
if [ "$2" ]; then
|
||||||
echo "$2" | grep -Eq "\(|\)|\[|\]|\{|\}"
|
echo "$2" | grep -Eq "\(|\)|\[|\]|\{|\}"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
Output_Error "检测到无效参数值 ${BLUE}$2${PLAIN} ,请输入有效的地址!"
|
output_error "检测到无效参数值 ${BLUE}$2${PLAIN} ,请输入有效的地址!"
|
||||||
else
|
else
|
||||||
SOURCE="$(echo "$2" | sed -e 's,^http[s]\?://,,g' -e 's,/$,,')"
|
SOURCE="$(echo "$2" | sed -e 's,^http[s]\?://,,g' -e 's,/$,,')"
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
Output_Error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定软件源地址!"
|
output_error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定软件源地址!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
## 指定 Docker Registry 仓库地址
|
## 指定 Docker Registry 仓库地址
|
||||||
@@ -744,13 +766,13 @@ function CommandOptions() {
|
|||||||
if [ "$2" ]; then
|
if [ "$2" ]; then
|
||||||
echo "$2" | grep -Eq "\(|\)|\[|\]|\{|\}"
|
echo "$2" | grep -Eq "\(|\)|\[|\]|\{|\}"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
Output_Error "检测到无效参数值 ${BLUE}$2${PLAIN} ,请输入有效的地址!"
|
output_error "检测到无效参数值 ${BLUE}$2${PLAIN} ,请输入有效的地址!"
|
||||||
else
|
else
|
||||||
SOURCE_REGISTRY="$(echo "$2" | sed -e 's,^http[s]\?://,,g' -e 's,/$,,')"
|
SOURCE_REGISTRY="$(echo "$2" | sed -e 's,^http[s]\?://,,g' -e 's,/$,,')"
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
Output_Error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定软件源地址!"
|
output_error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定软件源地址!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
## 指定 Debian 版本代号
|
## 指定 Debian 版本代号
|
||||||
@@ -759,7 +781,7 @@ function CommandOptions() {
|
|||||||
DEBIAN_CODENAME="$2"
|
DEBIAN_CODENAME="$2"
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
Output_Error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定版本代号!"
|
output_error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定版本代号!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
## 安装最新版本
|
## 安装最新版本
|
||||||
@@ -771,11 +793,11 @@ function CommandOptions() {
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
Output_Error "检测到 ${BLUE}$2${PLAIN} 为无效参数值,请在该参数后指定 true 或 false 作为参数值!"
|
output_error "检测到 ${BLUE}$2${PLAIN} 为无效参数值,请在该参数后指定 true 或 false 作为参数值!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
Output_Error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定 true 或 false 作为参数值!"
|
output_error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请在该参数后指定 true 或 false 作为参数值!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
## 忽略覆盖备份提示
|
## 忽略覆盖备份提示
|
||||||
@@ -784,11 +806,11 @@ function CommandOptions() {
|
|||||||
;;
|
;;
|
||||||
## 命令帮助
|
## 命令帮助
|
||||||
--help)
|
--help)
|
||||||
Output_Help_Info
|
output_command_help
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
Output_Error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请确认后重新输入!"
|
output_error "检测到 ${BLUE}$1${PLAIN} 为无效参数,请确认后重新输入!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@@ -797,19 +819,5 @@ function CommandOptions() {
|
|||||||
IGNORE_BACKUP_TIPS="${IGNORE_BACKUP_TIPS:-"false"}"
|
IGNORE_BACKUP_TIPS="${IGNORE_BACKUP_TIPS:-"false"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
## 组合函数
|
handle_command_options "$@"
|
||||||
function Combin_Function() {
|
main
|
||||||
PermissionJudgment
|
|
||||||
EnvJudgment
|
|
||||||
StartTitle
|
|
||||||
ChooseMirrors
|
|
||||||
CloseFirewall
|
|
||||||
EnvironmentInstall
|
|
||||||
ConfigureDockerCEMirror
|
|
||||||
DockerEngine
|
|
||||||
CheckVersion
|
|
||||||
RunEnd
|
|
||||||
}
|
|
||||||
|
|
||||||
CommandOptions "$@"
|
|
||||||
Combin_Function
|
|
||||||
|
|||||||
@@ -30,6 +30,10 @@
|
|||||||
<td><a href="https://www.kali.org" target="_blank"><img src="./docs/assets/images/icon/kali-linux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Kali Linux</td>
|
<td><a href="https://www.kali.org" target="_blank"><img src="./docs/assets/images/icon/kali-linux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Kali Linux</td>
|
||||||
<td align="center">2.0 ~ 2024</td>
|
<td align="center">2.0 ~ 2024</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://linuxmint.com" target="_blank"><img src="./docs/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
|
||||||
|
<td align="center">19.0 ~ 21 / LMDE 6</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://www.deepin.org" target="_blank"><img src="./docs/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Deepin</td>
|
<td><a href="https://www.deepin.org" target="_blank"><img src="./docs/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Deepin</td>
|
||||||
<td align="center">all</td>
|
<td align="center">all</td>
|
||||||
|
|||||||
BIN
docs/assets/images/icon/linux-mint.ico
Normal file
BIN
docs/assets/images/icon/linux-mint.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
@@ -12,55 +12,63 @@ hide:
|
|||||||
<figure style="margin: 0" markdown>
|
<figure style="margin: 0" markdown>
|
||||||
{ width="300" }
|
{ width="300" }
|
||||||
{ width="300" }
|
{ width="300" }
|
||||||
<figcaption>GNU/Linux 更换系统软件源脚本</figcaption>
|
<figcaption>GNU/Linux 更换系统软件源脚本及 Docker 安装脚本</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
<div class="grid" markdown>
|
<div class="grid" markdown>
|
||||||
|
|
||||||
<div class="grid cards" style="height: fit-content" markdown>
|
<div class="grid cards" style="height: fit-content" markdown>
|
||||||
|
|
||||||
- :material-source-branch:{ .lg .middle } __多软件源适配__
|
- :material-source-branch:{ .lg .middle } __多元软件源适配__
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
考察了国内镜像站的系统适配情况,测试了下载速度与IPv6协议的兼容性
|
深入考察了国内镜像站的系统适配情况,测试了下载速度与IPv6兼容性
|
||||||
另外,提供了全网收集的中国大陆教育网镜像站和海外镜像站供选择
|
另外提供全网搜集的中国大陆教育网镜像站和海外镜像站供用户选择
|
||||||
|
|
||||||
- :material-rocket-launch-outline:{ .lg .middle } __低技术成本__
|
- :material-rocket-launch-outline:{ .lg .middle } __零技术门槛__
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
无需掌握相关技术,文档提供了全面的相关知识储备和操作指引
|
无需了解相关技术,文档提供了全面的知识储备和操作指引,轻松上手
|
||||||
还提供了一些常见问题的解决方法
|
文档还提供了一些常见问题的解决方法以及一些高级用法的用例
|
||||||
|
|
||||||
- :octicons-command-palette-24:{ .lg .middle } __脚本一键运行__
|
- :material-vector-polyline:{ .lg .middle } __广泛的系统支持__
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
脚本使换源变得更简单,通过交互默认进行更换,并根据用户选择自动配置
|
适配众多操作系统,涵盖主流版本,精准识别系统类型及其版本
|
||||||
同时,提供了强大的命令选项,可用于自动化项目以实现无交互操作
|
脚本兼容性较高,不支持的系统会有相应提示并无操作跳出
|
||||||
|
|
||||||
|
- :material-arm-flex-outline:{ .lg .middle } __脚本功能强大__
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
脚本使换源变得更简单,默认交互运行,逐步引导用户更换软件源
|
||||||
|
同时提供了强大的命令选项,可实现各种定制需求和无交互操作
|
||||||
|
|
||||||
- :material-scale-balance:{ .lg .middle } __开源,MIT__
|
- :material-scale-balance:{ .lg .middle } __开源,MIT__
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
项目已设立开源许可协议,传播时请在显著位置标注来源和作者
|
项目已设立开源许可协议,脚本代码完全开源且免费使用
|
||||||
请尊重作者的知识成果,建议通过命令直接调用脚本
|
请尊重作者的知识成果,传播时请在显著位置标注来源和作者
|
||||||
|
|
||||||
- :octicons-report-24:{ .lg .middle } __意见与建议__
|
- :octicons-report-24:{ .lg .middle } __意见与建议__
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
如有适配请求或意见与建议你可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues)
|
如有适配请求或意见与建议请可以提交至 [Issues](https://github.com/SuperManito/LinuxMirrors/issues)
|
||||||
如果你需要提交代码请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls)
|
若愿意贡献代码,请前往 GitHub 仓库提交 [Pull Requests](https://github.com/SuperManito/LinuxMirrors/pulls)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
| 系统名称 | 适配版本 |
|
| 系统名称 | 适配版本 |
|
||||||
| --- | :---: |
|
| --- | :---: |
|
||||||
| <a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.45em"></a> Debian | 8.0 ~ 13 |
|
| <a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian | 8.0 ~ 13 |
|
||||||
| <a href="https://cn.ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如 <code>优麒麟</code> <code>Kubuntu</code> 等<br/>此外由于迭代速度较快并不直接支持所有非长期支持(LTS)的版本,具体详见使用文档中的高级用法" } | 14.04 ~ 24 |
|
| <a href="https://cn.ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Ubuntu :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如 <code>优麒麟</code> <code>Kubuntu</code> 等<br/>此外由于迭代速度较快并不直接支持所有非长期支持(LTS)的版本,具体详见使用文档中的高级用法" } | 14.04 ~ 24 |
|
||||||
| <a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux | 2.0 ~ 2024 |
|
| <a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux | 2.0 ~ 2024 |
|
||||||
|
| <a href="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> Linux Mint | 19.0 ~ 21 / LMDE 6 |
|
||||||
| <a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Deepin | all |
|
| <a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Deepin | all |
|
||||||
| <a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian | all |
|
| <a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian | all |
|
||||||
| <a href="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox | all |
|
| <a href="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox | all |
|
||||||
|
|||||||
@@ -10,22 +10,22 @@ hide:
|
|||||||
|
|
||||||
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
|
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
|
||||||
|
|
||||||
| 镜像站 | IPv6 | Arch | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | OpenCloudOS | Alpine | Armbian | Proxmox |
|
| 镜像站 | IPv6 | Arch Linux | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | OpenCloudOS | Alpine | Armbian | Proxmox | Linux Mint |
|
||||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
|
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
|
||||||
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: |
|
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: |
|
||||||
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: |
|
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
|
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [火山引擎](https://mirrors.volces.com "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
|
| [火山引擎](https://developer.volcengine.com/mirror "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: |
|
||||||
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
|
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: |
|
||||||
| [北京大学](https://mirrors.pku.edu.cn "mirrors.pku.edu.cn") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: |
|
| [北京大学](https://mirrors.pku.edu.cn "mirrors.pku.edu.cn") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
||||||
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
|
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
|
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: |
|
||||||
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
|
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :incompatible: | :supported: | :unsupport: |
|
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :incompatible: | :supported: | :incompatible: | :supported: | :unsupport: | :supported: |
|
||||||
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
|
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: |
|
||||||
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
|
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: |
|
||||||
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: |
|
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: |
|
||||||
|
|
||||||
???+ question "使用帮助"
|
???+ question "使用帮助"
|
||||||
|
|
||||||
|
|||||||
@@ -5,28 +5,39 @@ hide:
|
|||||||
- footer
|
- footer
|
||||||
---
|
---
|
||||||
|
|
||||||
## :fontawesome-brands-docker:{style="color: #086dd7"} Docker 一键安装脚本
|
## :fontawesome-brands-docker:{style="color: #086dd7"} Docker 安装脚本
|
||||||
|
|
||||||
|
支持 `选择或更换软件源以及镜像仓库`、`安装指定版本`、`重装` 等功能
|
||||||
|
脚本参考 [官方文档](https://docs.docker.com/engine/install) 使用包管理工具实现安装,支持的系统详见下方表格
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://www.debian.org" target="_blank"><img src="/../assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.45em"/></a> Debian</td>
|
<td><a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian</td>
|
||||||
<td><a href="https://www.centos.org" target="_blank"><img src="/../assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> CentOS</td>
|
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://cn.ubuntu.com" target="_blank"><img src="/../assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Ubuntu</td>
|
<td><a href="https://cn.ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
|
||||||
<td><a href="https://rockylinux.org" target="_blank"><img src="/../assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> Rocky Linux</td>
|
<td><a href="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.2em"></a> Fedora</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://www.kali.org" target="_blank"><img src="/../assets/images/icon/kali-linux.svg" width="16" height="16"/></a> Kali Linux</td>
|
<td><a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
|
||||||
<td><a href="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.25em"/></a> AlmaLinux</td>
|
<td><a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.2em"></a> CentOS</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/../assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.15em"/></a> Red Hat Enterprise Linux</td>
|
<td><a href="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
|
||||||
<td><a href="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"/></a> OpenCloudOS</td>
|
<td><a href="https://rockylinux.org/zh_CN" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Rocky Linux</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/../assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"/></a> Fedora</td>
|
<td><a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.3em"></a> Deepin</td>
|
||||||
<td><a href="https://www.openeuler.org/zh" target="_blank"><img src="/../assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.25em"/></a> openEuler</td>
|
<td><a href="https://almalinux.org/zh-hans" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.25em"></a> AlmaLinux</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian</td>
|
||||||
|
<td><a href="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> OpenCloudOS</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox</td>
|
||||||
|
<td><a href="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> openEuler</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@@ -81,7 +92,7 @@ bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
|
|||||||
apt-get remove -y docker* containerd.io runc && apt-get autoremove
|
apt-get remove -y docker* containerd.io runc && apt-get autoremove
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Deepin` `Armbian`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Armbian` `Proxmox`
|
||||||
|
|
||||||
=== "RedHat 系 / OpenCloudOS / openEuler"
|
=== "RedHat 系 / OpenCloudOS / openEuler"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
:root {
|
:root {
|
||||||
--md-code-font: 'SF Mono';
|
--md-text-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
|
--md-code-font: "SF Mono";
|
||||||
--md-primary-fg-color--light: hsl(0, 0%, 100%, 0.33);
|
--md-primary-fg-color--light: hsl(0, 0%, 100%, 0.33);
|
||||||
--md-default-bg-color--light: #ffffff;
|
--md-default-bg-color--light: #ffffff;
|
||||||
--md-default-bg-color--dark: hsla(var(--md-hue),15%,14%,1);
|
--md-default-bg-color--dark: hsla(var(--md-hue),15%,14%,1);
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
background-color: hsla(240, 4%,11%, 0.33);
|
background-color: hsla(240, 4%,11%, 0.33);
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'SF Mono';
|
font-family: "SF Mono";
|
||||||
src: url('./fonts/SF-Mono-Regular.otf');
|
src: url('./fonts/SF-Mono-Regular.otf');
|
||||||
}
|
}
|
||||||
@keyframes heart {
|
@keyframes heart {
|
||||||
|
|||||||
@@ -44,9 +44,10 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
|
|||||||
<div class="annotate" markdown>
|
<div class="annotate" markdown>
|
||||||
| 系统名称 | 涉及的分支名称 |
|
| 系统名称 | 涉及的分支名称 |
|
||||||
| --- | :---: |
|
| --- | :---: |
|
||||||
| <a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.45em"></a> Debian | debian / debian-archive |
|
| <a href="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian | debian / debian-archive |
|
||||||
| <a href="https://cn.ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu | ubuntu / ubuntu-ports |
|
| <a href="https://cn.ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Ubuntu | ubuntu / ubuntu-ports |
|
||||||
| <a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux | kali |
|
| <a href="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux | kali |
|
||||||
|
| <a href="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.2em"></a> Linux Mint | linuxmint / ubuntu / debian |
|
||||||
| <a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Deepin | deepin |
|
| <a href="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.svg" width="16" height="16" style="vertical-align: -0.25em"></a> Deepin | deepin |
|
||||||
| <a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian | armbian |
|
| <a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian | armbian |
|
||||||
| <a href="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox | proxmox |
|
| <a href="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox | proxmox |
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
apt-get install -y curl
|
apt-get install -y curl
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Deepin` `Armbian`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Armbian` `Proxmox`
|
||||||
|
|
||||||
新装系统需要先执行一遍更新 `apt-get update`
|
新装系统需要先执行一遍更新 `apt-get update`
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
apt-get update
|
apt-get update
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Deepin` `Armbian`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Armbian` `Proxmox`
|
||||||
|
|
||||||
=== "RedHat 系 / OpenCloudOS / openEuler"
|
=== "RedHat 系 / OpenCloudOS / openEuler"
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ hide:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
如果你使用的系统终端界面不支持 `UTF-8` 编码那么将无法正常显示中文内容,导致无法正确选择交互内容。大部分系统都会自动开启该服务,否则请参考[启用方法](help.md#关于开启-ssh-远程登录的方法)
|
如果你使用的系统终端界面不支持 `UTF-8` 编码那么将无法正常显示中文内容,导致无法查看交互内容。大部分系统都会自动开启该服务,否则请参考[启用方法](help.md#关于开启-ssh-远程登录的方法)
|
||||||
|
|
||||||
- :material-numeric-3:{style="color: #3CA7E5" .lg} __如果是在新系统上首次执行脚本__
|
- :material-numeric-3:{style="color: #3CA7E5" .lg} __如果是在新系统上首次执行脚本__
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ hide:
|
|||||||
|
|
||||||
默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释
|
默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Deepin` `Armbian`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Armbian` `Proxmox`
|
||||||
|
|
||||||
=== "RedHat 系 / OpenCloudOS / openEuler"
|
=== "RedHat 系 / OpenCloudOS / openEuler"
|
||||||
|
|
||||||
|
|||||||
@@ -143,12 +143,12 @@ plugins:
|
|||||||
- glightbox
|
- glightbox
|
||||||
nav:
|
nav:
|
||||||
- "介绍": index.md
|
- "介绍": index.md
|
||||||
- "软件源": mirrors/index.md
|
|
||||||
- "使用方法":
|
- "使用方法":
|
||||||
- "使用方法": use/index.md
|
- "使用方法": use/index.md
|
||||||
- "常见问题": use/help.md
|
- "常见问题": use/help.md
|
||||||
- "执行流程": use/execution-flow.md
|
- "执行流程": use/execution-flow.md
|
||||||
- "高级用法":
|
- "高级用法":
|
||||||
- "命令选项": use/command-options.md
|
- "命令选项": use/command-options.md
|
||||||
|
- "软件源列表": mirrors/index.md
|
||||||
- "其它工具": other/index.md
|
- "其它工具": other/index.md
|
||||||
- "社区": community/index.md
|
- "社区": community/index.md
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
mkdocs-material==9.5.29
|
mkdocs-material==9.5.30
|
||||||
mkdocs-glightbox==0.4.0
|
mkdocs-glightbox==0.4.0
|
||||||
mkdocs-exclude-search==0.6.6
|
mkdocs-exclude-search==0.6.6
|
||||||
Reference in New Issue
Block a user