diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 014c986bf73e373b3d2b86d07527c3d7a4542de0..fff6bbdce0487a133ad690f27abeb5a988db0307 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,7 +74,7 @@ stages:
     - apt install -y xvfb # Virtual framebuffer for GL stuff.
     - apt install -y inkscape pdftk
     - apt install -y latexmk  poppler-utils # latexmk and pdftocairo
-    - apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
+    - DEBIAN_FRONTEND='noninteractive' apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
     - pip install -U Pillow
     - pip install -e ./
     - cd tests
@@ -110,11 +110,11 @@ pages:
   script:
     - echo "Building the documentation."
     - pwd
-    - apt-get update
+    - apt-get -y update
     - apt install -y git
     - apt install -y inkscape pdftk # pdftk to grap pdf pages (only for converter; can probably be omitted).
     - apt install -y latexmk  poppler-utils # latexmk and pdftocairo
-    - apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
+    - DEBIAN_FRONTEND='noninteractive' apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
     - pip install -U Pillow
     - pip install -e ./
     - apt install -y python-opengl xvfb # Virtual framebuffer for GL stuff.