diff --git a/preseed/lip-early.sh b/preseed/lip-early.sh
index 7f1fbadf24beaf3335fdf2aa8d6360195c2a017e..145c0fc8518e2128a0fc5e5ad845c24793a63570 100755
--- a/preseed/lip-early.sh
+++ b/preseed/lip-early.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list
 sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone # only relevant for kubuntu <= 20.04
-echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list
+echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives-$(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list
 echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) main restricted universe multiverse" >> /root/etc/apt/sources.list
 echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-security main restricted universe multiverse" >> /root/etc/apt/sources.list
 echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-updates main restricted universe multiverse" >> /root/etc/apt/sources.list
diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh
index d5a14c386249cad381cb8ccfaed34305bbf2abb6..a750a5706a322d901d1c6ec49e8316488ea9c8fa 100644
--- a/scripts/liprepoctl.sh
+++ b/scripts/liprepoctl.sh
@@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE
 function install_repo()
 {
 	echo "# offline repository of the linux install party
-deb [ arch=amd64 trusted=yes ] file://$1/archives $DIST_CODENAME lip" > "$FILENAME"
+deb [ arch=amd64 trusted=yes ] file://$1/archives-$DIST_CODENAME $DIST_CODENAME lip" > "$FILENAME"
 }
 
 function uninstall_repo()