Refreshing the APT repo only when needed