4

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

nameserver 8.8.8.8

to my /etc/resolv.conf file but it made no difference. Updating the hosts file like this didn't help either.

Running

ping google.com

returns

ping: unknown host google.com

It seems I'm not even connected to any network, I will start investigating this right now.

apt.log & sources.list

What should I do?

hhlp
  • 42,002
JLinden
  • 990
  • did you try doing a sudo apt-get update before installing packages? or changing the download server mirrors? – Nitin Venkatesh Oct 18 '11 at 13:59
  • I've added apt-get update to my question, same error there. By changing download server mirrors, do you mean like this? http://ubuntuforums.org/showthread.php?t=876616 – JLinden Oct 18 '11 at 14:17
  • You're having DNS issues. If host example.com hangs or fails, but ping 192.0.43.10 works, you've confirmed it. Try setting the DNS server to 8.8.8.8 in Network Manager. – Lekensteyn Oct 18 '11 at 17:14
  • That might be the cause, only problem is I can't access Network Manager, or anything but the terminal. – JLinden Oct 18 '11 at 17:28

4 Answers4

1

I had this problem. It was because my wireless wasn't functioning for some reason while xserver wasn't running. I had to do a wired connection, then it all worked fine.

1

I got it working by downloading some of the packages I needed through a bootable USB, and then installing them in shell prompt (Recovery mode).

I don't know exactly what packages fixed my computer, but I think the ones I tried was:

  • xserver-xorg-video-all
  • xserver-xorg-video-intel
  • xserver-xorg-video-openchrome
  • xserver-xorg-input-evdev
  • xserver-xorg-video
  • xserver-xorg

After installing these, I could finally boot the computer into a semi-working state (some graphical bugs) and install updates to fully get xorg working again.

Lukens solution with a network cable seems more intelligent now though..

JLinden
  • 990
0

The problem is that the direction is bad writed, here is the really link: http://archive.ubuntu.com/ubuntu/pool/main/x/xorg/xserver-xorg_7.6+7ubuntu7_amd64.deb

-1

The /etc/resolv.conf ineditable, to avoid DNS problem I had to add to /etc/hosts the ip of servers echo "91.189.91.23 security.ubuntu.com" >> /etc/hosts echo "91.189.88.152 archive.ubuntu.com" >> /etc/hosts

Evgeny Mikhaylov
  • 129
  • 1
  • 10
Philippe Gachoud
  • 5,900
  • 3
  • 43
  • 50