diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2f089efc9ae2a35cc0d4d95330264c02b1e3b9f5..03760841621251d71795b9a26db57446ffd4e98f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,7 +43,7 @@ build-job:       # This job runs in the build stage, which runs first.
     - export CCACHE_DIR="$PWD/ccache"
     - export CCACHE_COMPILERCHECK=content
     - apt update
-    - apt-get install --no-install-recommends ccache
+    - apt-get install --no-install-recommends --yes ccache
     - ccache --max-size $CCMaxSize
     - ccache --zero-stats || true
     - ccache --show-stats || true