Update APT cache before installing dependencies