Vin*_*ing 7 package-management nvidia dependencies software-installation 20.04
我运行以下命令
sudo apt install nvidia-driver-450
但它抛出以下错误
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 msudo apt install nvidia-driver-450
sudo rebootay help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-450 : Depends: libnvidia-gl-450 (= 450.80.02-0ubuntu1) but 450.80.02-0ubuntu0.20.04.2 is to be installed
Depends: nvidia-dkms-450 (= 450.80.02-0ubuntu1)
Recommends: nvidia-settings but it is not going to be installed
Recommends: nvidia-prime (>= 0.8) but it is not installable
Recommends: libnvidia-compute-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-decode-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-encode-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-ifr1-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-fbc1-450:i386 (= 450.80.02-0ubuntu1)
Recommends: libnvidia-gl-450:i386 (= 450.80.02-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
我也尝试安装 nvidia-prime,但它说没有安装候选。我在这里尝试了在 askubuntu 上找到的所有内容,但仍然无法解决。我错过了什么吗?
删除所有 nvidia 软件包。
sudo apt update
sudo apt remove '^nvidia'
sudo apt autoremove
Run Code Online (Sandbox Code Playgroud)
如果您添加了一个 Nvidia PPA 以/etc/apt/sources.list
通过在 sources.list 中的行前加上#
注释来删除该 PPA 。运行sudo apt update
以刷新可用软件列表。
重启 sudo reboot
运行以下命令安装 Nvidia 450 驱动程序。
sudo apt install nvidia-driver-450
sudo reboot
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 20.04 中安装 nvidia-driver-450 图形驱动程序后,它可能会通过正常的软件更新活动从 nvidia-driver-450 更新为 nvidia-driver-460。
作为步骤 4 的替代方法,您可以让ubuntu-drivers
程序自动选择与您的 GPU 最兼容的专有 Nvidia 软件包,而不是猜测要安装哪些 Nvidia 驱动程序软件包。要以这种方式安装 Nvidia 专有驱动程序,请运行以下命令而不是步骤 4 中的命令。
sudo ubuntu-drivers autoinstall && sudo reboot
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
10026 次 |
最近记录: |