diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a0eff4adbb0d2e03b329546c5b85a46fc547c4a..48cf42697e58abb10a3bdad1e65b652c8cecdef9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,6 +36,9 @@ build-native:       # This job runs in the build stage, which runs first.
         - cache-$CI_PROJECT_PATH_SLUG-default
       paths:
         - ccache
+    - key: apt
+      paths:
+        - /var/cache/apt
   artifacts:
     paths:
       - "bin/*"
@@ -44,7 +47,7 @@ build-native:       # This job runs in the build stage, which runs first.
     - export CCACHE_BASEDIR="$PWD"
     - export CCACHE_DIR="$PWD/ccache"
     - export CCACHE_COMPILERCHECK=content
-    - apt update
+    - apt-get update
     - apt-get install --no-install-recommends --yes ccache
     - ccache --zero-stats || true
     - ccache --show-stats || true