diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1c72b8d..3edbd9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ build:package:
     stage: compile
     image: archlinux/base
     script:
-        - pacman -S --needed --noconfirm sudo # Install sudo
+        - pacman -Sy --needed --noconfirm sudo # Install sudo
         - useradd builduser -m # Create the builduser
         - passwd -d builduser # Delete the buildusers password
         - printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo