15

I see the following being queried all over. But don't see any answers or did I miss them ? Seems to be a strange use of language. Something wicked happened. Is this a form of malware ? How do I get the Update Manager to move on ?

W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.11.1-0ubuntu7.10_i386.deb
  Something wicked happened resolving 'za.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Jorge Castro
  • 71,754
Tony Hall
  • 151
  • 1
    It looks like your DNS is being messed up, please switch to another mirror and try again - http://askubuntu.com/questions/37753/how-can-i-get-apt-to-use-a-mirror-close-to-me – jrg Mar 09 '12 at 21:57

7 Answers7

19

It seems its a DNS resolve problem..

To solve this edit your /etc/resolv.conf (sudo nano /etc/resolv.conf) and add the google public DNS addresses like this:.

nameserver 8.8.8.8
nameserver 8.8.4.4

Do the ping test again on a known server and if that passes do a apt-get update..

Hope this helps, if not say so, gl. ;)

cdugga
  • 135
Bruno Pereira
  • 73,643
  • no this did not work unfortunately. the only contents in my resolv.conf file are the two nameserver entries listed above. the other commands i mentioned above still return same values – cdugga Sep 29 '11 at 17:20
  • also my /etc/network/interfaces only has the following entries.... auto lo , iface lo inet loopback – cdugga Sep 29 '11 at 17:36
  • Well, your network connection is down: try "ifconfig auto up" to see if the network goes up automatic and do "ifconfig -a" to see any changes on your network interfaces. You can also assign the addresses manually, have a look at the ifconfig here: http://www.computerhope.com/unix/uifconfi.htm or by doing man ifconfig. – Bruno Pereira Sep 30 '11 at 09:21
  • I had two ethernet connections defined, one for the normal local network, one for logging into and configuring a special router. When logged into that router, there is no connection to the normal network. It turned out that Ubuntu had switched the connections somehow. – SPRBRN Aug 01 '13 at 07:39
  • 2
    @BrunoPereira, ifconfig is deprecated. Use the command ip addr. See http://superuser.com/questions/239706/ip-versus-ifconfig – SPRBRN Aug 01 '13 at 07:41
4

I know this may not address your problem, but I had this problem and it was because I had added a domain only accessible through VPN to my /etc/apt/apt.conf.d/01proxy file. I commented out the line and it worked.

I wanted to share just to show where other errors might originate from.

Eric Carvalho
  • 54,385
3

I have had the same issue myself, usually it occurs when there is a lot of high usage on my home network and update manager has a hard time contacting the server.

Try again after a few minutes and I think you will find it will be resolved.

Mark Rooney
  • 6,289
1

I had this problem for about 2 days. Finally, I switched my ADSL router off and back on. That fixed it for me.

Eliah Kagan
  • 117,780
1

the failsafe solution is to change your software sources in ubuntu (either ubuntu software center OR synaptics, depending on how recent your ubuntu is).

you seem to using the ZA (south africa) servers. change to MAIN SERVER.

in 12.04 and 12.10:

UbuntuSOftwareCenter > EDIT > SOFTWARE SOURCES

change from SERVER FOR SOUTH AFRICA to MAIN SERVER

this is very common in local ubuntu repositories, like south africa and brazil.

tony gil
  • 283
0

The only thing that worked for me was setting the proxy setting in Apt config. Adding it to bashrc did not work.

See : https://help.ubuntu.com/community/AptGet/Howto#APT_configuration_file_method

Calahad
  • 101
0

I followed your instructions and read the possibilities of this page. None of them solved my problem - so I searched again...

While I had the problem that the hostnames aren't reachable I saw, that something like a IPv6 address is in brackets.

Remembering problems between ipv4 and ipv6 i switched off ipv6 on my routers web interface - and now: the address is reachable after a few seconds.

Don't know how to disable ipv6 in ubuntu or if your router can disable this feature, too - but in my case it was the solution. Not to forget: just replug the cable before trying again, because of the ipv6 lease you already got!

amc
  • 7,142