diff --git a/build.psm1 b/build.psm1 index 977fc62845..5f4d546302 100644 --- a/build.psm1 +++ b/build.psm1 @@ -728,7 +728,10 @@ function Start-PSBootstrap { if ($Package) { $Deps += "ruby-dev", "groff" } # Install dependencies - Start-NativeExecution { Invoke-Expression "$sudo apt-get install -y -qq $Deps" } + Start-NativeExecution { + Invoke-Expression "$sudo apt-get update" + Invoke-Expression "$sudo apt-get install -y -qq $Deps" + } } elseif ($IsCentOS) { # Build tools $Deps += "which", "curl", "gcc-c++", "cmake", "make"