I am trying to install CUDA drivers on kubuntu 12.04, but in order to do so I need to remove nvidia drivers (which come in with the distro). The problem I have is that while doing so it also removes kubuntu-desktop, which is disasterous (though cuda installs ok). I had the same problem when trying Linux Mint 13 KDE.

I followed the link here: http://sn0v.wordpress.com/2012/05/11/installing-cuda-on-ubuntu-12-04/ and noticed that some people have come across this problem as well, but no solution has been found yet - except for not installing the cuda, lol.

I also tried this:

sudo apt-get purge nvidia-common

only to get the same warning of being about to remove the desktop:

Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be REMOVED:
    kubuntu-desktop nvidia-common
0 upgraded, 0 newly installed, 2 to remove and 435 not upgraded.
After this operation, 197 kB disk space will be freed.
Do you want to continue [Y/n]? n

My question is - can you remove the nvidia drivers in a way that does not remove kubuntu-desktop (or ubuntu-desktop) at the same time? Or do I have to go with killing the desktop and then install the it again after cuda is installed? Wouldn't it affect other apps, which depend on kubuntu-desktop?

I need CUDA for my CG work and so any help would be really welcome, thanks!

  • Why dont you remove it from the Jockey? which is basically the additional drivers ?
    – Suhaib
    Oct 2, 2012 at 14:01
  • Thanks for reply; I haven't activated any of the drivers from the Additional Drivers yet (I am working on a fresh kubuntu install) and there seems to be no way to remove them from this list (that I know of) - is that what you meant?
    – Phil_thy
    Oct 2, 2012 at 14:58
  • I installed CUDA and the NVIDIA drivers on Kubuntu 12.04 and didn't have any issues. I think I just installed the new drivers without uninstalling anything, and X was automatically reconfigured to use the new drivers.
    – Roger Dahl
    Oct 2, 2012 at 15:34
  • To avoid having the drivers that come with Kubuntu be installed, I guess you could start the install without an NVIDIA graphics card in the machine. Then install CUDA, then add the graphics card.
    – Roger Dahl
    Oct 2, 2012 at 15:35
  • @Phil_thy Yea That is what I meant. I think this is what you are looking for: askubuntu.com/questions/112302/… Look at the 1st solution :)
    – Suhaib
    Oct 2, 2012 at 16:19

2 Answers 2


Following this link helped:


  • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question (as the one who posted the question, you probably know it does), it would be preferable to include the essential parts of the answer here, and provide the link for reference. Oct 4, 2012 at 5:19
The following packages will be REMOVED:
    kubuntu-desktop nvidia-common

kubuntu-desktop is a meta-package. I.e. it's a virtual package, which has other packages as dependencies. Removing this package doesn't remove the packages which depend on it.

So, the answer is: don't worry that kubuntu-desktop package is removed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .