介绍
在Ubuntu 23.10安装Nvidia Cuda 12.4的时候,报错如下:
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:
nsight-systems-2023.4.4 : Depends: libtinfo5 but it is not installable
E: Unable to correct problems, you have held broken packages.
因为Ubuntu 23.10里没有安装。
安装
步骤如下
sudo nano /etc/apt/sources.list
- 打开文件后,复制下面的行到文件中并保存:
deb http://archive.ubuntu.com/ubuntu/ lunar universe
- 刷新
sudo apt update
继续安装cuda:
sudo apt-get -y install cuda-toolkit-12-4