diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b3b26a37192786df3e41825fffb654245009d6d..fc27189bb50e89b9921a8893679e1309550fa898 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,11 +4,12 @@ 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
-  - apt-get install gcc-5 g++-5
+  - apt-get update -y
+  - apt-get install software-properties-common -y
+  - add-apt-repository ppa:ubuntu-toolchain-r/test -y
+  - apt-get update -y
+  - apt-get install gcc-snapshot -y
+  - apt-get install gcc-5 g++-5 -y
 
 .script_install_template: &script_install_definition
   - apt-get update -y && apt-get install -y expect