dkms_packages.py supported kernel check is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Trusty |
Fix Released
|
Medium
|
Brian Murray | ||
Xenial |
Fix Released
|
Medium
|
Brian Murray | ||
Yakkety |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Test Case
---------
1) Look for some dkms package in /usr/src e.g. bbswitch-0.8
2) Run python3 /usr/share/
3) Observe a crash report dialog from apport for bbswitch
With the version of apport from -proposed you will instead receive:
ERROR (dkms apport): kernel package linux-headers-
The apport package hook for dkms packages seems to have an error in its supported kernel check. If the kernel is an unsupported one, the hook should exit with a return code of 1. However, in the Ubuntu Error Tracker we can see some crashes with unsupported kernel versions e.g.:
https:/
DKMSKernelVersion: 4.6.1-040601-
https:/
DKMSKernelVersion: 4.6.0-040600-
If the intent really is to block creation of these reports, then let's do that.
tags: | added: xenial |
tags: | added: rls-y-incoming |
Changed in dkms (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Brian Murray (brian-murray) |
summary: |
- dkms_packages.py supported kernel check seems wrong + dkms_packages.py supported kernel check is wrong |
summary: |
- dkms_packages.py supported kernel check is wrong + dkms_packages.py supported kernel check is not working |
description: | updated |
Changed in dkms (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in dkms (Ubuntu Yakkety): | |
status: | Triaged → In Progress |
Changed in dkms (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in dkms (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in dkms (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in dkms (Ubuntu Xenial): | |
importance: | Undecided → Medium |
The issue is the ValueError string content changed or was never correct.
*** ValueError: package linux-headers- 4.6.1-040601- lowlatency does not exist
vs.
try:
supported_ kernel = apport. packaging. is_distro_ package( kernel_ package)
supported_ kernel = False
except ValueError as e:
if str(e) == 'package does not exist':