correct initial install test + fix code

Provisioning an ubuntu machine was hanging while installing aptitude.
This commit adds -y to the apt-get install command.