nvidia-driver-XXX-server and nvidia-driver-5XX fail to install if nvidia-driver-470 is installed

Bug #1984115 reported by Joao Andre Simioni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-470 (Ubuntu)
New
Undecided
Alberto Milone

Bug Description

[Impact]

After installing nvidia-driver-450, apt fails to install any of the following:
  - nvidia-driver-450-server
  - nvidia-driver-470-server
  - nvidia-driver-510-server
  - nvidia-driver-515-server
  - nvidia-driver-510
  - nvidia-driver-515

[Platforms]

  - Bionic (ubuntu 18.04)
  - Focal (ubuntu 20.04)

[Test case]

# dpkg -l | grep nvidia-driver
ii nvidia-driver-450 460.91.03-0ubuntu0.20.04.1 amd64 Transitional package for nvidia-driver-460
ii nvidia-driver-460 470.141.03-0ubuntu0.20.04.1 amd64 Transitional package for nvidia-driver-470
ii nvidia-driver-470 470.141.03-0ubuntu0.20.04.1 amd64 NVIDIA driver metapackage

# apt install nvidia-driver-450-server
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-450-server : Depends: libnvidia-gl-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-extra-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-decode-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-encode-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: xserver-xorg-video-nvidia-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-cfg1-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-ifr1-450-server (= 450.203.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Recommends: libnvidia-compute-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-decode-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-encode-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-ifr1-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-fbc1-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-gl-450-server:i386 (= 450.203.03-0ubuntu0.20.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

# apt install nvidia-driver-470-server
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-470-server : Depends: libnvidia-gl-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: nvidia-compute-utils-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-decode-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-encode-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: xserver-xorg-video-nvidia-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-cfg1-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-ifr1-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Depends: libnvidia-fbc1-470-server (= 470.141.03-0ubuntu0.20.04.1) but it is not going to be installed
                            Recommends: libnvidia-compute-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-decode-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-encode-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-ifr1-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-fbc1-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
                            Recommends: libnvidia-gl-470-server:i386 (= 470.141.03-0ubuntu0.20.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

[Workaround]

If the full dependency list is passed to the installation command, the installation succeeds.

# apt install nvidia-driver-470-server libnvidia-gl-470-server nvidia-compute-utils-470-server libnvidia-decode-470-server xserver-xorg-video-nvidia-470-server libnvidia-cfg1-470-server libnvidia-ifr1-470-server libnvidia-fbc1-470-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libnvidia-common-470-server libnvidia-compute-470-server libnvidia-encode-470-server libnvidia-extra-470-server nvidia-dkms-470-server nvidia-kernel-common-470-server nvidia-kernel-source-470-server
  nvidia-utils-470-server
Recommended packages:
  libnvidia-compute-470-server:i386 libnvidia-decode-470-server:i386 libnvidia-encode-470-server:i386 libnvidia-ifr1-470-server:i386 libnvidia-fbc1-470-server:i386 libnvidia-gl-470-server:i386
The following packages will be REMOVED:
  libnvidia-cfg1-470 libnvidia-common-470 libnvidia-compute-470 libnvidia-decode-470 libnvidia-encode-470 libnvidia-extra-470 libnvidia-fbc1-470 libnvidia-gl-470 libnvidia-ifr1-470
  nvidia-compute-utils-470 nvidia-dkms-470 nvidia-driver-450 nvidia-driver-460 nvidia-driver-470 nvidia-kernel-common-470 nvidia-kernel-source-470 nvidia-utils-470 xserver-xorg-video-nvidia-470
The following NEW packages will be installed:
  libnvidia-cfg1-470-server libnvidia-common-470-server libnvidia-compute-470-server libnvidia-decode-470-server libnvidia-encode-470-server libnvidia-extra-470-server libnvidia-fbc1-470-server
  libnvidia-gl-470-server libnvidia-ifr1-470-server nvidia-compute-utils-470-server nvidia-dkms-470-server nvidia-driver-470-server nvidia-kernel-common-470-server nvidia-kernel-source-470-server
  nvidia-utils-470-server xserver-xorg-video-nvidia-470-server
0 upgraded, 16 newly installed, 18 to remove and 14 not upgraded.
Need to get 222 MB of archives.
After this operation, 30.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]

[Notes]
The same problem is not seen on Jammy (ubuntu 22.04)

Changed in nvidia-graphics-drivers-470 (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.