diff --git a/containers/debian/base.Dockerfile b/containers/debian/base.Dockerfile
index 65d3090c15c345f02f4e5683b54f82044e649f13..1b6547c4ea060551bda6640830308e157f647cca 100644
--- a/containers/debian/base.Dockerfile
+++ b/containers/debian/base.Dockerfile
@@ -91,9 +91,12 @@ case ${ID} in
 esac
 # Clang version and repository
 CLANG="-16"
-if [ ${VERSION_CODENAME} = trixie ] ; then VERSION_CODENAME=unstable ; fi
 curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
-echo "deb http://apt.llvm.org/${VERSION_CODENAME} llvm-toolchain-${VERSION_CODENAME}${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+if [ ${VERSION_CODENAME} = trixie ] ; then
+  echo "deb http://apt.llvm.org/unstable llvm-toolchain${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+else
+  echo "deb http://apt.llvm.org/${VERSION_CODENAME} llvm-toolchain-${VERSION_CODENAME}${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+fi
 # Install packages
 apt-get -yqq update
 apt-get -yqq install gcc${GCC} g++${GCC} gfortran${GCC}