— Program on Linux terminal thats why Linux is made to get full development environment
— Are you sure your compiler install correctly? try reinstall gcc
— Sudo apt install build-essential
.
.
This is what you needed
— And don't forget to update after install
.
.
Sudo apt-get update
— Seem like your DNS has some problem
try ping your dns server
— Hehe just update ur source list manually with contrib and main packages