add missing apt-get update and exit if any command fails