using apt class to run apt-get update before every package