I managed to uninstall xserver-xorg completely, and now all I see when booting Ubuntu is a blank screen. I've tried reinstalling it through shell prompt (recovery mode) but every time I get errors similar to
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/x/xorg/xserver-xorg-input-all_7.6+7ubuntu7_amd64.deb Could not resolve 'archive.ubuntu.com'
I get similar (not exactly the same though) errors when running apt-get update or try to repair broken packages in recovery mode. It's not just acrhive.ubuntu.com which can't be resolved, it's also se.archive.ubuntu.com, repository.spotify.com, archive.canonical.com among others.
The Ubuntu desktop is not accessible, I can only make changes through the terminal in recovery mode, or through a bootable USB.
I'm running 64bit Ubuntu 11.10 with hybrid graphics (Intel HD and AMD).
I tried adding
to my /etc/resolv.conf file but it made no difference. Updating the hosts file like this didn't help either.
ping: unknown host google.com
It seems I'm not even connected to any network, I will start investigating this right now.
What should I do?