showing Something wicked happened while updating

Asked by Peeyush Chandel

hello

i am using ubuntu 10.04 and everything is working fine till yesterday but i had edited something in /etc/hosts and after that when i try to update my computer using sudo apt-get update then it shows:

Err http://security.ubuntu.com lucid-security Release.gpg
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://ftp.debian.org etch Release.gpg
  Something wicked happened resolving 'ftp.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org etch/updates Release.gpg
  Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://in.archive.ubuntu.com lucid Release.gpg
  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.canonical.com lucid Release.gpg
  Something wicked happened resolving 'archive.canonical.com:http' (-5 - No address associated with hostname)
Err http://downloads.sourceforge.net all Release.gpg
  Something wicked happened resolving 'downloads.sourceforge.net:http' (-5 - No address associated with hostname)
Err http://dl.google.com stable Release.gpg
  Something wicked happened resolving 'dl.google.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
  Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://in.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
  Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_IN
  Something wicked happened resolving 'archive.canonical.com:http' (-5 - No address associated with hostname)
Err http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt/ all/main Translation-en_IN
  Something wicked happened resolving 'downloads.sourceforge.net:http' (-5 - No address associated with hostname)
Err http://ftp.debian.org/debian/ etch/main Translation-en_IN
  Something wicked happened resolving 'ftp.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org/ etch/updates/main Translation-en_IN
  Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://dl.google.com/linux/deb/ stable/main Translation-en_IN
  Something wicked happened resolving 'dl.google.com:http' (-5 - No address associated with hostname)
0% [Connecting to in.archive.ubuntu.com] [Connecting to archive.canonical.com] [Connecting to security.ubuntu.com]

so i reset my /etc/hosts file to it's original values but it again shows the same message when i am trying to update.

Current values of my /etc/hosts file is:

127.0.0.1 localhost peeyush-desktop
127.0.1.1 peeyush-desktop

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
::fff:127.0.0.1 peeyush-desktop localhost
::fff:127.0.0.1 peeyush-desktop localhost

where peeyush-desktop is my computer name.

so please tell me how i fix it .

Thanks
Peeyush

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

Open the Terminal and do:

gksudo gedit /etc/hosts

and remove all the content of the current file and replace it with (Start copyring from 127.0.0.1 localhost and end it until ff02::3 ip6-allhosts):

----snip----snip----snip----

127.0.0.1 localhost
127.0.1.1 peeyush-desktop

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

----snip----snip----snip----

Save and Close the file. Using the same Terminal, issue the command:

sudo apt-get update && sudo apt-get upgrade

HTH.

Revision history for this message
Peeyush Chandel (cpeeyush) said :
#2

thanks Ian Ace A. Culallad

i had followed each and every step told by you but still it is showing the same message update is going on but before update

begins it shows the same line as i posted above in my question.

Revision history for this message
Ian Ace (iaculallad) said :
#3

From the terminal:

gksudo gedit /etc/apt/apt.conf

and add the single line of texts to the existing content:

Acquire::http::Proxy “http://myname:mypassword@proxy:8080″;

Save and Close the file and do:

sudo apt-get update && sudo apt-get upgrade

HTH.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Seems is a dns name resolution issue...

Please tell have you changed something into /etc/resolv.conf

Here my with opendns servers in it:

nameserver 208.67.222.222
nameserver 208.67.220.220
domain elart.it
search elart.it

Revision history for this message
Peeyush Chandel (cpeeyush) said :
#5

helllo marcobra (Marco Braida)

i had not change anything in /etc/resolv.conf

my problem occurred after i tried to install GNUPANEL.

and my gnupanel also not installed succesfully all steps for installing it are completed successfully but when i run

gnupanel-config.sh a dialog box saying "configuring gnu-panel" comes and remain in same state (i don't know how much time it

will take to complete)

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Spencer Leland Alger (spencer-leland) said :
#7

I had a situation where I received the error: "Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)" when I didn't have my update manager settings set correctly. I use the manager that comes by default with Ubuntu, as I'm assuming you are.

You can find the default settings here: https://help.ubuntu.com/community/Repositories/Ubuntu

I reset just the "download from" setting on the "Ubuntu Software" tab back to "Main Server" and all was well.

Revision history for this message
CatchesAStar (catchesastar) said :
#8

I have an urgent, urgent question for the OP.
READ THIS CAREFULLY.
This is important.

I, myself volunteer as the user carlee on the Ubuntu Forums (http://ubuntuforums.org).

Ive been noticing a lot of issues EXACTLY the same as yours

However the issue is that without being able to contact users who actually have this issue (and are willing to test it), I cannot create a bug report on it (as this issue has not happened to any of my computers).

So... here is the fix.
[code]
sudo cp /etc/dhcp3/dhclient.conf /etc/dhcp3/dhclient.conf
nano /etc/dhcp3/dhclient.conf
[/code]
In that file, there is a line that starts with "prepend domain-name-servers"
If there is a pound sign "#" in the front of it, remove it.
then, replace the entire line with
[code]
prepend domain-name-servers 4.2.2.2, 4.2.2.3;[/code]
That will let you use alternate DNS servers that will lookup the addresses properly.

The downside is that if you want to access/see other computers on the network, you will have to add the computers to /etc/hosts.

Note that Ive used the Level 3 DNS servers here. If you have something against them or hate them in any way, I created a post with a list of DNS servers here -> http://openubuntu.com/index.php/topic,230.0.html

Oh, and before I finish, do you have a router? and what model?

I hope I hear back from you.

Regards,
Sandy Dolphinaura