Update not complete

Hi, I've just run sudo apt-get update then sudo apt-get upgrade, when this finished I was told there were some updates still to get so ran the same again & got this:

sudo: unable to resolve host Charlie2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9-host dnsutils libbind9-30 libdns35 libisccc30 libisccfg30
linux-generic linux-headers-generic linux-image-generic
linux-restricted-modules-generic
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

Can some one tell me why & how to resolve this.
Cheers Stew

UPDATE NOT COMPLETE/CORRUPT HOSTS FILE?

It sounds like your etc/hosts file was changed during the upgrade. Here is how you can check and hopefully correct this problem.
Go into your /etc/hosts file and check the second line. It should read 127.0.1.1 Charlie2. If it doesn't, then that is most likely your problem. Since you have to edit the file using sudo and you can't use sudo because this file is corrupted (a true catch 22), you will need to change the file from a live CD. So let's restart your computer into an Ubuntu live CD.
Once your in, open a terminal and type in the following:
sudo gedit /media/disk/etc/hosts
Change the second line so it reads 127.0.1.1 Charlie2. Save the file, reboot, and that should resolve the problem. Now try typing into a terminal sudo apt-get update and you should not get an error message.
I hope this helps!

Hi, Thanks for your response

Hi, Thanks for your response - for some reason & I think it's something to do with my video card I can not run Live CD ( i had this problem when I first looked at Ubuntu so just installed it). I have manage to get to the "hosts" file using gedit & the second line reads: 127.0.1.1 Charlie2.mshome should I remove the mshome?

here's the whole file:

127.0.0.1 localhost
127.0.1.1 Charlie2.mshome

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

Thanks & Cheers.

YES, YOU WILL HAVE TO CHANGE THAT LINE

See the following bug report. It has the fix.

https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/195308

Good luck!

Walla

Your a star,
Shifted the "mshome" to the top line and walla, everything including the update manager (which would not work before) now work perfectly. So my "hosts" file now looks like this.

127.0.0.1 mshome.localhost
127.0.1.1 Charlie2

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

Many thanks for your help.
Cheers Stew