safe test for apt-get