我有一台带有 1060 GPU 的笔记本电脑,它设置了 Ubuntu 20.04。我已经安装了 nvidia-driver-460 + cuda 11.2 并且一直工作到今天。我今天尝试安装 ROS,在 this link 后添加源和密钥后,它不允许我安装 ROS,说某些软件包具有 unmet dependencies
。之后,我发出了 apt autoremove
并删除了 nvidia 驱动程序 和 cuda。
我仍然无法安装 ROS,现在尝试执行 apt install nvidia-driver-460
也会给我 unmet dependencies
。这是 sudo ubuntu-drivers autoinstall
的输出,类似于 apt install
命令输出
Reading package lists... Done
Building dependenc y tree
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:
linux-modules-nvidia-460-generic-hwe-20.04 : Depends: nvidia-kernel-common-460 (>= 460.39) but 460.32.03-0ubuntu1 is to be installed
nvidia-driver-460 : Depends: libnvidia-gl-460 (= 460.32.03-0ubuntu1) but it is not going to be installed
Depends: libnvidia-ifr1-460 (= 460.32.03-0ubuntu1) but it is not going to be installed
Recommends: libnvidia-compute-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-decode-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-encode-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-ifr1-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-fbc1-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-gl-460:i386 (= 460.32.03-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
这是我迄今为止尝试过但没有奏效的方法
apt purge *nvidia*
、apt autoremove
、apt autoclean
和重新安装驱动程序sudo apt -f install
并重新安装驱动程序sudo apt-add-repository -r ppa:graphics-drivers/ppa
并重新安装驱动程序到目前为止,我从 apt install nvidia-driver-460
得到的输出没有任何改变。非常感谢任何帮助。
我在 i7 核心机器上安装了 64 位 Ubuntu。那么为什么我会在 apt install 输出中看到 i386?
$ uname -a
Linux XXXX 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
答案 0 :(得分:3)
答案 1 :(得分:2)
启用 restricted
存储库和安全更新:
sudo add-apt-repository restricted
echo "deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse" |\
sudo tee -a /etc/apt/sources.list
然后运行:
sudo apt update
sudo apt install nvidia-kernel-common-460 nvidia-driver-460