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 / 问题 / 1110053
Accepted
ash
ash
Asked: 2019-01-16 12:20:43 +0800 CST2019-01-16 12:20:43 +0800 CST 2019-01-16 12:20:43 +0800 CST

在安装新驱动程序之前,我是否必须删除当前的 Nvidia 驱动程序?

  • 772

我在混合 Nvidia 笔记本电脑上使用 Ubuntu 18.04,并带有 Ubuntu 打包的 Nvidia 390 驱动程序。我想升级到版本 410 驱动程序,所以我添加了图形驱动程序 PPA 并尝试安装它们,因为我在网上找到的所有地方都建议你只需要这样做。相反,apt 大喊安装新驱动程序会导致的大量依赖问题:

$ sudo apt install nvidia-driver-410 
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-410 : Depends: libnvidia-gl-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-dkms-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-kernel-source-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-compute-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-compute-utils-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-utils-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Depends: libnvidia-ifr1-410 (= 410.78-0ubuntu1~gpu18.04.1) but it is not going to be installed
                     Recommends: libnvidia-compute-410:i386 (= 410.78-0ubuntu1~gpu18.04.1)
                     Recommends: libnvidia-decode-410:i386 (= 410.78-0ubuntu1~gpu18.04.1)
                     Recommends: libnvidia-encode-410:i386 (= 410.78-0ubuntu1~gpu18.04.1)
                     Recommends: libnvidia-ifr1-410:i386 (= 410.78-0ubuntu1~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.

这些问题看起来很真实——aptitude why-not说 390 驱动程序与 410 驱动程序的几乎每个部分发生冲突(直接或间接)。在这种情况下:

  • 在安装 410 驱动程序之前是否需要卸载 390 驱动程序?(大概是这样的apt purge nvidia-driver-390 && apt autoremove --purge?)
  • 使用 Nvidia GPU 时这样做是否安全?如果我无法安装新的驱动程序怎么办?
package-management drivers nvidia graphics hybrid-graphics
  • 1 1 个回答
  • 1058 Views

1 个回答

  • Voted
  1. Best Answer
    Rinzwind
    2019-01-16T12:49:03+08:002019-01-16T12:49:03+08:00
    1. 需要...不。建议...是的。一般系统会先删除有冲突的包,比如旧的驱动,然后再安装新的包。
    2. 是的。系统将回退到通用驱动程序。

    如果我无法安装新的驱动程序怎么办?

    您再次安装旧版本。您可能遇到的唯一真正问题是系统在启动期间崩溃。在这种情况下,您可以从 grub 救援中删除驱动程序。

    如果一切都失败了......重新安装。因此,在您做任何事情之前,请备份您的所有个人文件。

    • 2

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

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