fix apt-proxy bug and update the apt db