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

标签 linux ubuntu graphics nvidia apt

关闭。这个问题不符合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/

    相关文章:

    使用 grep 匹配冒号和斜线中的 IP 地址的正则表达式

    linux - 在 shell 脚本中使用 echo 丢失字符

    用于重复行检索的 Linux 命令或/和脚本

    即使我调用 super.paintComponent(g),Java 图形也不会删除线条

    graphics - 抗锯齿替代品

    macos - OpenGL 纹理单元的范围是什么?

    linux - 如何测试变量是否是 bash 中的字符串?

    ubuntu - 使用 WAF 和 NS3 时链接共享库

    linux - 使用 TR 从字符串中删除控制字符

    c - 在C中如何将局部函数变量值传递给另一个函数并无错误地打印值