some times it happens when you have internet connection with proxy. I have encountered the same case with me. Please also check that you are proxy free and configured it so that proxy server allows you.
Code:
sudo apt-get update if it runs, then everything could be installed.
And Please mention what you are trying to update here... the solution can vary a bit. :)
Edited:
Seems like your DNS configuration is unable to resolve the address.Try pinging to this server from Windows/any other Linux DNS Client.It will inform you with IP.Put that IP under /etc/hosts or under /etc/apt/source.list instead of hostname.
Do Check /etc/resolv.conf too.
E: Unable to locate package update
some times it happens when you have internet connection with proxy. I have encountered the same case with me. Please also check that you are proxy free and configured it so that proxy server allows you.
Code: sudo apt-get update if it runs, then everything could be installed. And Please mention what you are trying to update here... the solution can vary a bit. :)
Edited:
Seems like your DNS configuration is unable to resolve the address.Try pinging to this server from Windows/any other Linux DNS Client.It will inform you with IP.Put that IP under /etc/hosts or under /etc/apt/source.list instead of hostname. Do Check /etc/resolv.conf too.
Sounds like a DNS problem. Try putting:
In /etc/resolv.conf and putting:
In /etc/network/interfaces.