These kind of errors happen when installing and software in an ubuntu using apt-get install.
Failed to resolve in.archive.ubuntu
Failed to resolve URL
Solution: I fixed this problem by adding the following commands in the ubuntu server
sudo nano /etc/resolv.conf
then add the line on the bottom line