Update apt after replacing the list of repositories