新增适配 Proxmox 系统

This commit is contained in:
SuperManito
2024-02-27 06:49:36 +08:00
parent 694caea519
commit de8e353add
7 changed files with 313 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
## Author: SuperManito
## Modified: 2024-02-04
## Modified: 2024-02-27
## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn
@@ -26,7 +26,6 @@ mirror_list_default=(
)
# 海外格式:"洲 · 软件源名称 · 国家/地区@软件源地址",修改前请先前往官网阅读添加规范
mirror_list_abroad=(
"亚洲 · 科盈电信 · 香港@mirror.hkt.cc"
"亚洲 · xTom · 香港@mirrors.xtom.hk"
"亚洲 · 01Link · 香港@mirror.01link.hk"
"亚洲 · 新加坡国立大学(NUS) · 新加坡@download.nus.edu.sg/mirror"
@@ -175,12 +174,15 @@ File_OpenCloudOSRelease=/etc/opencloudos-release
File_openEulerRelease=/etc/openEuler-release
File_ArchRelease=/etc/arch-release
File_AlpineRelease=/etc/alpine-release
File_ProxmoxVersion=/etc/pve/.version
## 定义软件源相关文件或目录
File_DebianSourceList=/etc/apt/sources.list
File_DebianSourceListBackup=/etc/apt/sources.list.bak
File_ArmbianSourceList=/etc/apt/sources.list.d/armbian.list
File_ArmbianSourceListBackup=/etc/apt/sources.list.d/armbian.list.bak
File_ProxmoxSourceList=/etc/apt/sources.list.d/pve-no-subscription.list
File_ProxmoxSourceListBackup=/etc/apt/sources.list.d/pve-no-subscription.list.bak
Dir_DebianExtendSource=/etc/apt/sources.list.d
Dir_DebianExtendSourceBackup=/etc/apt/sources.list.d.bak
File_ArchMirrorList=/etc/pacman.d/mirrorlist
@@ -285,12 +287,12 @@ function EnvJudgment() {
## 判断系统和其版本是否受本脚本支持
case "${SYSTEM_JUDGMENT}" in
"${SYSTEM_DEBIAN}")
if [[ "${SYSTEM_VERSION_NUMBER:0:1}" != [8-9] && "${SYSTEM_VERSION_NUMBER:0:2}" != 1[0-2] ]]; then
if [[ "${SYSTEM_VERSION_NUMBER:0:1}" != [8-9] && "${SYSTEM_VERSION_NUMBER:0:2}" != 1[0-3] ]]; then
Output_Error "当前系统版本不在本脚本的支持范围内"
fi
;;
"${SYSTEM_UBUNTU}")
if [[ "${SYSTEM_VERSION_NUMBER:0:2}" != 1[4-9] && "${SYSTEM_VERSION_NUMBER:0:2}" != 2[0-3] ]]; then
if [[ "${SYSTEM_VERSION_NUMBER:0:2}" != 1[4-9] && "${SYSTEM_VERSION_NUMBER:0:2}" != 2[0-4] ]]; then
Output_Error "当前系统版本不在本脚本的支持范围内"
fi
;;
@@ -310,7 +312,7 @@ function EnvJudgment() {
fi
;;
"${SYSTEM_FEDORA}")
if [[ "${SYSTEM_VERSION_NUMBER:0:2}" != 3[0-8] ]]; then
if [[ "${SYSTEM_VERSION_NUMBER:0:2}" != [3-4][0-9] ]]; then
Output_Error "当前系统版本不在本脚本的支持范围内"
fi
;;
@@ -802,6 +804,10 @@ function BackupOriginalMirrors() {
if [ -f $File_ArmbianRelease ]; then
BackupFile $File_ArmbianSourceList $File_ArmbianSourceListBackup "armbian.list"
fi
## Proxmox
if [ -f $File_ProxmoxVersion ]; then
BackupFile $File_ProxmoxSourceList $File_ProxmoxSourceListBackup "pve-no-subscription.list"
fi
;;
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_OPENEULER}")
# /etc/yum.repos.d
@@ -833,6 +839,10 @@ function RemoveOriginMirrors() {
if [ -f $File_ArmbianRelease ]; then
[ -f $File_ArmbianSourceList ] && sed -i '1,$d' $File_ArmbianSourceList
fi
## Proxmox
if [ -f $File_ProxmoxVersion ]; then
[ -f $File_ProxmoxSourceList ] && sed -i '1,$d' $File_ProxmoxSourceList
fi
;;
"${SYSTEM_REDHAT}")
if [ ! -d $Dir_YumRepos ]; then
@@ -945,6 +955,10 @@ function ChangeMirrors() {
if [ -f $File_ArmbianRelease ]; then
DiffFile $File_ArmbianSourceListBackup $File_ArmbianSourceList
fi
## Proxmox
if [ -f $File_ProxmoxVersion ]; then
DiffFile $File_ProxmoxSourceListBackup $File_ProxmoxSourceList
fi
;;
"${SYSTEM_REDHAT}" | "${SYSTEM_OPENCLOUDOS}" | "${SYSTEM_OPENEULER}")
DiffDir $Dir_YumReposBackup $Dir_YumRepos
@@ -1142,13 +1156,14 @@ function DebianMirrors() {
case "${SYSTEM_JUDGMENT}" in
"${SYSTEM_DEBIAN}")
case "${SYSTEM_VERSION_NUMBER}" in
12)
source_suffix="main contrib non-free non-free-firmware"
;;
*)
8 | 9 | 10 | 11)
source_suffix="main contrib non-free"
;;
*)
source_suffix="main contrib non-free non-free-firmware"
;;
esac
if [[ "${SYSTEM_VERSION_CODENAME}" != "sid" ]]; then
echo "${tips}
deb ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix}
# deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix}
@@ -1156,19 +1171,14 @@ deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-updates ${source_suffix}
# deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME}-updates ${source_suffix}
deb ${basic_url} ${SYSTEM_VERSION_CODENAME}-backports ${source_suffix}
# deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME}-backports ${source_suffix}" >>$File_DebianSourceList
## 处理 debian-security 仓库
local security_url="${SOURCE_SECURITY:-"${SOURCE}"}"
if [[ -z "${SOURCE_SECURITY}" ]]; then
if [[ "${USE_ABROAD_SOURCE}" == "true" ]]; then
local security_url="https://security.debian.org/${SOURCE_BRANCH_SECURITY:-"${SOURCE_BRANCH}-security"}"
else
local security_url="${WEB_PROTOCOL}://${SOURCE}/${SOURCE_BRANCH_SECURITY:-"${SOURCE_BRANCH}-security"}"
fi
else
local security_url="${WEB_PROTOCOL}://${SOURCE_SECURITY}/${SOURCE_BRANCH_SECURITY:-"${SOURCE_BRANCH}-security"}"
fi
## 处理 debian-security 仓库
local security_url="${WEB_PROTOCOL}://${SOURCE_SECURITY:-"${SOURCE}"}/${SOURCE_BRANCH_SECURITY:-"${SOURCE_BRANCH}-security"}"
echo "deb ${security_url} ${SYSTEM_VERSION_CODENAME}-security ${source_suffix}
# deb-src ${security_url} ${SYSTEM_VERSION_CODENAME}-security ${source_suffix}" >>$File_DebianSourceList
else
echo "deb ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix}
# deb-src ${basic_url} ${SYSTEM_VERSION_CODENAME} ${source_suffix}" >>$File_DebianSourceList
fi
;;
"${SYSTEM_UBUNTU}")
source_suffix="main restricted universe multiverse"
@@ -1199,10 +1209,18 @@ deb ${basic_url} ${source_suffix}
# deb-src ${basic_url} ${source_suffix}" >>$File_DebianSourceList
;;
esac
## Armbian
## 处理其它衍生系统的专用源
# Armbian
if [ -f $File_ArmbianRelease ]; then
echo "deb [signed-by=/usr/share/keyrings/armbian.gpg] ${WEB_PROTOCOL}://${SOURCE}/armbian ${SYSTEM_VERSION_CODENAME} main ${SYSTEM_VERSION_CODENAME}-utils ${SYSTEM_VERSION_CODENAME}-desktop" >>$File_ArmbianSourceList
fi
# Proxmox
if [ -f $File_ProxmoxVersion ]; then
echo "deb ${WEB_PROTOCOL}://${SOURCE}/proxmox/debian/pve ${SYSTEM_VERSION_CODENAME} pve-no-subscription
# deb ${WEB_PROTOCOL}://${SOURCE}/proxmox/debian/pbs ${SYSTEM_VERSION_CODENAME} pbs-no-subscription
# deb ${WEB_PROTOCOL}://${SOURCE}/proxmox/debian/pbs-client ${SYSTEM_VERSION_CODENAME} pbs-client-no-subscription
# deb ${WEB_PROTOCOL}://${SOURCE}/proxmox/debian/pmg ${SYSTEM_VERSION_CODENAME} pmg-no-subscription" >>$File_ProxmoxSourceList
fi
}
## 更换基于 RedHat 系 Linux 发行版软件源

