kerneldetection exception when a custom kernel installed

Bug #1975430 reported by Henning Sprang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
New
Undecided
Unassigned

Bug Description

I want to switch back from the nvidia driver to nouveau.

In the dialog the last row lets me select the Nouveau driver, but the "apply" button is inactive and doesnt let me apply the change.

There is also no message or anything that would allow me to understand, why this is the case, and what i could do about it.

heres also the outout of ubuntu-drivers debug that I learned in anothe bug can be important:

=== log messages from detection ===
DEBUG:root:Skipping check for rtl8812au-dkms since it does not depend on video abi
DEBUG:root:Skipping check for open-vm-tools-desktop since it does not depend on video abi
DEBUG:root:Skipping check for rtl8821ce-dkms since it does not depend on video abi
DEBUG:root:Skipping check for bcmwl-kernel-source since it does not depend on video abi
DEBUG:root:Skipping check for oem-qemu-meta since it does not depend on video abi
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:_get_db_name: output
ID_PCI_CLASS_FROM_DATABASE=Display controller
ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
ID_VENDOR_FROM_DATABASE=NVIDIA Corporation
ID_MODEL_FROM_DATABASE=TU117M [GeForce GTX 1650 Mobile / Max-Q]

DEBUG:root:_get_db_name(/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0, pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00): vendor "NVIDIA Corporation", model "TU117M [GeForce GTX 1650 Mobile / Max-Q]"
DEBUG:root:Skipping check for rtl8812au-dkms since it does not depend on video abi
DEBUG:root:Skipping check for open-vm-tools-desktop since it does not depend on video abi
DEBUG:root:Skipping check for rtl8821ce-dkms since it does not depend on video abi
DEBUG:root:Skipping check for bcmwl-kernel-source since it does not depend on video abi
DEBUG:root:Skipping check for oem-qemu-meta since it does not depend on video abi
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py return value: None
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py return value: None
=== modaliases in the system ===
acpi:PNP0C14:
wmi:86CCFD48-205E-4A77-9C48-2021CBEDE341
acpi:PNP0C0D:
platform:thinkpad_hwmon
wmi:85D2E869-365A-4ACE-A4D3-CD692B1698A0
wmi:8F4D3679-749E-4479-9B16-C62601FD25F0
platform:microcode
platform:snd-soc-dummy
platform:intel_rapl_msr
platform:Fixed MDIO bus
acpi:USBC000:PNP0CA0:
wmi:7364651A-132F-4FE7-ADAA-40C6C7EE2E3B
wmi:51F5230E-9677-46CD-A1CF-C0B23EE34DB7
wmi:7EEF04FF-4328-447C-B5BB-D449925D538D
wmi:74F1EBB6-927A-4C7D-95DF-698E21E80EB5
wmi:6A4B54EF-A5ED-4D33-9455-B0D9B48DF4B3
wmi:2651D9FD-911C-4B69-B94E-D0DED5963BD7
wmi:98479A64-33F5-4E33-A707-8E251EBBC3A1
wmi:8ADB159E-1E32-455C-BC93-308A7ED98246
acpi:ACPI000C:
platform:rtc-efi
wmi:05901221-D566-11D1-B2F0-00A0C9062910
wmi:A6FEA33E-DABF-46F5-BFC8-460D961BEC9F
wmi:2BC49DEF-7B15-4F05-8BB7-EE37B9547C0B
platform:thinkpad_acpi
input:b0019v17AAp5054e4101-e0,1,4,5,k71,72,73,78,8C,8E,90,94,98,9C,9E,AB,AD,BE,BF,C2,CD,D4,D9,E0,E1,E3,E4,EC,ED,EE,F0,174,176,1BC,1BD,1BE,1D2,1DB,1DC,1E5,246,250,27A,ram4,lsfw3,
platform:coretemp
platform:regulatory
acpi:PNP0C0E:
platform:efivars
wmi:7FF47003-3B6C-4E5E-A227-E979824A85D1
wmi:7430019A-DCE9-4548-BAB0-9FDE0935CAFF
wmi:FCB424F1-075A-4E0E-BFC4-62F3E71771FA
wmi:E2BE5EE3-42DA-49DB-8378-1F5247388202
input:b0011v0001p0001eAB54-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,D9,E2,ram4,l0,1,2,sfw
serio:ty01pr00id00ex00
acpi:INT3400:
wmi:1F13AB7F-6220-4210-8F8E-8BB5E71EE969
platform:pcspkr
platform:vboxdrv
pci:v000017A0d00009755sv000017AAsd000022A8bc08sc05i01
pci:v00008086d00001911sv000017AAsd000022A8bc08sc80i00
pci:v00008086d0000A30Esv000017AAsd000022A8bc06sc01i00
acpi:PNP0C09:
acpi:INT3403:
acpi:PNP0C0A:
acpi:ACPI0003:
acpi:LEN0100:
acpi:LEN0268:
acpi:PNP0800:
acpi:PNP0103:
acpi:PNP0C04:
pci:v00008086d000015ECsv000017AAsd0000229Fbc0Csc03i30
usb:v1D6Bp0002d0517dc09dsc00dp01ic09isc00ip00in00
usb:v1D6Bp0003d0517dc09dsc00dp03ic09isc00ip00in00
usb:v05E3p0626d0654dc09dsc00dp03ic09isc00ip00in00
pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00
pci:v000010DEd000010FAsv000017AAsd0000229Fbc04sc03i00
hdaudio:v10DE0094r00100100a01
input:b0000v0000p0000e0000-e0,5,kramlsfw6,8,
acpi:INT3450:
pci:v00008086d00001903sv000017AAsd000022A8bc11sc80i00
pci:v00008086d0000A360sv000017AAsd000022A8bc07sc80i00
mei::4d448e0e-51d3-4d3a-88b0-710c3519bae0:00:
mei::3c4852d6-d47b-4f46-b05e-b5edc1aa440e:01:
mei::dba4d603-d7ed-4931-8823-17ad585705d5:01:
mei::05b79a6f-4628-4d7f-899d-a91514cb32ab:02:
mei::082ee5a7-7c25-470a-9643-0c06f0466ea1:00:
mei::bb875e12-cb58-4d14-ae93-8566183c66c7:01:
mei::42b3ce2f-bd9f-485a-96ae-26406230b1ff:01:
mei::309dcde8-ccb1-4062-8f78-600115a34327:01:
mei::55213584-9a29-4916-badf-0fb7ed682aeb:01:
mei::8e6a6715-9abc-4043-88ef-9e39c6f63e0f:01:
mei::8c2f4425-77d6-4755-aca3-891fdbc66a58:01:
mei::cea154ea-8ff5-4f94-9290-0bb7355a34db:00:
mei::fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1:01:
mei::b638ab7e-94e2-4ea2-a552-d1c54b627f04:01:
mei::f908627d-13bf-4a04-b91f-a64e9245323d:01:
mei::12f80028-b4b7-4b2d-aca8-46e0ff65814c:01:
mei::5565a099-7fe2-45c1-a22b-d7e9dfea9a2e:01:
pci:v0000C0A9d00005407sv0000C0A9sd00000100bc01sc08i02
pci:v00008086d0000A324sv000017AAsd000022A8bc0Csc80i00
pci:v00008086d0000A328sv000017AAsd000022A8bc07sc80i00
platform:idma64
platform:dw-apb-uart
pci:v00008086d00002723sv00008086sd00000080bc02sc80i00
pci:v00008086d0000A348sv000017AAsd000022A0bc04sc03i80
hdaudio:v14F11F86r00100100a01
input:b0000v0000p0000e0000-e0,5,kramlsfw4,
input:b0000v0000p0000e0000-e0,5,kramlsfw2,
pci:v00008086d00003E20sv000017AAsd000022A8bc06sc00i00
pci:v00008086d0000A379sv000017AAsd000022A8bc11sc80i00
pci:v00008086d0000A368sv000017AAsd000022A8bc0Csc80i00
pci:v0000144Dd0000A808sv0000144Dsd0000A801bc01sc08i02
pci:v00008086d0000A36Fsv000017AAsd000022A8bc05sc00i00
pci:v00008086d000015BBsv000017AAsd0000229Fbc02sc00i00
pci:v00008086d00003E9Bsv000017AAsd000022A8bc03sc00i00
pci:v00008086d0000A36Dsv000017AAsd000022A8bc0Csc03i30
usb:v06CBp00BDd0000dcFFdsc10dpFFicFFisc00ip00in00
usb:v8087p0029d0001dcE0dsc01dp01icE0isc01ip01in00
usb:v8087p0029d0001dcE0dsc01dp01icE0isc01ip01in01
usb:v056Ap51A0d0003dc00dsc00dp00ic03isc00ip00in00
hid:b0003g0101v0000056Ap000051A0
input:b0003v056Ap51A0e0111-e0,1,3,4,k140,141,14A,14B,14C,ra0,1,18,1A,1B,28,m0,lsfw
input:b0003v056Ap51A0e0111-e0,1,3,k14A,ra0,1,2F,35,36,39,mlsfw
usb:v13D3p56BAd6905dcEFdsc02dp01ic0Eisc02ip01in03
usb:v13D3p56BAd6905dcEFdsc02dp01ic0Eisc02ip01in01
usb:v13D3p56BAd6905dcEFdsc02dp01ic0Eisc01ip01in02
input:b0003v13D3p56BAe6905-e0,1,kD4,ramlsfw
usb:v13D3p56BAd6905dcEFdsc02dp01ic0Eisc01ip01in00
usb:v058Fp9540d0120dc00dsc00dp00ic0Bisc00ip00in00
usb:v17EFp6009d0122dc00dsc00dp00ic03isc01ip01in00
hid:b0003g0000v000017EFp00006009
input:b0003v17EFp6009e0110-e0,1,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8C,8E,96,98,9E,9F,A1,A3,A4,A5,A6,AD,B0,B1,B2,B3,B4,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,l0,1,2,sfw
usb:v17EFp6009d0122dc00dsc00dp00ic03isc00ip00in01
input:b0003v17EFp6009e0110-e0,1,2,4,11,k71,72,73,74,8A,8B,8E,8F,90,94,98,A3,A4,A5,A6,AE,BE,BF,CD,D4,E0,E1,E3,EC,EE,110,111,112,117,11B,11D,11E,174,1B6,r0,1,am4,l7,sfw
usb:v05E3p0610d0654dc09dsc00dp01ic09isc00ip00in00
usb:v046DpC52Bd2411dc00dsc00dp00ic03isc01ip01in00
hid:b0003g0001v0000046Dp0000C52B
usb:v046DpC52Bd2411dc00dsc00dp00ic03isc01ip02in01
usb:v046DpC52Bd2411dc00dsc00dp00ic03isc00ip00in02
hid:b0003g0102v0000046Dp00004096
input:b0003v046Dp4096e0111-e0,1,2,4,k110,111,112,113,114,115,116,117,118,119,11A,11B,11C,11D,11E,11F,r0,1,6,8,B,C,am4,lsfw
pci:v00008086d0000A323sv000017AAsd000022A8bc0Csc05i00
platform:iTCO_wdt
i2c:ee1004
i2c:rmi4_smbus
serio:ty05pr00id00ex00
input:b0011v0002p000Ae0000-e0,1,2,k110,111,112,r0,1,amlsfw
input:b001Dv06CBp0000e0000-e0,1,3,k110,145,14A,14D,14E,14F,ra0,1,18,2F,30,31,34,35,36,37,39,3A,mlsfw
cpu:type:x86,ven0000fam0006mod009E:feature:,0000,0001,0002,0003,0004,0005,0006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0015,0016,0017,0018,0019,001A,001B,001C,001D,001F,002B,0034,003A,003B,003D,0068,006A,006B,006C,006D,006F,0070,0072,0074,0075,0076,0078,0079,007C,0080,0081,0082,0083,0084,0085,0086,0087,0088,0089,008B,008C,008D,008E,008F,0091,0093,0094,0095,0096,0097,0098,0099,009A,009B,009C,009D,009E,00C0,00C5,00C8,00E1,00E3,00E7,00F0,00F1,00F3,00F5,00F9,00FA,00FB,00FE,00FF,0100,0101,0102,0103,0104,0111,0120,0121,0123,0125,0127,0128,0129,012A,012D,012E,0132,0133,0134,0137,0139,0140,0141,0142,0143,0164,0165,01C0,01C1,01C2,01C4,01C5,01C6,01C7,01C8,01C9,01CA,01CD,0249,024A,024B,025A,025B,025C,025D,025F
dmi:bvnLENOVO:bvrN2OET55W(1.42):bd12/06/2021:br1.42:efr1.23:svnLENOVO:pn20QV00CEGE:pvrThinkPadX1Extreme2nd:rvnLENOVO:rn20QV00CEGE:rvrSDK0T08861WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20QV_BU_Think_FM_ThinkPadX1Extreme2nd:
acpi:LNXSYSTM:
acpi:LNXSYBUS:
acpi:LNXCPU:
acpi:INT3394:PNP0C02:
input:b0019v0000p0005e0000-e0,5,kramlsfw0,
acpi:NTC0702:MSFT0101:
input:b0019v0000p0003e0000-e0,1,k8E,ramlsfw
acpi:PNP0A08:PNP0A03:
acpi:LEN0402:PNP0F13:
acpi:INT3F0D:PNP0C02:
acpi:PNP0C02:
acpi:PNP0B00:
acpi:PNP0100:
acpi:PNP0000:
acpi:LEN0071:PNP0303:
acpi:LNXPOWER:
input:b0019v0000p0006e0000-e0,1,kE0,E1,E3,F1,F2,F3,F4,F5,ramlsfw
acpi:PRP00001:PNP0A05:
acpi:PNP0C01:
input:b0019v0000p0001e0000-e0,1,k74,ramlsfw
=== matching driver packages ===
nvidia-driver-450-server: installed: <none> available: 450.191.01-0ubuntu0.22.04.1 [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: LTSB
nvidia-driver-418-server: installed: <none> available: 418.226.00-0ubuntu4 [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: LTSB
nvidia-driver-470: installed: <none> available: 470.129.06-0ubuntu0.22.04.1 [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: LTSB
nvidia-driver-510-server: installed: <none> available: 510.73.05-0ubuntu0.22.04.1 [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: PB
nvidia-driver-510: installed: 510.73.05-0ubuntu0.22.04.1 available: 510.73.05-0ubuntu0.22.04.1 (auto-install) [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: PB
nvidia-driver-470-server: installed: <none> available: 470.129.06-0ubuntu0.22.04.1 [distro] non-free modalias: pci:v000010DEd00001F91sv000017AAsd000022A8bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: TU117M [GeForce GTX 1650 Mobile / Max-Q] support level: LTSB

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: software-properties-gtk 0.99.22.1
Uname: Linux 5.17.9-hs-custom-2022-05-22-a x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon May 23 00:01:14 2022
ExecutablePath: /usr/bin/software-properties-gtk
InstallationDate: Installed on 2020-04-12 (769 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
InterpreterPath: /usr/bin/python3.10
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.18-9
SourcePackage: software-properties
UpgradeStatus: Upgraded to jammy on 2022-04-28 (24 days ago)

Revision history for this message
Henning Sprang (henning) wrote :
Revision history for this message
Henning Sprang (henning) wrote :

oh and forgot to say: actiually the same goes for all other nvidia driver versions that are shown in the list - its about 10 of them.

Whatever i select, the apply button is inactive.

Revision history for this message
Henning Sprang (henning) wrote :

Another thing i just tried:

I thought *maybe* this problem is because I was running a custom built mainline kernel and the drivers GUI doesnt want to change a system with non-original Ubuntu kernel, but I just rebooted in the standard generic kernel and the problem persists.

Revision history for this message
Henning Sprang (henning) wrote :

Another additional info:

I checked if I can do it on the commandline, but I get a Python stacktrace instead:

# ubuntu-drivers list
Traceback (most recent call last):
  File "/usr/bin/ubuntu-drivers", line 513, in <module>
    greet()
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/bin/ubuntu-drivers", line 465, in list
    linux_modules = UbuntuDrivers.detect.get_linux_modules_metapackage(cache, package)
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 1290, in get_linux_modules_metapackage
    linux_image_meta = get_linux_image(apt_cache)
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 1224, in get_linux_image
    return kernel_detection.get_linux_image_metapackage()
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py", line 153, in get_linux_image_metapackage
    return self._get_linux_metapackage('image')
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py", line 99, in _get_linux_metapackage
    if self._is_greater_than(current_version,
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py", line 51, in _is_greater_than
    term2 = '%s-%s' % (match2.group(1),
AttributeError: 'NoneType' object has no attribute 'group'

Revision history for this message
Henning Sprang (henning) wrote (last edit ):

OK, tracking down this stacktrace I found the problem:

it appears that kerneldetection.py fails when I have a custom built mainline package installed.
that would make this a bug in "ubuntu-drivers-common"

It appears to be irrelevant that I am *running* the standard Ubuntu generic kernel - the error occurs when I just have this kernel package installed, and it goes away when I remove it!

Maybe it doesnt happen with all custom packages, i have a slightly special name: linux-image-5.17.9-hs-custom-2022-05-22-a - I assumed when dpkg-deb can build it, this name is fine.

Might add more detail later...

Revision history for this message
Henning Sprang (henning) wrote :

confirming my guess:

this error occurs when having somehow "exotic" linux-image-* package names - even thoug dpkg-deb can build them and dpkg is installing them without compaints, they lead to an error here.

A custom built mainline kernel without special naming can be installed without triggering the bug described here!

likely its the regular expression in Line 86 of kerneldetection.py that I am right now unable to improve...
the goal would probably be either to improve the expression to be able to deal with all legal package names, or give an error/exception that the kernel name/version could not be parsed.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the debugging details, retitling and changing the component according

affects: software-properties (Ubuntu) → ubuntu-drivers-common (Ubuntu)
summary: - I can select the Xorg Nouveau server, but not click on "apply"
+ kerneldetection except when custom kernel installed
summary: - kerneldetection except when custom kernel installed
+ kerneldetection exception when a custom kernel installed
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.