Jetson Nano CUDA 安装后未满足的依赖关系

Jetson Nano CUDA 安装后未满足的依赖关系

我曾尝试在 Jetson Nano 4G 上安装 CUDA 11

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb
sudo dpkg -i cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_arm64.deb
sudo apt-key add /var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda

但在最后一步之后我开始收到以下错误:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cuda-drivers-450 : Depends: libnvidia-compute-450 (>= 450.51.05) but it is not installed
                    Depends: libnvidia-gl-450 (>= 450.51.05) but it is not installed
 libnvidia-decode-450 : Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not installed
 libnvidia-ifr1-450 : Depends: libnvidia-gl-450 but it is not installed
 nvidia-compute-utils-450 : Depends: libnvidia-compute-450 but it is not installed
 nvidia-driver-450 : Depends: libnvidia-gl-450 (= 450.51.05-0ubuntu1) but it is not installed
                 Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not installed
 nvidia-utils-450 : Depends: libnvidia-compute-450 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

你能告诉我如何解决这个问题吗?我已经尝试过了apt --fix-broken install,但没有用,提前谢谢了。

答案1

解决方案是强制安装继续,如下所示:

sudo apt-get -o dpkg::Options::="--force-overwrite" install --fix-broken

相关内容