update apt cache before installing ufw.