Working RetroPie apt sources list

If RetroPie is running Buster, then you need the following in /etc/apt/sources.list :

deb http://legacy.raspbian.org/raspbian/ buster main contrib non-free rpi
deb-src http://archive.raspberrypi.org/debian/ buster main

Remove any conflicting raspi.list files in /etc/apt/sources.list.d/