diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b367d2817f02126cf0e62b8bb110cd37c3450d38..b70c31dc8538c134b56fdfb1f51cc8b703295508 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,21 +6,24 @@ installation-test-xenial:       # This job runs in the build stage, which runs f
   stage: install
   image: ubuntu:16.04
   script:
-    - apt install expect -y
+    - apt-get update -y
+    - apt-get install expect -y
     - ./auto_script_wolf
 
 installation-test-bionic:       # This job runs in the build stage, which runs first.
   stage: install
   image: ubuntu:18.04
   script:
-    - apt install expect -y
+    - apt-get update -y
+    - apt-get install expect -y
     - ./auto_script_wolf
 
 installation-test-focal:       # This job runs in the build stage, which runs first.
   stage: install
   image: ubuntu:20.04
   script:
-    - apt install expect -y
+    - apt-get update -y
+    - apt-get install expect -y
     - ./auto_script_wolf
 
 lint-test-job:   # This job also runs in the test stage.