- Uninstall cuda
run cuda-uninstaller in /usr/local/cuda/bin using root user
- Install Cuda
Download runfile from cuda official website.
sudo sh cuda_xxx.run.
Note that don't select nvidia driver! - Configuration add these lines to the end of ~/.bashrc
export PATH=$PATH:/usr/local/cuda/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/home/wlbtest/.local/bin
After that
source ~/.bashrc