Ubuntu 22.04.1 LTS Jammy 的 Nvidia 驱动程序问题,内核:5.15.53-generic

Ubuntu 22.04.1 LTS Jammy 的 Nvidia 驱动程序问题,内核:5.15.53-generic

尝试使用以下命令更新我的 Cuda 驱动程序和工具包关联,我收到以下错误

$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 cuda-drivers-520 : Depends: nvidia-settings (>= 520.61.05) but it is not installable
 nsight-systems-2022.4.2 : Depends: libtinfo5 but it is not installable
E: Unable to correct problems, you have held broken packages.

另外,我尝试使用来自同一链接的 .run 文件安装 cuda 驱动程序,它确实有效,但似乎未安装 cuda 工具包。我使用

$ nvcc --version 
Command 'nvcc' not found, but can be installed with:
sudo apt install nvidia-cuda-toolkit

如果有人能帮助我我将非常感激!

答案1

嘿,我在办公室电脑上遇到了同样的问题,所以我使用命令修复了它

lsmod | grep nvidia

并查看冲突的依赖项。然后逐个删除依赖项。我知道这是一项繁琐的工作,但对我来说很有效。

答案2

我认为我已经找到了一种方法,在选中 ubuntu 软件选项卡中的框以便从互联网下载后,如图所示 软件更新程序

然后重启系统。之后,我可以重新安装 Cuda-toolkit-1.8 及其所有功能的驱动程序。

相关内容