Could not resolve 'us-east-1.ec2.archive.ubuntu.com'

i think this fixes it - replaces the us-east-1 entry in sources.list

sudo sed -i ‘s/us-east-1.ec2.//g’ /etc/apt/sources.list