@wec777 Try running sudo apt update && sudo apt upgrade before installing RetroPie again. Your problem looks similar to this issue, which seems to be a timing issue in the update list.
RetroPie doesn't install any repositories, it uses the ones provided by your Linux distribution.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.