[BBB Buster] compiling gcc after flashing image on SD card

Sorry, idk… that was the first time i’ve seen that error from apt… When searching google, it looks to be a proxy/dns issue…

You could try the latest snapshot, to see if that fixes anything? Debian 11.x (Bullseye) - Monthly Snapshots

Regards,