I am currently trying to get CUDA-8.0 to work on ubuntu 14.04 while previous versions of CUDA were already installed. This is a very careful balancing act, where the right steps need to be taken in the right order. Unfortunately I failed. This leaves me with undescriptive errors and no obvious way to solve them.
The standard way to solve these problems is of course: reinstall the OS and try again. However that has obvious disadvantages as well.
I need to remove anything remotely related to CUDA and nvidia to be able to retry installing CUDA-8.0. This includes any graphics drivers. However graphics drivers are potentially important for the workings of my OS (Ubuntu 14.04). How should I approach deleting nvidia drivers without bricking my computer?
The command I am hesitant to use is:
sudo apt-get remove --purge nvidia-*