Testing for error with apt-get