- use apt-get instead of apt - do apt-get update || apt-get update before apt-get install - use apt install -y