diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b99c97fd37d7f80d799bcd4057de44eff2054671..20e364fa7755cccb691492f3eb027b038578be85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -104,7 +104,8 @@ test:behat:
 
   before_script:
     - docker info
-    - apt-get install --yes git-core
+    - sudo apt-get update
+    - sudo apt-get install --yes git-core
     - git clone http://github.com/aegir-project/tests.git tests
     - cd tests
     - git checkout $AEGIR_TESTS_VERSION