diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b099fee2d18bbc4c7bc94448ee697ddb6488452c..8bd2696a8fb1a1ddc0e2e0b6d3996d3f97482f2b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,7 +24,7 @@ build:
     <<: *global_tag_def
     stage: build
     before_script:
-        - apt install python3-pip
+        - apt-get install -y python3-pip
         - python3 -m pip install scipy==1.11.3 --user
     script:
         - git submodule init