From b28b51e535e3a595e4dc0dce372eb5deac9f9224 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Fri, 8 Sep 2023 23:34:19 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index d470d47..8e8c26b 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -1047,6 +1047,9 @@ function checkVirt() { } function checkSys() { +# Fix debian security sources 404 not found (only of default sources) + sed -i 's/^\(deb.*security.debian.org\/\)\(.*\)\/updates/\1debian-security\2-security/g' /etc/apt/sources.list + CurrentOSVer=`cat /etc/os-release | grep -w "VERSION_ID=*" | awk -F '=' '{print $2}' | sed 's/\"//g' | cut -d'.' -f 1` apt update -y @@ -2572,9 +2575,6 @@ verifyUrlValidationOfDdImages() { fi } -# Fix debian security sources 404 not found (only of default sources) -sed -i 's/^\(deb.*security.debian.org\/\)\(.*\)\/updates/\1debian-security\2-security/g' /etc/apt/sources.list - checkSys # Get the name of network adapter($interface).