diff --git a/build.sh b/build.sh
index fa11df675b4d0f4072d717298149d4953c38acfe..0018d4b9bd984f2a866c8a7bdfc75640d88b20c6 100755
--- a/build.sh
+++ b/build.sh
@@ -29,6 +29,7 @@ fi
 set -x
 set -e
 
+apt-get -q update
 install_packages ${BUILD_PACKAGES}
 
 # Install the elastic.co apt key and repository.