View File

@@ -20,7 +20,7 @@
<table align="center">
<tr>
<td><a href="https://www.debian.org" target="_blank"><img src="./docs/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.45em"></a>&nbsp;Debian</td>
<td align="center">8.0 ~ 12</td>
<td align="center">8.0 ~ 13</td>
</tr>
<tr>
<td><a href="https://cn.ubuntu.com" target="_blank"><img src="./docs/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a>&nbsp;Ubuntu</td>
@@ -38,6 +38,10 @@
<td><a href="https://www.armbian.org" target="_blank"><img src="./docs/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a>&nbsp;Armbian</td>
<td align="center">all</td>
</tr>
<tr>
<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>&nbsp;Proxmox</td>
<td align="center">all</td>
</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>&nbsp;Red Hat Enterprise Linux</td>
<td align="center">7.0 ~ 9</td>

View File

@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="129"
height="129"
viewBox="0 0 128.99999 129"
id="svg5876"
version="1.1"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="Proxmox_symbol_favicon.svg"
inkscape:export-filename="/home/daniela/Documents/proxmox/Proxmox/Marketing/Logo/Favicon/Proxmox_symbol_favicon_apple_129.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs5878">
<color-profile
name="ISO-Coated-v2--ECI-"
xlink:href="/usr/share/color/icc/ISOcoated_v2_eci.icc"
id="color-profile2" />
<clipPath
id="clipPath3102-4"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect3104-1"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath6434"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect6436"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath3102-4-1"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect3104-1-7"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath4737"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect4739"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath3102-4-6"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect3104-1-2"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath4793"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect4795"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath3102-4-9"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect3104-1-5"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath4821"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect4823"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath3102-4-5"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect3104-1-3"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
<clipPath
id="clipPath4846"
clipPathUnits="userSpaceOnUse">
<rect
transform="matrix(0.73449161,0.67861776,-0.78497193,0.61953133,0,0)"
y="-347.71387"
x="-82.999916"
height="326.40991"
width="436.40189"
id="rect4848"
style="fill:#e57000;fill-opacity:1;fill-rule:evenodd;stroke:none" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="-39.165776"
inkscape:cy="66.962973"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="3440"
inkscape:window-height="1343"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
units="px"
fit-margin-top="0"
fit-margin-left="0.5"
fit-margin-right="0.5"
fit-margin-bottom="0" />
<metadata
id="metadata5881">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-2.1032017,-887.94422)"
style="display:inline">
<g
id="g3021"
transform="matrix(4.6556308,0,0,4.6556308,-7.8868697,-3872.4751)"
inkscape:export-xdpi="300"
inkscape:export-ydpi="300">
<g
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:144px;line-height:125%;font-family:Helion;-inkscape-font-specification:Helion;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
id="g7607-5"
clip-path="url(#clipPath3102-4-5)"
transform="matrix(-0.04778455,0,0,0.04778455,29.203266,1024.7667)">
<path
d="M 276.30443,226.6231 466.89227,17.020605 C 459.49903,9.6280871 450.88762,3.8194321 441.05796,-0.40537695 431.22756,-4.6295171 420.6664,-6.7823721 409.37437,-6.8639479 397.38099,-6.7722031 386.39328,-4.3959326 376.41123,0.26487096 366.4286,4.9263417 357.75623,11.32398 350.39413,19.457805 L 276.30327,100.37282 202.69985,19.457805 C 195.07335,11.32397 186.19787,4.9263248 176.07344,0.2648493 165.94881,-4.395959 155.00175,-6.7722224 143.2322,-6.8639479 131.93978,-6.7823616 121.3786,-4.629505 111.5486,-0.40536951 101.71855,3.8194345 93.107122,9.6280871 85.714287,17.020605 L 276.30769,226.61752"
id="path7609-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccccc"
style="fill:#000000;fill-opacity:1" />
</g>
<g
transform="matrix(0.04778455,0,0,-0.04778455,2.7969453,1047.9575)"
clip-path="url(#clipPath3102-4-5)"
id="g7611-6"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:144px;line-height:125%;font-family:Helion;-inkscape-font-specification:Helion;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none">
<path
style="fill:#000000;fill-opacity:1"
sodipodi:nodetypes="ccccccccccccc"
inkscape:connector-curvature="0"
id="path7613-7"
d="M 276.30443,226.6231 466.89227,17.020605 C 459.49903,9.6280871 450.88762,3.8194321 441.05796,-0.40537695 431.22756,-4.6295171 420.6664,-6.7823721 409.37437,-6.8639479 397.38099,-6.7722031 386.39328,-4.3959326 376.41123,0.26487096 366.4286,4.9263417 357.75623,11.32398 350.39413,19.457805 L 276.30327,100.37282 202.69985,19.457805 C 195.07335,11.32397 186.19787,4.9263248 176.07344,0.2648493 165.94881,-4.395959 155.00175,-6.7722224 143.2322,-6.8639479 131.93978,-6.7823616 121.3786,-4.629505 111.5486,-0.40536951 101.71855,3.8194345 93.107122,9.6280871 85.714287,17.020605 L 276.30769,226.61752" />
</g>
<path
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1059.61279297px;line-height:125%;font-family:Helion;-inkscape-font-specification:Helion;letter-spacing:0px;word-spacing:0px;fill:#e57000;fill-opacity:1;stroke:none"
d="m 15.23405,1036.3622 v 0 l -6.8601967,-7.5231 c -0.3990192,-0.4256 -0.8633807,-0.7604 -1.3930839,-1.0042 -0.5297195,-0.2439 -1.1024686,-0.3682 -1.7182481,-0.3731 -0.590815,0 -1.1433739,0.1168 -1.6576769,0.338 -0.5143056,0.221 -0.9648526,0.5249 -1.3516436,0.9118 l 6.9622457,7.6508 -6.9622457,7.6508 c 0.38679,0.3989 0.837338,0.7103 1.3516436,0.934 0.514303,0.2237 1.0668619,0.3373 1.6576769,0.3411 0.6173744,0 1.1933086,-0.129 1.7278076,-0.373 0.5344943,-0.2439 0.9956679,-0.5787 1.3835244,-1.0041 l 6.8601817,-7.549"
id="path7615-7"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccscscc" />
<path
sodipodi:nodetypes="cccccccccscscc"
inkscape:connector-curvature="0"
id="path7617-2"
d="m 16.76594,1036.3622 v 0 l 6.860196,-7.5231 c 0.399019,-0.4256 0.86338,-0.7604 1.393084,-1.0042 0.529719,-0.2439 1.10247,-0.3682 1.718247,-0.3731 0.590818,0 1.143377,0.1168 1.657677,0.338 0.51431,0.221 0.964857,0.5249 1.351646,0.9118 l -6.962247,7.6508 6.962247,7.6508 c -0.386789,0.3989 -0.837336,0.7103 -1.351646,0.934 -0.5143,0.2237 -1.066859,0.3373 -1.657673,0.3411 -0.617375,0 -1.193311,-0.129 -1.727809,-0.373 -0.534496,-0.2439 -0.99567,-0.5787 -1.383526,-1.0041 l -6.860182,-7.549"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1059.61279297px;line-height:125%;font-family:Helion;-inkscape-font-specification:Helion;letter-spacing:0px;word-spacing:0px;fill:#e57000;fill-opacity:1;stroke:none" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -58,11 +58,12 @@ hide:
| 系统名称 | 适配版本 |
| --- | :---: |
| <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 ~ 12 |
| <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://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> 等" } | 14.04 ~ 23 |
| <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 ~ 2023 |
| <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.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://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>Rocky Linux</code><code>CentOS</code> 源" } | 7.0 ~ 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.2em"></a> Fedora | 30 ~ 39 |
| <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 | 7.0 ~ 8.5 / Stream 8 ~ 9 |

