gpt4 book ai didi

linux - Nvidia驱动安装未满足的依赖

转载 作者:行者123 更新时间:2023-12-04 18:55:00 26 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


10 个月前关闭。







Improve this question




我有一台带有 的笔记本电脑1060 安装了 Ubuntu 20.04 的 GPU。我有 英伟达驱动程序 460 + cuda 11.2 安装并工作到今天。我今天尝试安装 ROS,并在 this link 之后添加源和 key 后,它不允许我安装 ROS 说某些软件包有 unmet dependencies .之后我发出了 apt autoremove这删除了 ​​英伟达驱动 库达 .
我仍然无法安装 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

    最佳答案

    取消选中 cuda repo 来自 软件和更新 成功了。 (这张图片中的第5个)
    enter image description here

    关于linux - Nvidia驱动安装未满足的依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66380789/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com