AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1284508
Accepted
Emanuele
Emanuele
Asked: 2020-10-18 02:12:30 +0800 CST2020-10-18 02:12:30 +0800 CST 2020-10-18 02:12:30 +0800 CST

即使设置了 PPA 也无法安装 Nvidia 驱动程序

  • 772

根据主题,我正在尝试在 Ubuntu 20.04 上安装驱动程序版本 455。我已启用 ppa:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

我可以将驱动程序视为 package nvidia-graphics-drivers-455。但是当我尝试安装它们时

ema@scv:~$ sudo apt install nvidia-graphics-drivers-455

我得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nvidia-graphics-drivers-455

update和的输出dist-upgrade

ema@scv:~$ sudo apt update && sudo apt dist-upgrade 
Hit:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://archive.canonical.com/ubuntu focal InRelease
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:6 http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease                                    
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                     
Hit:8 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                                                                       
Hit:9 https://download.virtualbox.org/virtualbox/debian focal InRelease 
Reading package lists... Done                           
Building dependency tree       
Reading state information... Done
All packages are up-to-date.
N: Skipping acquisition of configured file 'contrib/binary-i386/Packages', as repository 'https://download.virtualbox.org/virtualbox/debian focal InRelease' doesn't support architecture 'i386'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

现在我收到了包裹nvidia-driver-455,但它告诉我以下内容:

ema@scv:~$ sudo apt install nvidia-driver-455
Reading package lists... Done
Building dependency 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.
 nvidia-driver-455 : Depends: libnvidia-gl-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: nvidia-dkms-455 (<= 455.23.04-1) but it is not going to be installed
                     Depends: nvidia-dkms-455 (>= 455.23.04) but it is not going to be installed
                     Depends: nvidia-kernel-source-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-extra-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: nvidia-compute-utils-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: nvidia-utils-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-cfg1-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-ifr1-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-fbc1-455 (= 455.23.04-0ubuntu0~0.20.04.1) but it is not going to be installed
                     Recommends: libnvidia-compute-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
                     Recommends: libnvidia-decode-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
                     Recommends: libnvidia-encode-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
                     Recommends: libnvidia-ifr1-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
                     Recommends: libnvidia-fbc1-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
                     Recommends: libnvidia-gl-455:i386 (= 455.23.04-0ubuntu0~0.20.04.1)
E: Unable to correct problems, you have held broken packages.

不知道发生了什么。有谁知道为什么会发生这种情况?

谢谢!

drivers ppa nvidia graphics 20.04
  • 4 4 个回答
  • 4757 Views

4 个回答

  • Voted
  1. Best Answer
    Emanuele
    2020-10-18T06:44:06+08:002020-10-18T06:44:06+08:00

    最初的问题是因为如果一个有多个条目

    ppa:graphics-drivers/ppa
    

    在全局 ppa 列表中,可能不会显示nvidia-driver-455. 清理完之后,我就可以看到元数据包了。

    它不会安装,因为我有版本450,因此以下命令可以解决问题:

    sudo apt remove nvidia-driver-450
    sudo apt install nvidia-driver-455
    

    现在一切都很好。

    第一个问题(重复的 ppa 条目)让我发疯了一段时间。

    • 4
  2. Thomas Covenant
    2020-11-17T18:01:24+08:002020-11-17T18:01:24+08:00

    以下对我有用:

    sudo apt dist-upgrade
    

    重新启动后,XOrg 驱动程序处于活动状态。现在我在 SoftwareUpdater 中选择了 455 驱动程序并安装并激活了 455 驱动程序。

    • 1
  3. helpless child
    2020-11-24T09:12:50+08:002020-11-24T09:12:50+08:00

    我的解决方案是手动删除具有状态的包的每个当前版本。but it is not going to be installed

    所以我有驱动程序版本 440。我必须sudo apt purge libnvidia-gl-440为所有这些都删除等等。之后,错误消失了。

    • 1
  4. Pilot6
    2020-10-18T02:14:44+08:002020-10-18T02:14:44+08:00

    正确的命令是

    sudo apt install nvidia-driver-455
    
    • 0

相关问题

  • 为自定义 PPA 修补 Wine 的正确方法是什么?

  • 我如何创建自己的 php 5.3.3 包/ppa?

  • 如何删除 PPA?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

  • 在哪里可以找到 Brother HL-2170W 64 位打印机驱动程序?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve