canonical / ubuntu-drivers-common

GNU General Public License v2.0
38 stars 38 forks source link

Can not install listed driver. "cannot determine support level" #54

Open playaspec opened 3 years ago

playaspec commented 3 years ago

Thanks for taking a look. When I run:

# ubuntu-drivers list
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-lowlatency-hwe-20.04)
nvidia-driver-460-server, (kernel modules provided by linux-modules-nvidia-460-server-lowlatency-hwe-20.04)
nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-lowlatency-hwe-20.04)
nvidia-driver-460, (kernel modules provided by linux-modules-nvidia-460-lowlatency-hwe-20.04)
nvidia-driver-465, (kernel modules provided by linux-modules-nvidia-465-lowlatency-hwe-20.04)
nvidia-driver-390, (kernel modules provided by linux-modules-nvidia-390-lowlatency-hwe-20.04)

Consequently, using ubuntu-drivers to attempt to install version 390 yields:

# ubuntu-drivers install nvidia-driver-390
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
No drivers found for installation.

The failure appears to occur in UbuntuDrivers/detect.py in function _pkg_get_support()

The package nvidia-driver-390 has a Support: type of "Legacy", which is unaccounted for. It should also be noted that some drivers listen in apt-cache don't have a Support: field at all, and are omitted entirely from the available choices.

Perhaps this is an error in the metadata in the particular driver package, but it might be good to handle such edge cases gracefully here.

System is Ubuntu-Studio 20.04.2, ubuntu-drivers-common: 1:0.8.6.5~0.20.04.1

Thanks!

tseliot commented 3 years ago

Hi,

That is a warning, which doesn't prevent you from installing the driver.

Try with the following command:

ubuntu-drivers install nvidia:390

Regards,

On Wed, 23 Jun 2021 at 22:18, playaspec @.***> wrote:

Thanks for taking a look. When I run:

ubuntu-drivers list

WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-lowlatency-hwe-20.04) nvidia-driver-460-server, (kernel modules provided by linux-modules-nvidia-460-server-lowlatency-hwe-20.04) nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-lowlatency-hwe-20.04) nvidia-driver-460, (kernel modules provided by linux-modules-nvidia-460-lowlatency-hwe-20.04) nvidia-driver-465, (kernel modules provided by linux-modules-nvidia-465-lowlatency-hwe-20.04) nvidia-driver-390, (kernel modules provided by linux-modules-nvidia-390-lowlatency-hwe-20.04)

Consequently, using ubuntu-drivers to attempt to install version 390 yields:

ubuntu-drivers install nvidia-driver-390

WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level No drivers found for installation.

The failure appears to occur in UbuntuDrivers/detect.py in function _pkg_get_support()

The package nvidia-driver-390 has a Support: type of "Legacy", which is unaccounted for. It should also be noted that some drivers listen in apt-cache don't have a Support: field at all, and are omitted entirely from the available choices.

Perhaps this is an error in the metadata in the particular driver package, but it might be good to handle such edge cases gracefully here.

System is Ubuntu-Studio 20.04.2, ubuntu-drivers-common: 1:0.8.6.5~0.20.04.1

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tseliot/ubuntu-drivers-common/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACMLMOUUM4UTBLHWHZTERTTUI6SJANCNFSM47GQIZPQ .

-- Alberto Milone

jaclas commented 2 years ago

I get the same warning. I use drivers in 470 version, how to uninstall 390?

jacek@aorus:~/storage$ sudo ubuntu-drivers devices
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
== /sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.0 ==
modalias : pci:v000010DEd00001C82sv00001458sd00003729bc03sc00i00
vendor   : NVIDIA Corporation
model    : GP107 [GeForce GTX 1050 Ti]
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-460 - distro non-free
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-460-server - distro non-free
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

Command ubuntu-drivers has no uninstall/remove option.

tseliot commented 2 years ago

I don't think the 390 driver is installed on your system. You can ignore the warning.