Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solve ubuntu18.04 installation nvidia driver report nvidia-dkms dependency can not be installed (with full picture)

Shulou Source: shulou.com Published: 2022-06-03 08:34:37 09月21日 Update

The origin of the problem is shown in the following figure:

Prompt

Nvidia-driver-440: dependency: nvidia-dkms-440 (= 440.26-0ubuntu0~gpu18.04.2) but it will not be installed

(English system hint

Nvidia-driver-440: Depends: nvidia-dkms-440 (= 440.26-0ubuntu0~gpu18.04.2) but it is not going to be installed)

There is a big circle around the Internet, and every time I find it, I can't take the ladder google on my own Ubuntu.

Found a website about linux acrh:

Https://www.archlinux.org/packages/extra/x86_64/nvidia-dkms/

Under the page information, the nvidia-dkms 440.31-2 package depends on dkms,libglvnd and so on.

Key information nvidia-dkms that we cannot install should be based on dkms.

So, try to install the basic sudo apt install dkms first.

Peel down layer by layer, and try to install which one cannot be installed to see the dependency information.

Sudo apt install dpkg-dev

Continue sudo apt install libdpkg-perl

It is suggested that libdpkg-perl is up to date. If you look at the version information above, you can see that it affects the dependencies above. So, delete it.

Sudo apt remove libdpkg-perl

So, don't start at the bottom of the installation. To build dependent installations from the source location from top to bottom.

Sudo apt install nvidia-driver-440

Since then, the problem has been solved.

Tags: Information hint question face location key foundation bottom source version system website top-down since then origin page English try influence whole process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi MySQL MariaDB vpn