Dependencies conflicts breaks upgrade process

Bug #1926439 reported by Roman Shipovskij
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NVIDIA Drivers Ubuntu
New
Undecided
Unassigned
unattended-upgrades
New
Undecided
Unassigned
linux-restricted-modules (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Latest updates of linux-restricted-modules breaks upgrade process, updates cannot be installed without removing nvidia modules for previous kernel version, unattended-upgrade cannot do that, as result we have broken system without nvidia driver

~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-modules-nvidia-460-5.4.0-71-generic
The following NEW packages will be installed:
  linux-modules-nvidia-460-5.4.0-72-generic linux-objects-nvidia-460-5.4.0-72-generic linux-signatures-nvidia-5.4.0-72-generic
The following packages will be upgraded:
  libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-compute-460:i386 libnvidia-decode-460 libnvidia-decode-460:i386 libnvidia-encode-460 libnvidia-encode-460:i386 libnvidia-extra-460
  libnvidia-fbc1-460 libnvidia-fbc1-460:i386 libnvidia-gl-460 libnvidia-gl-460:i386 libnvidia-ifr1-460 libnvidia-ifr1-460:i386 linux-modules-nvidia-460-generic nvidia-compute-utils-460
  nvidia-driver-460 nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
21 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 199 MB of archives.
After this operation, 45.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

~# apt show linux-modules-nvidia-460-5.4.0-71-generic
Package: linux-modules-nvidia-460-5.4.0-71-generic
Version: 5.4.0-71.79+1
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32.8 kB
Depends: debconf (>= 0.5) | debconf-2.0, linux-image-5.4.0-71-generic | linux-image-unsigned-5.4.0-71-generic, linux-signatures-nvidia-5.4.0-71-generic (= 5.4.0-71.79+1), linux-objects-nvidia-460-5.4.0-71-generic (= 5.4.0-71.79+1), nvidia-kernel-common-460 (<= 460.56-1), nvidia-kernel-common-460 (>= 460.56)
Download-Size: 7136 B
APT-Manual-Installed: no
APT-Sources: http://archive.pls.pbank.com.ua/ubuntu-current focal-updates/restricted amd64 Packages
Description: Linux kernel nvidia modules for version 5.4.0-71

This dependencies should be removed to fix this problem:
nvidia-kernel-common-460 (<= 460.56-1), nvidia-kernel-common-460 (>= 460.56)

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :
Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-restricted-modules (Ubuntu):
status: New → Confirmed
Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

Last version without this problem:

~# apt show linux-modules-nvidia-460-5.4.0-70-generic
Package: linux-modules-nvidia-460-5.4.0-70-generic
Version: 5.4.0-70.78
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 45.3 MB
Depends: debconf (>= 0.5) | debconf-2.0, binutils, linux-image-5.4.0-70-generic | linux-image-unsigned-5.4.0-70-generic
Download-Size: 24.2 MB
APT-Sources: http://archive.pls.pbank.com.ua/ubuntu-current focal-updates/restricted amd64 Packages
Description: Linux kernel nvidia modules for version 5.4.0-70

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

Problem is still here:

~$ apt show linux-modules-nvidia-460-5.4.0-74-generic
Package: linux-modules-nvidia-460-5.4.0-74-generic
Version: 5.4.0-74.83+1
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32,8 kB
Depends: debconf (>= 0.5) | debconf-2.0, linux-image-5.4.0-74-generic | linux-image-unsigned-5.4.0-74-generic, linux-signatures-nvidia-5.4.0-74-generic (= 5.4.0-74.83+1), linux-objects-nvidia-460-5.4.0-74-generic (= 5.4.0-74.83+1), nvidia-kernel-common-460 (<= 460.80-1), nvidia-kernel-common-460 (>= 460.80)

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

Problem is still here:

~# apt show linux-modules-nvidia-470-5.4.0-90-generic
Package: linux-modules-nvidia-470-5.4.0-90-generic
Version: 5.4.0-90.101+1
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32,8 kB
Depends: debconf (>= 0.5) | debconf-2.0, linux-image-5.4.0-90-generic | linux-image-unsigned-5.4.0-90-generic, linux-signatures-nvidia-5.4.0-90-generic (= 5.4.0-90.101+1), linux-objects-nvidia-470-5.4.0-90-generic (= 5.4.0-90.101+1), nvidia-kernel-common-470 (<= 470.82.00-1), nvidia-kernel-common-470 (>= 470.82.00)

Steve Langasek (vorlon)
Changed in linux-restricted-modules (Ubuntu):
importance: Undecided → High
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The dependencies are intentionally very strict, to ensure that kernel / nvidia drivers / nvidia userspace are all installed and are compatible with each other.

However, it was intended to be upgradable unattended. And since one can have up to three kernel ABIs on disk, one should in theory be allowed to have 3 sets of nvidia modules for older ABIs on disk as well.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Idea: move the strict `nvidia-kernel-common-N (<= N)` from the `linux-modules-nvidia-N-ABI` package to the meta packages `linux-modules-nvidia-N-kernelflavour`

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

Problem is still here:

~$ apt show linux-modules-nvidia-470-5.4.0-91-generic
Package: linux-modules-nvidia-470-5.4.0-91-generic
Version: 5.4.0-91.102+2
Priority: optional
Section: restricted/kernel
Source: linux-restricted-modules
Origin: Ubuntu
Maintainer: Canonical Kernel Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 32,8 kB
Depends: debconf (>= 0.5) | debconf-2.0, linux-image-5.4.0-91-generic | linux-image-unsigned-5.4.0-91-generic, linux-signatures-nvidia-5.4.0-91-generic (= 5.4.0-91.102+2), linux-objects-nvidia-470-5.4.0-91-generic (= 5.4.0-91.102+2), nvidia-kernel-common-470 (<= 470.86-1), nvidia-kernel-common-470 (>= 470.86)

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.