How do I fix broken boot after shim update?

Chris Williamson

I have a MacBook Pro (15-inch, Late 2008) that was running Kubuntu 20.04 until yesterday.

The system prompted me that a software update was available. As best I can recall, the packages updated were shim, shim-(something) and maybe one more. I waited for both the software updater and the separate grub updater to finish and prompt me to restart before I did so. Now when I try to boot, I get a black screen that reads:

Failed to set MokListRT: Invalid Parameter
Could not create MokListRT: Invalid Parameter
Importing MOK states has failed: import_mok_state() failed
: Invalid Parameter
Continuing boot since secure mode is disabled_

But the boot does not continue.

I have spent much of today searching high and low for possible solutions. The one that seems most promising to me is this comment on an Ubuntu grub2 package bug. The comment says to remove "shim/shim-signed/mokutil", by which I think the commenter means to remove all three of those packages. They seem to be related to UEFI secure boot, something a MacBook Pro of mine's vintage does not support. I don't know why my system would even have those packages in the first place, to then be prompting me to update them.

But I can't boot into Kubuntu to remove them. The boot process does not even show me the grub menu, which I usually do see briefly before being prompted for the encryption key. I'm assuming disk encryption is not the issue here since the process does not seem to be getting that far.

I still have an OS X partition as well, which I can boot into via by holding down the option key to get to the Mac boot loader (and which does not show my Kubuntu partition as an option). In OS X, I downloaded the latest Kubuntu .iso file, verified its SHA256 hash and carefully followed the instructions in the Ubuntu Create a bootable USB stick on macOS tutorial.

When I restart, hold down the option key to get to the Mac boot loader and choose this supposedly bootable USB stick I've created, I do get the grub menu. When I choose either the default Kubuntu or the safe graphics mode option, I get:

[    1.142769] Initramfs unpacking failed: Decoding failed
[   61.214455] rcu: INFO: rcp_sched detected stalls on CPUs/tasks:
[   61.214508] rcu: o1-...!: (0 ticks this GP) idle=894/0/0x0 softirq=355/355 fqs=0
[   61.215558] rcu: rcp_sched kthread starved for 15002 jiffies! g=835 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
[   61.215620] rcu: RCU grace-period thread stack dump:

The last four lines repeat every few minutes until I power down.

So I can't boot my regular Kubuntu partition, and I can't boot the USB stick.

How do I get booted back into my Kubuntu system?

Chris Williamson

The process of carefully writing up and posting my question must have jarred something in my brain that allowed me to actually see something that had been appearing in search results multiple times yesterday:

0015522: Machine with older uefi fw doesn't boot with newer shim (like on Apple 2008 iMac) - CentOS Bug Tracker

Specifically, I did what was in essence his Workaround #2, except I had to modify it to boot into my OS X partition, and then as root create /Volumes/efi, use diskutil to identify the EFI partition, mount it and cd into /Volumes/efi/EFI/ubuntu. And rather than copy grub64x.efi over shimx64.efi, as he wrote, I first moved shimx64.efi to my Desktop directory for temporary safe-keeping, just in case I wanted to revert this change I was making. Then I copied grub64x.efi to shimx64.efi. Then umount gave me some kind of error but suggested I try diskutil unmount, which I did, and which worked. Then I rebooted and got the usual (for me) grub menu, encryption password prompt and finally back to Kubuntu, where I have now removed the shim and shim-signed packages.

It appears that removing the shim package did not remove the files it put in /boot/efi/EFI/ubuntu/ and /boot/efi/EFI/Boot-backup/. I am going to leave them for now.

I am also going to post a comment on the Ubuntu bug I linked to in my question. I called it a grub2 package bug, but I now see its status has been changed to invalid in grub2, while also having a status of incomplete in shim and confirmed in shim-signed. There have been many comments, but there's still seemingly a lot of confusion, and no one seems to have made the connection yet to the fix the CentOS bug reporter figured out. So I will post my experience to the Ubuntu bug, and surely they'll get it fixed for everyone else.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I fix broken perl permissions?

From Dev

