sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" \
"*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
nvidia-uninstall
sudo apt-get autoremove --purge -V
Unmet dependencies. Try ‘apt --fix-broken install‘ with no packages
dpkg --configure -a
然后记录末尾的 Errors were encountered while processing: 后的包名
dpkg -r xxx1 xxx2 xxx3 ...