diff --git a/setup.sh b/setup.sh
index 089309450f57a19eeb6b8f20052e33f698edfa6d..9318215ef976d0559acbd06ab8c953d66a2c305a 100644
--- a/setup.sh
+++ b/setup.sh
@@ -14,6 +14,7 @@ done
 openstack stack output show --all autoscale_scheduler | grep -Eo "(https)://[a-zA-Z0-9./?&=_%:-]*" > infcode-golang/scheduleroutputdata.txt
 
 # Install golang if not installed
+sudo apt-get update
 sudo apt-get -y install golang-golang
 
 # Create symlink for systemctl to run go service