Android Eclipse not working after Java Update how do I fix it?

From Dev

BXslider.js is broken when I combine it with Jquery.smoothState.js. How do I fix this?

From Dev

How do I shim executables with the same names in different directories?

From Dev

How do I fix broken libxml2-dev dependency on Debian using apt?

From Dev

How do I fix a corrupted harddrive after failed upgrade?

From Dev

How do I fix the mouse after pairing with Bluetooth?

From Dev

How do I fix broken libxml2-dev dependency on Debian using apt?

From Dev

How do I fix a broken Powershell installation?

From Dev

How do I fix a corrupted harddrive after failed upgrade?

From Dev

How do I fix the mouse after pairing with Bluetooth?

From Dev

How do I fix my display after Atom broke it completely?

From Dev

My trackpad stopped working (not detected) after update, how do I fix this?

From Dev

How do I test changes to a requestAnimationFrame shim on OSX Mavericks?

From Dev

How do I update Ubuntu when package system is broken?

From Dev

How do I fix browser fonts in Firefox and Chrome broken by Windows 10 update?

From Dev

How do i fix my windows boot loader?

From Dev

Why is VNC broken in 14.04 Desktop and how do I fix it?

From Dev

How to fix reboot broken by kernel update

From Dev

How to fix broken R package dependencies after a libgfortran.so update

From Dev

How do I fix a lot of broken packages?

From Dev

How do I fix these broken dependencies?

From Dev

After windows install, Fedora no longer boots up. Getting error: file '/vmlinuz' not found found. How do I fix the boot?

From Dev

How do I fix Lubuntu's boot error?

From Dev

How do I fix my Intel Graphics Update Tool?

From Dev

How do i fix this broken CSS Masonry?

From Dev

I've broken vi (E576: viminfo: Missing '>' in line:) - how do I fix it?

From Dev

How can I fix broken https on Cockpit?

From Dev

How can i fix getting kernel panic after running a update?

Related Related

  1. 1

    How can I fix broken perl permissions?

  2. 2

    Android Eclipse not working after Java Update how do I fix it?

  3. 3

    BXslider.js is broken when I combine it with Jquery.smoothState.js. How do I fix this?

  4. 4

    How do I shim executables with the same names in different directories?

  5. 5

    How do I fix broken libxml2-dev dependency on Debian using apt?

  6. 6

    How do I fix a corrupted harddrive after failed upgrade?

  7. 7

    How do I fix the mouse after pairing with Bluetooth?

  8. 8

    How do I fix broken libxml2-dev dependency on Debian using apt?

  9. 9

    How do I fix a broken Powershell installation?

  10. 10

    How do I fix a corrupted harddrive after failed upgrade?

  11. 11

    How do I fix the mouse after pairing with Bluetooth?

  12. 12

    How do I fix my display after Atom broke it completely?

  13. 13

    My trackpad stopped working (not detected) after update, how do I fix this?

  14. 14

    How do I test changes to a requestAnimationFrame shim on OSX Mavericks?

  15. 15

    How do I update Ubuntu when package system is broken?

  16. 16

    How do I fix browser fonts in Firefox and Chrome broken by Windows 10 update?

  17. 17

    How do i fix my windows boot loader?

  18. 18

    Why is VNC broken in 14.04 Desktop and how do I fix it?

  19. 19

    How to fix reboot broken by kernel update

  20. 20

    How to fix broken R package dependencies after a libgfortran.so update

  21. 21

    How do I fix a lot of broken packages?

  22. 22

    How do I fix these broken dependencies?

  23. 23

    After windows install, Fedora no longer boots up. Getting error: file '/vmlinuz' not found found. How do I fix the boot?

  24. 24

    How do I fix Lubuntu's boot error?

  25. 25

    How do I fix my Intel Graphics Update Tool?

  26. 26

    How do i fix this broken CSS Masonry?

  27. 27

    I've broken vi (E576: viminfo: Missing '>' in line:) - how do I fix it?

  28. 28

    How can I fix broken https on Cockpit?

  29. 29

    How can i fix getting kernel panic after running a update?

HotTag

Archive