无法在 Ubuntu 上清除/卸载 Nvidia 驱动程序

无法在 Ubuntu 上清除/卸载 Nvidia 驱动程序

所以这一切都始于安装 CUDA 10.1,然后意识到我的系统根本没有读取任何驱动程序。所以我卸载了 CUDA,重新安装了 9.1 版,停用了安全启动,然后尝试在“软件和更新”中的“附加驱动程序”下更改 gpu。然而,似乎什么都没用。所以我决定清除所有内容,包括 CUDA 以及 NVidia 驱动程序。但我也无法清除任何驱动程序,错误粘贴如下(注意:还有更多错误消息,但这两个涵盖了不同的类型):

Package 'xserver-xorg-video-nvidia-415' is not installed, so not removed
Package 'xserver-xorg-video-nvidia-418' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-drivers : Depends: libnvidia-common-440 (>= 440.64.00) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

此外,使用 sudo apt --fix-broken install 会出现以下一些错误:

dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.2.89-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容