diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a547a2bd1ee9fa3faa0dd46a95153086193d90a3..076c2badafa0478c9aab03c1e31dfec41494b285 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,7 @@
       - ssh-keyscan -p 2202 gitlab.iri.upc.edu  >> ~/.ssh/known_hosts
       - chmod 644 ~/.ssh/known_hosts
       - ssh -p 2202 git@gitlab.iri.upc.edu #test
+      - apt update
       - apt -y install git
       - git submodule sync --recursive
       - git submodule update --init --recursive