View File

@@ -10,23 +10,23 @@ hide:
> 下方列表中的镜像站均支持 `Debian` `Ubuntu` `CentOS` `openSUSE` 软件源,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
| 镜像站 | IPv6 | Arch | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS | Alpine | Armbian |
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: |
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: |
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: |
| [搜狐](https://mirrors.sohu.com "mirrors.sohu.com") | :unsupport: | :supported: | :unsupport: | :supported: | :incompatible: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
| [火山引擎](https://mirrors.volces.com "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: |
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn/Mirrors") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: |
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: |
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: |
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: |
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :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: |
| 镜像站 | IPv6 | Arch | Kali | Deepin | Rocky | AlmaLinux | EPEL | Fedora | openEuler | OpenCloudOS | Alpine | Armbian | Proxmox |
| :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: | :--: |
| [阿里云](https://mirrors.aliyun.com "mirrors.aliyun.com") | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: |
| [腾讯云](https://mirrors.tencent.com "mirrors.tencent.com") | :unsupport: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: |
| [华为云](https://mirrors.huaweicloud.com "mirrors.huaweicloud.com") | :unsupport: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
| [网易](https://mirrors.163.com "mirrors.163.com") | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
| [搜狐](https://mirrors.sohu.com "mirrors.sohu.com") | :unsupport: | :supported: | :unsupport: | :supported: | :incompatible: | :unsupport: | :unsupport: | :supported: | :unsupport: | :unsupport: | :unsupport: | :unsupport: | :unsupport: |
| [火山引擎](https://mirrors.volces.com "mirrors.volces.com") | :unsupport: | :unsupport: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
| [清华大学](https://mirrors.tuna.tsinghua.edu.cn "mirrors.tuna.tsinghua.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
| [北京大学](https://mirrors.pku.edu.cn/Mirrors "mirrors.pku.edu.cn/Mirrors") | :supported: | :supported: | :unsupport: | :unsupport: | :supported: | :unsupport: | :supported: | :unsupport: | :supported: | :supported: | :unsupport: | :unsupport: | :unsupport: |
| [浙江大学](https://mirrors.zju.edu.cn "mirrors.zju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
| [南京大学](https://mirrors.nju.edu.cn "mirrors.nju.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
| [兰州大学](https://mirror.lzu.edu.cn "mirror.lzu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: | :unsupport: |
| [上海交通大学](https://mirror.sjtu.edu.cn "mirror.sjtu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :supported: | :incompatible: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :unsupport: |
| [重庆邮电大学](https://mirrors.cqupt.edu.cn "mirrors.cqu.edu.cn") | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: |
| [中国科学技术大学](https://mirrors.ustc.edu.cn "mirrors.ustc.edu.cn") | :supported: | :supported: | :supported: | :supported: | :supported: | :unsupport: | :supported: | :supported: | :supported: | :unsupport: | :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 "使用帮助"
@@ -74,7 +74,6 @@ hide:
| 镜像站名称 | 镜像站地址 |
| :- | :-: |
| 亚洲 · 科盈电信 · 香港 :flag-HK: | [mirror.hkt.cc](https://mirror.hkt.cc "https://mirror.hkt.cc") |
| 亚洲 · xTom · 香港 :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| 亚洲 · 01Link · 香港 :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| 亚洲 · 新加坡国立大学(NUS) · 新加坡 :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |
@@ -174,7 +173,6 @@ hide:
| 镜像站名称 | 镜像站地址 |
| :- | :-: |
| 亚洲 · 科盈电信 · 香港 :flag-HK: | [mirror.hkt.cc](https://mirror.hkt.cc "https://mirror.hkt.cc") |
| 亚洲 · xTom · 香港 :flag-HK: | [mirrors.xtom.hk](https://mirrors.xtom.hk "https://mirrors.xtom.hk") |
| 亚洲 · 01Link · 香港 :flag-HK: | [mirror.01link.hk](https://mirror.01link.hk "https://mirror.01link.hk") |
| 亚洲 · 新加坡国立大学(NUS) · 新加坡 :flag-SG: | [download.nus.edu.sg/mirror](https://download.nus.edu.sg "https://download.nus.edu.sg") |

View File

@@ -49,6 +49,7 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
| <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.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.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://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>Rocky Linux</code> 7、8版本使用<code>CentOS</code>" } | centos / centos-altarch / rocky |
| <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 | fedora |
| <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 | centos / centos-stream / centos-altarch / centos-vault |
@@ -101,13 +102,22 @@ bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
### 指定 Debian 系 Linux 版本代号
大多数情况下自定义版本代号用于升级系统版本,请看下面的例子
大多数情况下自定义版本代号用于更换系统版本,请看下面的例子
``` { .bash .no-copy title="升级 Debian 至最新 12 版本 Bookworm" }
``` { .bash title="升级 Debian 至最新 12 版本 Bookworm" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
--codename bookworm
```
更换软件源后还需要执行系统更新命令才能实现更新操作,并且建议在更新完成并重启系统后重新执行本换源脚本,因为仅更换软件源配置中的系统版本代号可能会在后期使用时产生一些兼容性问题
``` { .bash title="将 Debian 版本切换到测试分支" }
bash <(curl -sSL https://linuxmirrors.cn/main.sh) \
--codename testing
```
更换软件源后还需要执行系统更新命令 `apt-get dist-upgrade`,并且建议在更新完成并重启系统后重新执行本换源脚本,因为仅更换软件源配置中的系统版本代号可能会在后期使用时产生一些兼容性问题
``` { .bash title="若脚本无法实现指定版本代号,你也可以在执行脚本后手动替换" }
sed -i "s/$(lsb_release -cs)/指定版本代号/g" /etc/apt/sources.list
```
## 无人值守

View File

@@ -1,3 +1,3 @@
mkdocs-material==9.5.9
mkdocs-material==9.5.11
mkdocs-glightbox==0.3.5
mkdocs-exclude-search==0.6.6