Updates failing because "db is empty"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
grub2-signed (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
There is a behavior regression on some EFI systems with specific firmwares (right now, Lenovo, X230 and newer are known to be affected), where mokutil --export --db returns "db is empty" and can lead to no .der certificates being exported at all. Further steps in grub-check-
[Test case]
Run at least once on a Lenovo T450 (cyphermox).
1. Install a system using UEFI mode.
2. Reboot
3. Fully upgrade system.
4. Run 'sudo /usr/share/
5. Install grub* from -proposed.
6. Verify that the upgrade completes successfully.
[Regression potential]
The test case is sufficient to verify all possible paths work correctly after the SRU, provided it is run on both non-affected systems and affected systems.
Fix this:
On some Thinkpads (up to now, no other manufacturers appear to show this), db can be reported to be empty even though it's not. It seems to be a firmware issue, but it's one we can work around.
So, fix this type of failure:
Setting up grub-efi-
db is empty
Can't open *.der for reading, No such file or directory
140033418155072
140033418155072
unable to load certificate
dpkg: error processing package grub-efi-
installed grub-efi-
dpkg: dependency problems prevent processing triggers for shim-signed:
shim-signed depends on grub-efi-
Package grub-efi-
Package grub-efi-
dpkg: error processing package shim-signed (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
grub-efi-
shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Changed in grub2 (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.