Run apt-get update before attempting to install any packages

Update apt indexes before attempting to install any packages. Fixes #48