Open the package sources list, remove any problematic lines, save the changes, and update the repositories with sudo apt update.