diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b4b8b7f85e5f7bb007de39dd3b483afc104df5af..d024f1ad847b051b66d502392b7a1fe7cf9c5531 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,7 @@ cache:
 
 test:
   script:
+  - apt-get update -y
   - apt-get install -y nodejs npm
   - npm install -g bower
   - bundle install --path vendor
@@ -17,6 +18,7 @@ test:
 
 pages:
   script:
+  - apt-get update -y
   - apt-get install -y nodejs npm
   - npm install -g bower
   - bundle install --path vendor