Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently killed xserver on my machine after a regular update. I have uninstalled and reinstalled


with no success. Looks I have reinstall xserver. How do i achieve this?

Please and thank you.

share|improve this question

Method : 1

One easy way to reinstall the X server is to:

Restart the PC with the live ubuntu disk.   
Choose safe graphics mode.  
Open a terminal  
cd to /etc/X11  
cp xorg.conf to /media/usbdrive  
open gftp  
upload the xorg.conf file to a server  
restart PC without the live disk  
cd /etc/X11  
sudo rm xorg.conf  
then wget www.yourserver/xorg.conf  

You will be able to start X without a hitch because the live cd in safe graphics mode automatically determined your X settings.

Method : 2

If you just need working configuration, not the whole Xserver? then, backup your /etc/X11/xorg.conf and do

sudo dpkg-reconfigure xserver-xorg

Method : 3

If you really need to reinstall whole Xserver, try

sudo apt-get install --reinstall xserver-xorg


share|improve this answer
I tried all of these it still doesn't want to bring back my xserver still booting in tty mode – myusuf3 Jan 14 '11 at 0:16
just try Ctrl+Alt+7.. or Ctrl+Alt+Backspace – Sen Jan 14 '11 at 5:53
"Unable to locate package xserver-org" – Cerin Jan 3 '15 at 5:30
up vote 3 down vote accepted

it turns out there was some issue with my nvidia-current running the following command managed to get me back to non-accelerated gui, where I was then able to reinstall nvidia-current through the gui.

From the terminal:

sudo apt-get remove --purge nvidia-*

Then reinstalled nvidia driver through Ubuntu setup.

share|improve this answer
sudo apt-get install --reinstall xserver-xorg 

made the wall paper and mouse visible. But to see everything else I had to use

sudo service gdm restart

this made me reach the log-in page. If it happened that the machine didn't recognize your password, make sure /tmp is writable by everyone

chmod 7777 /tmp
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.