Let's just add a `sudo apt-get install nginx apache2 libapache2-mod-wsgi libpq5` line before the previous command instead of this. That will prevent the error.