Make sure apt caches are up2date before trying to install aptitude
[grml-live.git] / etc / grml / fai / config / hooks / updatebase.GRMLBASE
index d19c4e2..063cae4 100755 (executable)
@@ -74,6 +74,7 @@ $ROOTCMD apt-key add /etc/apt/grml.key
 
 if ! $ROOTCMD test -x /usr/bin/aptitude ; then
   echo "aptitude binary is not available, installing to make sure further FAI actions continue to work"
+  $ROOTCMD apt-get update
   $ROOTCMD apt-get -y install aptitude
 fi