Selaa lähdekoodia

Vagrant: update APT index before installing packages

The bootstrap script fails when the APT index in the base box
is not up to date, as it will try to install obsolete packages
and get 404 errors.
Ronan Amicel 11 vuotta sitten
vanhempi
commit
0f100664f3
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      deployment/vagrant-common/bootstrap.sh

+ 1 - 0
deployment/vagrant-common/bootstrap.sh

@@ -90,6 +90,7 @@ if [ ! -e "~/.firstboot" ]; then
 
 
   # Install prerequisite tools
   # Install prerequisite tools
   echo "Installing prerequisites"
   echo "Installing prerequisites"
+  sudo apt-get update
   sudo apt-get install -y git
   sudo apt-get install -y git
   sudo apt-get install -y python-pip
   sudo apt-get install -y python-pip