diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2082fe989bd61077f4a349b6a0d994acd5b750d1..5b3b26a37192786df3e41825fffb654245009d6d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ stages:          # List of stages for jobs, and their order of execution
 
 ############ YAML ANCHORS ############
 .script_gcc5_template: &script_gcc5_definition
+  - apt-get update
   - add-apt-repository ppa:ubuntu-toolchain-r/test
   - apt-get update
   - apt-get install gcc-snapshot