mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-08 18:30:27 +08:00
新增适配 Raspberry Pi OS 操作系统
This commit is contained in:
112
ChangeMirrors.sh
112
ChangeMirrors.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-03-14
|
## Modified: 2025-03-15
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -160,6 +160,7 @@ SYSTEM_KALI="Kali"
|
|||||||
SYSTEM_DEEPIN="Deepin"
|
SYSTEM_DEEPIN="Deepin"
|
||||||
SYSTEM_LINUX_MINT="Linuxmint"
|
SYSTEM_LINUX_MINT="Linuxmint"
|
||||||
SYSTEM_ZORIN="Zorin"
|
SYSTEM_ZORIN="Zorin"
|
||||||
|
SYSTEM_RASPBERRY_PI_OS="Raspberry Pi OS"
|
||||||
SYSTEM_REDHAT="RedHat"
|
SYSTEM_REDHAT="RedHat"
|
||||||
SYSTEM_RHEL="Red Hat Enterprise Linux"
|
SYSTEM_RHEL="Red Hat Enterprise Linux"
|
||||||
SYSTEM_CENTOS="CentOS"
|
SYSTEM_CENTOS="CentOS"
|
||||||
@@ -183,6 +184,7 @@ File_LinuxRelease=/etc/os-release
|
|||||||
File_RedHatRelease=/etc/redhat-release
|
File_RedHatRelease=/etc/redhat-release
|
||||||
File_DebianVersion=/etc/debian_version
|
File_DebianVersion=/etc/debian_version
|
||||||
File_ArmbianRelease=/etc/armbian-release
|
File_ArmbianRelease=/etc/armbian-release
|
||||||
|
File_RaspberryPiRelease=/etc/rpi-issue
|
||||||
File_openEulerRelease=/etc/openEuler-release
|
File_openEulerRelease=/etc/openEuler-release
|
||||||
File_OpenCloudOSRelease=/etc/opencloudos-release
|
File_OpenCloudOSRelease=/etc/opencloudos-release
|
||||||
File_AnolisOSRelease=/etc/anolis-release
|
File_AnolisOSRelease=/etc/anolis-release
|
||||||
@@ -206,6 +208,8 @@ File_ProxmoxSourceList=/etc/apt/sources.list.d/pve-no-subscription.list
|
|||||||
File_ProxmoxSourceListBackup=/etc/apt/sources.list.d/pve-no-subscription.list.bak
|
File_ProxmoxSourceListBackup=/etc/apt/sources.list.d/pve-no-subscription.list.bak
|
||||||
File_LinuxMintSourceList=/etc/apt/sources.list.d/official-package-repositories.list
|
File_LinuxMintSourceList=/etc/apt/sources.list.d/official-package-repositories.list
|
||||||
File_LinuxMintSourceListBackup=/etc/apt/sources.list.d/official-package-repositories.list.bak
|
File_LinuxMintSourceListBackup=/etc/apt/sources.list.d/official-package-repositories.list.bak
|
||||||
|
File_RaspberryPiSourceList=/etc/apt/sources.list.d/raspi.list
|
||||||
|
File_RaspberryPiSourceListBackup=/etc/apt/sources.list.d/raspi.list.bak
|
||||||
File_ArchLinuxMirrorList=/etc/pacman.d/mirrorlist
|
File_ArchLinuxMirrorList=/etc/pacman.d/mirrorlist
|
||||||
File_ArchLinuxMirrorListBackup=/etc/pacman.d/mirrorlist.bak
|
File_ArchLinuxMirrorListBackup=/etc/pacman.d/mirrorlist.bak
|
||||||
File_AlpineRepositories=/etc/apk/repositories
|
File_AlpineRepositories=/etc/apk/repositories
|
||||||
@@ -270,13 +274,13 @@ function handle_command_options() {
|
|||||||
--source-security 指定 Debian 系统 security 仓库的软件源地址(域名或IP) 地址
|
--source-security 指定 Debian 系统 security 仓库的软件源地址(域名或IP) 地址
|
||||||
--source-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) 地址
|
--source-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) 地址
|
||||||
--source-portage 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) 地址
|
--source-portage 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) 地址
|
||||||
--source-base-system 指定 Linux Mint 系统底层系统的软件源地址(域名或IP) 地址
|
--source-base-system 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址(域名或IP) 地址
|
||||||
--branch 指定软件源仓库(路径) 仓库名
|
--branch 指定软件源仓库(路径) 仓库名
|
||||||
--branch-epel 指定 EPEL 附加软件包仓库的软件源仓库(路径) 仓库名
|
--branch-epel 指定 EPEL 附加软件包仓库的软件源仓库(路径) 仓库名
|
||||||
--branch-security 指定 Debian 系统 security 仓库的软件源仓库(路径) 仓库名
|
--branch-security 指定 Debian 系统 security 仓库的软件源仓库(路径) 仓库名
|
||||||
--branch-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) 仓库名
|
--branch-vault 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) 仓库名
|
||||||
--branch-portage 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) 仓库名
|
--branch-portage 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) 仓库名
|
||||||
--branch-base-system 指定 Linux Mint 系统底层系统的软件源仓库(路径) 仓库名
|
--branch-base-system 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) 仓库名
|
||||||
--codename 指定 Debian 系 / openKylin 操作系统的版本代号 代号名称
|
--codename 指定 Debian 系 / openKylin 操作系统的版本代号 代号名称
|
||||||
--protocol 指定 WEB 协议 http 或 https
|
--protocol 指定 WEB 协议 http 或 https
|
||||||
--use-intranet-source 是否优先使用内网软件源地址 true 或 false
|
--use-intranet-source 是否优先使用内网软件源地址 true 或 false
|
||||||
@@ -680,6 +684,11 @@ function collect_system_info() {
|
|||||||
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)"}"
|
||||||
|
# Raspberry Pi OS
|
||||||
|
if [ -s $File_RaspberryPiRelease ]; then
|
||||||
|
SYSTEM_JUDGMENT="${SYSTEM_RASPBERRY_PI_OS}"
|
||||||
|
SYSTEM_PRETTY_NAME="${SYSTEM_RASPBERRY_PI_OS}"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}")
|
"${SYSTEM_REDHAT}")
|
||||||
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
|
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
|
||||||
@@ -759,7 +768,7 @@ function collect_system_info() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_ZORIN}" | "${SYSTEM_ARCH}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_OPENKYLIN}" | "${SYSTEM_NIXOS}")
|
"${SYSTEM_KALI}" | "${SYSTEM_DEEPIN}" | "${SYSTEM_ZORIN}" | "${SYSTEM_RASPBERRY_PI_OS}" | "${SYSTEM_ARCH}" | "${SYSTEM_ALPINE}" | "${SYSTEM_GENTOO}" | "${SYSTEM_OPENKYLIN}" | "${SYSTEM_NIXOS}")
|
||||||
# 理论全部支持或不作判断
|
# 理论全部支持或不作判断
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -770,24 +779,31 @@ function collect_system_info() {
|
|||||||
output_error "当前系统版本不在本脚本的支持范围内,请前往官网查看支持列表!"
|
output_error "当前系统版本不在本脚本的支持范围内,请前往官网查看支持列表!"
|
||||||
fi
|
fi
|
||||||
## 判定系统处理器架构
|
## 判定系统处理器架构
|
||||||
case "$(uname -m)" in
|
DEVICE_ARCH_RAW="$(uname -m)"
|
||||||
|
case "${DEVICE_ARCH_ORIGIN}" in
|
||||||
x86_64)
|
x86_64)
|
||||||
DEVICE_ARCH="x86_64"
|
DEVICE_ARCH="x86_64"
|
||||||
;;
|
;;
|
||||||
aarch64)
|
aarch64)
|
||||||
DEVICE_ARCH="ARM64"
|
DEVICE_ARCH="ARM64"
|
||||||
;;
|
;;
|
||||||
|
armv8l)
|
||||||
|
DEVICE_ARCH="ARMv8_32"
|
||||||
|
;;
|
||||||
armv7l)
|
armv7l)
|
||||||
DEVICE_ARCH="ARMv7"
|
DEVICE_ARCH="ARMv7"
|
||||||
;;
|
;;
|
||||||
armv6l)
|
armv6l)
|
||||||
DEVICE_ARCH="ARMv6"
|
DEVICE_ARCH="ARMv6"
|
||||||
;;
|
;;
|
||||||
|
armv5tel)
|
||||||
|
DEVICE_ARCH="ARMv5"
|
||||||
|
;;
|
||||||
i686)
|
i686)
|
||||||
DEVICE_ARCH="x86_32"
|
DEVICE_ARCH="x86_32"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
DEVICE_ARCH="$(uname -m)"
|
DEVICE_ARCH="${DEVICE_ARCH_RAW}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 定义软件源仓库名称
|
## 定义软件源仓库名称
|
||||||
@@ -814,6 +830,9 @@ function collect_system_info() {
|
|||||||
SOURCE_BRANCH="ubuntu-ports"
|
SOURCE_BRANCH="ubuntu-ports"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
"${SYSTEM_RASPBERRY_PI_OS}")
|
||||||
|
SOURCE_BRANCH="raspberrypi"
|
||||||
|
;;
|
||||||
"${SYSTEM_RHEL}")
|
"${SYSTEM_RHEL}")
|
||||||
case "${SYSTEM_VERSION_NUMBER_MAJOR}" in
|
case "${SYSTEM_VERSION_NUMBER_MAJOR}" in
|
||||||
9)
|
9)
|
||||||
@@ -919,7 +938,7 @@ function check_command_options() {
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if [[ "${SOURCE_SECURITY}" == "true" || "${SOURCE_SECURITY_BRANCH}" == "true" ]]; then
|
if [[ "${SOURCE_SECURITY}" == "true" || "${SOURCE_SECURITY_BRANCH}" == "true" ]]; then
|
||||||
if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_DEBIAN}" ]]; then
|
if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_DEBIAN}" ]] || [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_RASPBERRY_PI_OS}" && "${DEVICE_ARCH_RAW}" != "x86_64" && "${DEVICE_ARCH_RAW}" != "aarch64" ]]; then
|
||||||
output_error "当前系统不支持使用 security 仓库相关命令选项,请确认后重试!"
|
output_error "当前系统不支持使用 security 仓库相关命令选项,请确认后重试!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -1318,6 +1337,10 @@ function backup_original_mirrors() {
|
|||||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
||||||
backup_file $File_LinuxMintSourceList $File_LinuxMintSourceListBackup "official-package-repositories.list"
|
backup_file $File_LinuxMintSourceList $File_LinuxMintSourceListBackup "official-package-repositories.list"
|
||||||
fi
|
fi
|
||||||
|
# Raspberry Pi OS
|
||||||
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_RASPBERRY_PI_OS}" ]]; then
|
||||||
|
backup_file $File_RaspberryPiSourceList $File_RaspberryPiSourceListBackup "raspi.list"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
||||||
# /etc/yum.repos.d
|
# /etc/yum.repos.d
|
||||||
@@ -1380,6 +1403,10 @@ function remove_original_mirrors() {
|
|||||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
||||||
[ -f $File_LinuxMintSourceList ] && sed -i '1,$d' $File_LinuxMintSourceList
|
[ -f $File_LinuxMintSourceList ] && sed -i '1,$d' $File_LinuxMintSourceList
|
||||||
fi
|
fi
|
||||||
|
# Raspberry Pi OS
|
||||||
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_RASPBERRY_PI_OS}" ]]; then
|
||||||
|
[ -f $File_RaspberryPiSourceList ] && sed -i '1,$d' $File_RaspberryPiSourceList
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}")
|
"${SYSTEM_REDHAT}")
|
||||||
if [ ! -d $Dir_YumRepos ]; then
|
if [ ! -d $Dir_YumRepos ]; then
|
||||||
@@ -1527,6 +1554,10 @@ function change_mirrors_main() {
|
|||||||
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_LINUX_MINT}" ]]; then
|
||||||
diff_file $File_LinuxMintSourceListBackup $File_LinuxMintSourceList
|
diff_file $File_LinuxMintSourceListBackup $File_LinuxMintSourceList
|
||||||
fi
|
fi
|
||||||
|
# Raspberry Pi OS
|
||||||
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_RASPBERRY_PI_OS}" ]]; then
|
||||||
|
diff_file $File_RaspberryPiSourceListBackup $File_RaspberryPiSourceList
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
||||||
diff_dir $Dir_YumReposBackup $Dir_YumRepos
|
diff_dir $Dir_YumReposBackup $Dir_YumRepos
|
||||||
@@ -1754,6 +1785,12 @@ deb ${1} ${2}-updates ${3}
|
|||||||
# deb-src ${1} ${2}-updates ${3}
|
# deb-src ${1} ${2}-updates ${3}
|
||||||
deb ${1} ${2}-backports ${3}
|
deb ${1} ${2}-backports ${3}
|
||||||
# deb-src ${1} ${2}-backports ${3}"
|
# deb-src ${1} ${2}-backports ${3}"
|
||||||
|
}
|
||||||
|
function gen_debian_source_no_backports() {
|
||||||
|
echo "deb ${1} ${2} ${3}
|
||||||
|
# deb-src ${1} ${2} ${3}
|
||||||
|
deb ${1} ${2}-updates ${3}
|
||||||
|
# deb-src ${1} ${2}-updates ${3}"
|
||||||
}
|
}
|
||||||
function gen_debian_security_source() {
|
function gen_debian_security_source() {
|
||||||
echo "deb ${1} ${2}-security ${3}
|
echo "deb ${1} ${2}-security ${3}
|
||||||
@@ -1839,8 +1876,7 @@ deb ${base_url} ${repository_sections}
|
|||||||
## 专用源
|
## 专用源
|
||||||
repository_sections="main upstream import backport"
|
repository_sections="main upstream import backport"
|
||||||
echo "${tips}
|
echo "${tips}
|
||||||
deb ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}
|
deb ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}" >>$File_LinuxMintSourceList
|
||||||
" >>$File_LinuxMintSourceList
|
|
||||||
## 底层系统软件源
|
## 底层系统软件源
|
||||||
local base_system_branch base_system_codename
|
local base_system_branch base_system_codename
|
||||||
if [[ "${SYSTEM_VERSION_NUMBER}" == 6 ]]; then
|
if [[ "${SYSTEM_VERSION_NUMBER}" == 6 ]]; then
|
||||||
@@ -1851,7 +1887,7 @@ deb ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}
|
|||||||
base_url="${WEB_PROTOCOL}://${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
base_url="${WEB_PROTOCOL}://${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||||
echo "$(gen_debian_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
echo "$(gen_debian_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
||||||
# 处理 debian-security 仓库源
|
# 处理 debian-security 仓库源
|
||||||
base_url="${WEB_PROTOCOL}://${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_SECURITY_BRANCH:-${SOURCE_BASE_SYSTEM_BRANCH:-${base_system_branch}-security}}"
|
base_url="${WEB_PROTOCOL}://${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_SECURITY_BRANCH:-${SOURCE_BASE_SYSTEM_BRANCH:-debian-security}}"
|
||||||
echo "$(gen_debian_security_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
echo "$(gen_debian_security_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
||||||
else
|
else
|
||||||
# Ubuntu 版
|
# Ubuntu 版
|
||||||
@@ -1879,6 +1915,62 @@ deb ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}
|
|||||||
echo "$(gen_ubuntu_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
echo "$(gen_ubuntu_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_LinuxMintSourceList
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
"${SYSTEM_RASPBERRY_PI_OS}")
|
||||||
|
## 专用源
|
||||||
|
repository_sections="main"
|
||||||
|
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||||
|
SOURCE="archive.raspberrypi.org"
|
||||||
|
SOURCE_BRANCH="debian"
|
||||||
|
base_url="${WEB_PROTOCOL}://${SOURCE}/${SOURCE_BRANCH}"
|
||||||
|
fi
|
||||||
|
echo "${tips}
|
||||||
|
deb ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}
|
||||||
|
# deb-src ${base_url} ${SYSTEM_VERSION_CODENAME} ${repository_sections}" >>$File_RaspberryPiSourceList
|
||||||
|
## 底层系统软件源(64位系统为 Debian 官方仓库,32位为 Raspbian 仓库)
|
||||||
|
local base_system_branch base_system_codename
|
||||||
|
case "${DEVICE_ARCH_RAW}" in
|
||||||
|
x86_64 | aarch64)
|
||||||
|
case "${SYSTEM_VERSION_NUMBER_MAJOR}" in
|
||||||
|
8 | 9 | 10)
|
||||||
|
base_system_branch="debian-archive" # EOF
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
base_system_branch="debian"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
base_system_codename="${SYSTEM_VERSION_CODENAME}"
|
||||||
|
case "${SYSTEM_VERSION_NUMBER}" in
|
||||||
|
8 | 9 | 10 | 11)
|
||||||
|
repository_sections="main contrib non-free"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
repository_sections="main contrib non-free non-free-firmware"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||||
|
SOURCE="deb.debian.org"
|
||||||
|
fi
|
||||||
|
base_url="${WEB_PROTOCOL}://${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||||
|
echo "${tips}
|
||||||
|
$(gen_debian_source_no_backports "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_DebianSourceList
|
||||||
|
# 处理 debian-security 仓库源
|
||||||
|
base_url="${WEB_PROTOCOL}://${SOURCE_SECURITY:-${SOURCE_BASE_SYSTEM:-${SOURCE}}}/${SOURCE_SECURITY_BRANCH:-${SOURCE_BASE_SYSTEM_BRANCH:-debian-security}}"
|
||||||
|
echo "$(gen_debian_security_source "${base_url}" "${base_system_codename}" "${repository_sections}")" >>$File_DebianSourceList
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
base_system_branch="raspbian"
|
||||||
|
base_system_codename="${SYSTEM_VERSION_CODENAME}"
|
||||||
|
repository_sections="main contrib non-free rpi"
|
||||||
|
if [[ "${USE_OFFICIAL_SOURCE}" == "true" ]]; then
|
||||||
|
SOURCE="raspbian.raspberrypi.org"
|
||||||
|
fi
|
||||||
|
base_url="${WEB_PROTOCOL}://${SOURCE_BASE_SYSTEM:-"${SOURCE}"}/${SOURCE_BASE_SYSTEM_BRANCH:-"${base_system_branch}"}"
|
||||||
|
echo "${tips}
|
||||||
|
deb ${base_url} ${base_system_codename} ${repository_sections}
|
||||||
|
# deb-src ${base_url} ${base_system_codename} ${repository_sections}" >>$File_DebianSourceList
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
## 处理其它衍生操作系统的专用源
|
## 处理其它衍生操作系统的专用源
|
||||||
# Armbian
|
# Armbian
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-03-14
|
## Modified: 2025-03-15
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -64,6 +64,7 @@ SYSTEM_KALI="Kali"
|
|||||||
SYSTEM_DEEPIN="Deepin"
|
SYSTEM_DEEPIN="Deepin"
|
||||||
SYSTEM_LINUX_MINT="Linuxmint"
|
SYSTEM_LINUX_MINT="Linuxmint"
|
||||||
SYSTEM_ZORIN="Zorin"
|
SYSTEM_ZORIN="Zorin"
|
||||||
|
SYSTEM_RASPBERRY_PI_OS="Raspberry Pi OS"
|
||||||
SYSTEM_REDHAT="RedHat"
|
SYSTEM_REDHAT="RedHat"
|
||||||
SYSTEM_RHEL="Red Hat Enterprise Linux"
|
SYSTEM_RHEL="Red Hat Enterprise Linux"
|
||||||
SYSTEM_CENTOS="CentOS"
|
SYSTEM_CENTOS="CentOS"
|
||||||
@@ -388,6 +389,11 @@ function collect_system_info() {
|
|||||||
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)"}"
|
||||||
|
# Raspberry Pi OS
|
||||||
|
if [ -s $File_RaspberryPiRelease ]; then
|
||||||
|
SYSTEM_JUDGMENT="${SYSTEM_RASPBERRY_PI_OS}"
|
||||||
|
SYSTEM_PRETTY_NAME="${SYSTEM_RASPBERRY_PI_OS}"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}")
|
"${SYSTEM_REDHAT}")
|
||||||
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
|
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
|
||||||
@@ -406,36 +412,37 @@ function collect_system_info() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 判定系统处理器架构
|
## 判定系统处理器架构
|
||||||
case "$(uname -m)" in
|
DEVICE_ARCH_RAW="$(uname -m)"
|
||||||
|
case "${DEVICE_ARCH_RAW}" in
|
||||||
x86_64)
|
x86_64)
|
||||||
DEVICE_ARCH="x86_64"
|
DEVICE_ARCH="x86_64"
|
||||||
SOURCE_ARCH="amd64"
|
|
||||||
;;
|
;;
|
||||||
aarch64)
|
aarch64)
|
||||||
DEVICE_ARCH="ARM64"
|
DEVICE_ARCH="ARM64"
|
||||||
SOURCE_ARCH="arm64"
|
;;
|
||||||
|
armv8l)
|
||||||
|
DEVICE_ARCH="ARMv8_32"
|
||||||
;;
|
;;
|
||||||
armv7l)
|
armv7l)
|
||||||
DEVICE_ARCH="ARMv7"
|
DEVICE_ARCH="ARMv7"
|
||||||
SOURCE_ARCH="armhf"
|
|
||||||
;;
|
;;
|
||||||
armv6l)
|
armv6l)
|
||||||
DEVICE_ARCH="ARMv6"
|
DEVICE_ARCH="ARMv6"
|
||||||
SOURCE_ARCH="armhf"
|
;;
|
||||||
|
armv5tel)
|
||||||
|
DEVICE_ARCH="ARMv5"
|
||||||
;;
|
;;
|
||||||
ppc64le)
|
ppc64le)
|
||||||
DEVICE_ARCH="ppc64le"
|
DEVICE_ARCH="ppc64le"
|
||||||
SOURCE_ARCH="ppc64le"
|
|
||||||
;;
|
;;
|
||||||
s390x)
|
s390x)
|
||||||
DEVICE_ARCH="s390x"
|
DEVICE_ARCH="s390x"
|
||||||
SOURCE_ARCH="s390x"
|
|
||||||
;;
|
;;
|
||||||
i386 | i686)
|
i386 | i686)
|
||||||
output_error "Docker Engine 不支持安装在 x86_32 架构的环境上!"
|
output_error "Docker Engine 不支持安装在 x86_32 架构的环境上!"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
output_error "未知的系统架构:$(uname -m)"
|
output_error "未知的系统架构:${DEVICE_ARCH_RAW}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
## 定义软件源仓库名称
|
## 定义软件源仓库名称
|
||||||
@@ -452,6 +459,16 @@ function collect_system_info() {
|
|||||||
"${SYSTEM_RHEL}")
|
"${SYSTEM_RHEL}")
|
||||||
SOURCE_BRANCH="rhel"
|
SOURCE_BRANCH="rhel"
|
||||||
;;
|
;;
|
||||||
|
"${SYSTEM_RASPBERRY_PI_OS}")
|
||||||
|
case "${DEVICE_ARCH_RAW}" in
|
||||||
|
x86_64 | aarch64)
|
||||||
|
SOURCE_BRANCH="debian"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SOURCE_BRANCH="raspbian"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# 部分 Debian 系衍生操作系统使用 Debian 12 的 docker ce 源
|
# 部分 Debian 系衍生操作系统使用 Debian 12 的 docker ce 源
|
||||||
SOURCE_BRANCH="debian"
|
SOURCE_BRANCH="debian"
|
||||||
@@ -799,7 +816,7 @@ function configure_docker_ce_mirror() {
|
|||||||
fi
|
fi
|
||||||
chmod a+r $file_keyring
|
chmod a+r $file_keyring
|
||||||
## 添加源
|
## 添加源
|
||||||
echo "deb [arch=${SOURCE_ARCH} signed-by=${file_keyring}] ${WEB_PROTOCOL}://${SOURCE}/linux/${SOURCE_BRANCH} ${SYSTEM_VERSION_CODENAME} stable" | tee $Dir_DebianExtendSource/docker.list >/dev/null 2>&1
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=${file_keyring}] ${WEB_PROTOCOL}://${SOURCE}/linux/${SOURCE_BRANCH} ${SYSTEM_VERSION_CODENAME} stable" | tee $Dir_DebianExtendSource/docker.list >/dev/null 2>&1
|
||||||
apt-get update
|
apt-get update
|
||||||
;;
|
;;
|
||||||
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENEULER}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_ANOLISOS}")
|
||||||
|
|||||||
@@ -50,6 +50,10 @@
|
|||||||
<td><a href="https://www.proxmox.com" target="_blank"><img src="./docs/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
|
<td><a href="https://www.proxmox.com" target="_blank"><img src="./docs/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
|
||||||
<td align="center">all</td>
|
<td align="center">all</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://www.raspberrypi.com" target="_blank"><img src="./docs/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
|
||||||
|
<td align="center">all</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="./docs/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
|
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="./docs/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
|
||||||
<td align="center">7 ~ 9</td>
|
<td align="center">7 ~ 9</td>
|
||||||
|
|||||||
BIN
docs/assets/images/icon/raspberry-pi.png
Normal file
BIN
docs/assets/images/icon/raspberry-pi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -105,6 +105,7 @@ hide:
|
|||||||
| <a href="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> Zorin OS | _all_ |
|
| <a href="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> Zorin OS | _all_ |
|
||||||
| <a href="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian | _all_ |
|
| <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 VE | _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 VE | _all_ |
|
||||||
|
| <a href="https://www.raspberrypi.com" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS | _all_ |
|
||||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux :material-information-outline:{ title="使用 <code>CentOS Stream</code> 或 <code>CentOS</code> 源" } | _7 ~ 9_ |
|
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux :material-information-outline:{ title="使用 <code>CentOS Stream</code> 或 <code>CentOS</code> 源" } | _7 ~ 9_ |
|
||||||
| <a href="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora | _30 ~ 41_ |
|
| <a href="https://fedoraproject.org/zh-Hans" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora | _30 ~ 41_ |
|
||||||
| <a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS | _7 ~ 8 / Stream 8 ~ 10_ |
|
| <a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS | _7 ~ 8 / Stream 8 ~ 10_ |
|
||||||
|
|||||||
@@ -10,22 +10,22 @@ hide:
|
|||||||
|
|
||||||
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
|
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` `openEuler` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
|
||||||
|
|
||||||
| 镜像站 | IPv6 | Arch Linux | Kali Linux | Deepin | Rocky Linux | AlmaLinux | EPEL :material-information-outline:{ title="EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版" } | Fedora | OpenCloudOS | Alpine Linux | Armbian | Proxmox VE | Linux Mint | Gentoo | Anolis OS | openKylin | NixOS |
|
| 镜像站 | IPv6 | Arch Linux | Kali Linux | Deepin | Rocky Linux | AlmaLinux | EPEL :material-information-outline:{ title="EPEL (Extra Packages for Enterprise Linux) 是由 Fedora 组织维护的一个附加软件包仓库,它主要适用于除 Fedora 操作系统以外的红帽系 Linux 发行版" } | Fedora | OpenCloudOS | Alpine Linux | Armbian | Proxmox VE | Linux Mint | Gentoo | Anolis OS | openKylin | NixOS | Raspberry Pi OS |
|
||||||
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
|
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
|
||||||
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :unsupport: |
|
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: |
|
||||||
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: |
|
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
||||||
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: |
|
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :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: | :supported: | :unsupport: | :supported: | :unsupport: |
|
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: |
|
||||||
| [火山引擎](https://developer.volcengine.com/mirror "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
| [火山引擎](https://developer.volcengine.com/mirror "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :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: | :supported: | :supported: | :unsupport: | :unsupport: | :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: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: |
|
||||||
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :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: | :supported: | :supported: | :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: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: |
|
||||||
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported:
|
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :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: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
|
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
|
||||||
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :incompatible: | :supported: | :incompatible: | :supported: | :unsupport: | :supported: | :incompatible: | :unsupport: | :supported: | :unsupport: |
|
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :incompatible: | :supported: | :incompatible: | :supported: | :unsupport: | :supported: | :incompatible: | :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: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
|
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :supported: | :supported: |
|
||||||
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: |
|
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: |
|
||||||
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: |
|
| [中国科学院软件研究所](https://mirror.iscas.ac.cn "mirror.iscas.ac.cn") | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
|
||||||
|
|
||||||
???+ question "使用帮助"
|
???+ question "使用帮助"
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ hide:
|
|||||||
<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 VE</td>
|
<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 VE</td>
|
||||||
<td><a href="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS(龙蜥)</td>
|
<td><a href="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS(龙蜥)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a href="https://www.raspberrypi.com" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
=== ":octicons-globe-16: 官网(推荐)"
|
=== ":octicons-globe-16: 官网(推荐)"
|
||||||
@@ -138,7 +142,7 @@ hide:
|
|||||||
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
|
apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS`
|
||||||
|
|
||||||
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
||||||
|
|
||||||
@@ -180,7 +184,7 @@ hide:
|
|||||||
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` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS`
|
||||||
|
|
||||||
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ hide:
|
|||||||
apt-get install -y curl
|
apt-get install -y curl
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `openKylin`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS` `openKylin`
|
||||||
|
|
||||||
新装系统需要先执行一遍更新 `apt-get update`
|
新装系统需要先执行一遍更新 `apt-get update`
|
||||||
|
|
||||||
@@ -282,7 +282,7 @@ hide:
|
|||||||
apt-get update
|
apt-get update
|
||||||
```
|
```
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `openKylin`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS` `openKylin`
|
||||||
|
|
||||||
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
||||||
|
|
||||||
@@ -360,7 +360,7 @@ hide:
|
|||||||
|
|
||||||
默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释
|
默认禁用了`deb-src`源码仓库和`proposed`预发布软件源,若需启用请将 `/etc/apt/sources.list` 文件中相关内容的所在行取消注释
|
||||||
|
|
||||||
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `openKylin`
|
> `Debian` `Ubuntu` `Kali` `Linux Mint` `Deepin` `Zorin OS` `Armbian` `Proxmox VE` `Raspberry Pi OS` `openKylin`
|
||||||
|
|
||||||
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
|
||||||
|
|
||||||
@@ -386,13 +386,13 @@ hide:
|
|||||||
| `--source-security` | 指定 Debian 系统 security 仓库的软件源地址(域名或IP) | `地址` |
|
| `--source-security` | 指定 Debian 系统 security 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `--source-vault` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) | `地址` |
|
| `--source-vault` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `--source-portage` | 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) | `地址` |
|
| `--source-portage` | 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `--source-base-system` | 指定 Linux Mint 系统底层系统的软件源地址(域名或IP) | `地址` |
|
| `--source-base-system` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址(域名或IP) | `地址` |
|
||||||
| `--branch` | 指定软件源仓库(路径) | `仓库名` |
|
| `--branch` | 指定软件源仓库(路径) | `仓库名` |
|
||||||
| `--branch-epel` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
|
| `--branch-epel` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `--branch-security` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
|
| `--branch-security` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `--branch-vault` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
|
| `--branch-vault` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `--branch-portage` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
|
| `--branch-portage` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `--branch-base-system` | 指定 Linux Mint 系统底层系统的软件源仓库(路径) | `仓库名` |
|
| `--branch-base-system` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) | `仓库名` |
|
||||||
| `--codename` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
|
| `--codename` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
|
||||||
| `--protocol` | 指定 WEB 协议 | `http` 或 `https` |
|
| `--protocol` | 指定 WEB 协议 | `http` 或 `https` |
|
||||||
| `--use-intranet-source` | 是否优先使用内网软件源地址 | `true` 或 `false` |
|
| `--use-intranet-source` | 是否优先使用内网软件源地址 | `true` 或 `false` |
|
||||||
@@ -437,6 +437,7 @@ hide:
|
|||||||
| <a href="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> Zorin OS | `ubuntu` `ubuntu-ports` |
|
| <a href="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.15em"></a> Zorin OS | `ubuntu` `ubuntu-ports` |
|
||||||
| <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 VE | `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 VE | `proxmox` |
|
||||||
|
| <a href="https://www.raspberrypi.com" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS | `raspberrypi` `raspbian` `debian` `debian-archive` |
|
||||||
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code>, 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
| <a href="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux :material-information-outline:{ title="9版本使用 <code>CentOS Stream</code>, 7、8版本使用<code>CentOS</code>" } | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||||
| <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 | `fedora` `fedora-archive` |
|
| <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 | `fedora` `fedora-archive` |
|
||||||
| <a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
| <a href="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS | `centos` `centos-stream` `centos-altarch` `centos-vault` |
|
||||||
@@ -567,13 +568,13 @@ hide:
|
|||||||
| `SOURCE_SECURITY` | 指定 Debian 系统 security 仓库的软件源地址(域名或IP) | `地址` |
|
| `SOURCE_SECURITY` | 指定 Debian 系统 security 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) | `地址` |
|
| `SOURCE_VAULT` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `SOURCE_PORTAGE` | 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) | `地址` |
|
| `SOURCE_PORTAGE` | 指定 Gentoo 系统 portage 仓库的软件源地址(域名或IP) | `地址` |
|
||||||
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint 系统底层系统的软件源地址(域名或IP) | `地址` |
|
| `SOURCE_BASE_SYSTEM` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源地址(域名或IP) | `地址` |
|
||||||
| `SOURCE_BRANCH` | 指定软件源仓库(路径) | `仓库名` |
|
| `SOURCE_BRANCH` | 指定软件源仓库(路径) | `仓库名` |
|
||||||
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
|
| `SOURCE_EPEL_BRANCH` | 指定 EPEL 附加软件包仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
|
| `SOURCE_SECURITY_BRANCH` | 指定 Debian 系统 security 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
|
| `SOURCE_VAULT_BRANCH` | 指定 CentOS / AlmaLinux 系统 vault 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
|
| `SOURCE_PORTAGE_BRANCH` | 指定 Gentoo 系统 portage 仓库的软件源仓库(路径) | `仓库名` |
|
||||||
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint 系统底层系统的软件源仓库(路径) | `仓库名` |
|
| `SOURCE_BASE_SYSTEM_BRANCH` | 指定 Linux Mint / Raspberry Pi OS 底层系统的软件源仓库(路径) | `仓库名` |
|
||||||
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
|
| `DEBIAN_CODENAME` | 指定 Debian 系 / openKylin 操作系统的版本代号 | `代号名称` |
|
||||||
| `USE_OFFICIAL_SOURCE` | 是否使用目标操作系统的官方软件源 | `true` 或 `false` |
|
| `USE_OFFICIAL_SOURCE` | 是否使用目标操作系统的官方软件源 | `true` 或 `false` |
|
||||||
| `USE_INTRANET_SOURCE` | 是否优先使用内网软件源地址 | `true` 或 `false` |
|
| `USE_INTRANET_SOURCE` | 是否优先使用内网软件源地址 | `true` 或 `false` |
|
||||||
|
|||||||
Reference in New Issue
Block a user