Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As expected, Nvidia drivers have reduced my customizations. I can't login to Unity 3D session. I can't find any content to help me to uninstall the driver and I don't know what to do as I have never uninstalled them before.

share|improve this question
    
About the unity, do "unity --reset" –  Nick Bailuc Mar 9 at 17:49
add comment

3 Answers

up vote 35 down vote accepted

For Ubuntu 12.04

Commands can be executed to terminal. You can open a terminal with Ctrl + Alt+T keys combo.

If you remove --purge the nvidia driver you will be OK. No need to blacklist something, but sometimes maybe a force-load of the nouveau module needed.

First uninstall completely the driver.

Search what packages from nvidia you have installed.

dpkg -l | grep -i nvidia

except the package nvidia-common all other packages should be purged.


If you want to be sure that you will purge everything related to nvidia you can give this command

sudo apt-get remove --purge nvidia-*

the asterisk in the end means (Purge everything that begins with the name nvidia-)

BUT

above command will also remove the nvidia-common package and the nvidia-common package has as a dependency the ubuntu-desktop package.

So after above command you should also give the installation command for ubuntu-desktop package

sudo apt-get install ubuntu-desktop

Also sometimes the nouveau driver get blacklisted from nvidia driver. With purge command it should UN-blacklisted. If you want to be sure that nouveau will be load in boot, you can force-load it by add it to /etc/modules

echo 'nouveau' | sudo tee -a /etc/modules

Last , search for the xorg.conf file and remove it as well

sudo rm /etc/X11/xorg.conf

In summary

sudo apt-get remove --purge nvidia-*
sudo apt-get install ubuntu-desktop
sudo rm /etc/X11/xorg.conf
echo 'nouveau' | sudo tee -a /etc/modules

Although all above commands not needed, this is my way to completely purge the nvidia driver and use the open source nounveau.

share|improve this answer
    
Worked like a charm. Thanks! This was exactly what I needed. –  VedVals Oct 25 '12 at 14:43
3  
Your recipe just solved for me a similar problem that kept me last night fiddling with my computer until 3 am. Not enough thanks. –  Jorge M. Treviño Feb 22 '13 at 18:46
    
Yes indeed it worked as a charm!! –  alvas Apr 27 '13 at 6:43
    
thanks, this was effective on ubuntu 13.10 –  bsautner Oct 25 '13 at 12:53
    
This answer is still helping out! Fixed my Lubuntu 13.10. Thanks! –  travisw Feb 3 at 15:02
show 1 more comment

To uninstall nVIDIA driver, open terminal by pressing (Ctrl+Alt+T) then type:

sudo apt-get purge nvidia-current
share|improve this answer
add comment

Is there a way to send kisses through this. Cause this one fix fixed everything.

So for those who want to know my issue.

I had tried to install the 331.21 driver from nvidia with an 8600 gt, it did not work. So it kept crashing my lightdm. I tried installing gdm. To fix it didn't help. Then I tried a whole assortment of other things related to me. Getting errors during boot like starting readahead and then just freezing. So to fix it I went into recovery and purge lightdm. Then reboot. It booted into what is known as tty. From there I installed gdm. Then rebooted.

Then instead of freezing it just loaded into tty.

Then I tried this fix. If you type apt-get ubuntu Desktop it it doesn't promot for downloading something and just says update 57 or something then do a sudo apt-get update & and upgrade. Should do what it needs to do. A fatal error you must not make is not doing any of this during system usage. Also whe. TThe nvidia installer asks you to create a back up. Don't do any of this just boot into tty and Type the same thing you did to install the 333.21 but with the remove tag. Like when you try ~/Downloads/blah blah have - - remove at the end.

share|improve this answer
add comment

protected by Community Mar 9 at 19:46

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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