From 751814b8a0574efdf88f6cd905a3252a42d06dfa Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Sun, 17 Oct 2021 01:55:31 +0200 Subject: [PATCH] fixed mistake in linuxparty.sh; apt is strange --- scripts/linuxparty.sh | 5 ++--- scripts/liprepoctl.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/linuxparty.sh b/scripts/linuxparty.sh index 9713401..d19abd7 100644 --- a/scripts/linuxparty.sh +++ b/scripts/linuxparty.sh @@ -368,9 +368,8 @@ echo echo "Sonst muss aus dem Internet heraus installiert werden. Das ist langsam, geht aber auch." # Make sure that RWTH update server ist listed in the packages sources -if grep -q 'halifax' /etc/apt/sources.list +if ! grep -q 'rwth' /etc/apt/sources.list then -else source /etc/lsb-release newsourcefile=$(mktemp) echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $DISTRIB_CODENAME main restricted universe multiverse @@ -406,7 +405,7 @@ fi echo echo "Bereitstellung der Paketquellen" # Entweder apt-get update -# Oder apt-clone restore +# Oder apt-clone restore (apt-clone ist in Kubuntu 21.10 nicht mehr verfügbar) if [[ $HAVELIPSTICK -eq 1 ]] then # infuse script has already done our job here diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh index a750a57..4dc6285 100644 --- a/scripts/liprepoctl.sh +++ b/scripts/liprepoctl.sh @@ -26,7 +26,7 @@ case $ACTION in exit 2 fi install_repo "$2" - apt-get update + apt-get -o "Dir::Etc::SourceList=$FILENAME" update echo "Repository is now active, remember to call \"$0 off\" to deactivate it when you are done." ;; "off") -- GitLab