diff --git a/.gitlab/before_script/linux/install_deps.sh b/.gitlab/before_script/linux/install_deps.sh
index c05149a67aadf5c56b14a61cb449ef66fc9492e5..5bb17a97a637a7bcf545f87b2dc10c6aa41d7bf9 100755
--- a/.gitlab/before_script/linux/install_deps.sh
+++ b/.gitlab/before_script/linux/install_deps.sh
@@ -19,22 +19,24 @@ fi
 
 case "${ARCH}" in
 	"ARM")
-		url=https://downloads.haskell.org/~ghcup/0.1.16.1/armv7-linux-ghcup-0.1.16.1
+		url=https://downloads.haskell.org/~ghcup/0.1.17.8/armv7-linux-ghcup-0.1.17.8
 		;;
 	"ARM64")
-		url=https://downloads.haskell.org/~ghcup/0.1.16.1/aarch64-linux-ghcup-0.1.16.1
+		url=https://downloads.haskell.org/~ghcup/0.1.17.8/aarch64-linux-ghcup-0.1.17.8
 		;;
 	*)
-		url=https://downloads.haskell.org/~ghcup/0.1.16.1/x86_64-linux-ghcup-0.1.16.1
+		url=https://downloads.haskell.org/~ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8
 		;;
 esac
 
 
 curl -sSfL "${url}" > ./ghcup-bin
-chmod +x ghcup-bin
 
-./ghcup-bin -v upgrade -f
+mkdir -p "$CI_PROJECT_DIR/.ghcup/bin"
+mv ghcup-bin "$CI_PROJECT_DIR/.ghcup/bin"/ghcup
+chmod +x "$CI_PROJECT_DIR/.ghcup/bin"/ghcup
+
 ghcup install ghc ${GHC_VERSION} || { cat "${GHCUP_INSTALL_BASE_PREFIX}"/logs/* ; exit 1 ; }
 ghcup set ghc ${GHC_VERSION}
 ghcup install cabal ${CABAL_VERSION}
-rm ghcup-bin
+