This commit is contained in:
Super Manito
2025-08-16 04:20:26 +08:00
parent 682ba1c617
commit e5de0cebef

View File

@@ -1474,10 +1474,6 @@ function remove_original_mirrors() {
case "${SYSTEM_FACTIONS}" in case "${SYSTEM_FACTIONS}" in
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}") "${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
# /etc/apt/sources.list
if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_LINUX_MINT}" && -s "${File_AptSourceList}" ]]; then
clear_file $File_AptSourceList
fi
# /etc/apt/sources.list.d # /etc/apt/sources.list.d
[ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources [ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources
# Debian DEB822 格式源文件 # Debian DEB822 格式源文件
@@ -1490,6 +1486,10 @@ function remove_original_mirrors() {
clear_file $File_UbuntuSources clear_file $File_UbuntuSources
USE_DEB822_FORMAT="true" USE_DEB822_FORMAT="true"
fi fi
# /etc/apt/sources.list
if [[ "${USE_DEB822_FORMAT}" != "true" && "${SYSTEM_JUDGMENT}" != "${SYSTEM_LINUX_MINT}" ]]; then
[ -s "${File_AptSourceList}" ] && clear_file $File_AptSourceList
fi
# Armbian # Armbian
[ -f "${File_ArmbianRelease}" ] && clear_file $File_ArmbianSourceList [ -f "${File_ArmbianRelease}" ] && clear_file $File_ArmbianSourceList
# Proxmox VE # Proxmox VE