Check repository and force update if it is not valid.