Use apt-get and throw exceptions to logfile