package has invalid Support Legacyheader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Having recently upgraded 20.10 -> 21.04 it is no longer possible to install the nvidia drivers. Running: ubuntu-drivers devices
Outputs:
WARNING:
== /sys/devices/
modalias : pci:v000010DEd0
vendor : NVIDIA Corporation
model : GK104 [GeForce GTX 770]
driver : nvidia-driver-460 - distro non-free recommended
driver : nvidia-
driver : nvidia-driver-465 - distro non-free
driver : nvidia-
driver : nvidia-driver-390 - distro non-free
driver : nvidia-
driver : xserver-
Running: ubuntu-drivers install nvidia-driver-460
Outputs:
WARNING:
No drivers found for installation.
I've tried:
apt-get remove --purge "nvidia*" libnvidia-ifr1-460
and then re-doing the ubuntu-drivers commands. But that doesn't make a difference.
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.11.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Wed Jul 7 11:01:07 2021
InstallationDate: Installed on 2017-05-13 (1515 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to hirsute on 2021-07-04 (2 days ago)
So the Support Legacyheader was a red herring.
Debugging the ubuntu-drivers python showed that :=--force- confnew -y nvidia-driver-460 linux-modules- nvidia- 460-generic
ubuntu-drivers install
calls the following:
apt-get install -o DPkg::options:
when run manually this gives the output: gl-460_ 460.84- 0ubuntu0. 21.04.1_ amd64.deb ... x86_64- linux-gnu/ libGL.so. 1 to /usr/lib/ x86_64- linux-gnu/ libGL.so. 1.distrib by nvidia-340 x86_64- linux-gnu/ libGL.so. 1 by libnvidia-gl-460' x86_64- linux-gnu/ libGL.so. 1 to /usr/lib/ x86_64- linux-gnu/ libGL.so. 1.distrib by nvidia-340' apt/archives/ libnvidia- gl-460_ 460.84- 0ubuntu0. 21.04.1_ amd64.deb (--unpack): gl-460: amd64 package pre-installation script subprocess returned error exit status 2 ifr1-460: amd64. ifr1-460_ 460.84- 0ubuntu0. 21.04.1_ amd64.deb ... ifr1-460: amd64 (460.84- 0ubuntu0. 21.04.1) ... nvidia- 460-generic. modules- nvidia- 460-generic_ 5.11.0- 24.25_amd64. deb ... nvidia- 460-generic (5.11.0-24.25) ... driver- 460_460. 84-0ubuntu0. 21.04.1_ amd64.deb ... 0ubuntu0. 21.04.1) ... apt/archives/ libnvidia- gl-460_ 460.84- 0ubuntu0. 21.04.1_ amd64.deb
Preparing to unpack .../libnvidia-
diversion of /usr/lib/
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
found 'diversion of /usr/lib/
dpkg: error processing archive /var/cache/
new libnvidia-
Selecting previously unselected package libnvidia-
Preparing to unpack .../libnvidia-
Unpacking libnvidia-
Selecting previously unselected package linux-modules-
Preparing to unpack .../linux-
Unpacking linux-modules-
Selecting previously unselected package nvidia-driver-460.
Preparing to unpack .../nvidia-
Unpacking nvidia-driver-460 (460.84-
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
So perhaps something did get cleaned up correctly in the upgrade? Searching for this error led me to: https:/ /bugs.launchpad .net/ubuntu/ +source/ nvidia- graphics- drivers- 390/+bug/ 1768050 where the suggested fix for running dpkg-divert --remove, resulted in ubuntu-drivers install running successfully.
Not sure why this output didn't show up when I initially call ubuntu-drivers from the cmd line. Perhaps because the GUI had already called it and now apt was unhappy there was no output, just a non-zero return code?