0

Unable to install Ubuntu server 11.10 updates.

When I try to update using apt I get the following error:

reading package lists... done
Building dependence tree .... done
E:unable to locate package update

Can you please provide a solution?

  • What are you specifically trying to install? – SQLSavant Apr 25 '12 at 6:54
  • Can you copy/paste the command you use. Something seems to be wrong there. – mikewhatever Apr 25 '12 at 7:09
  • When i used the code sudo apt-get update i get the below "something wicked happened in resolving "in.archive.ubuntu.com ".... (5 - no address associated with hostname ) " – bamirthampr Apr 25 '12 at 8:54
1

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.

  • When i used the code sudo apt-get update i get the below "something wicked happened in resolving "in.archive.ubuntu.com ".... (5 - no address associated with hostname ) " – bamirthampr Apr 25 '12 at 8:49
  • I have edited with the solution to that plz try the same. – bebojoor Apr 25 '12 at 8:59
0

Sounds like a DNS problem. Try putting:

nameserver 8.8.8.8
nameserver 8.8.4.4

In /etc/resolv.conf and putting:

dns-nameservers 8.8.8.8 8.8.4.4

In /etc/network/interfaces.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.