Failed to set MokListRT: Invalid Parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| grub2 (Ubuntu) |
Undecided
|
Unassigned | ||
| mokutil (Ubuntu) |
Undecided
|
Unassigned | ||
| shim (Ubuntu) |
Undecided
|
Unassigned | ||
| shim-signed (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Hello,
I am testing Ubuntu 20.04 Daily built the latest version on my MacBook pro-13inch late 2012 model Non-retina display. and I am getting the error while I boot my MacBook using a Pendrive in which I have installed the Ubuntu Daily 20.04 OS.
Error is as follows :
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.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSign
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu20
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 12 10:40:44 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus: bcmwl, 6.30.223.271+bdcom, 5.4.0-14-generic, x86_64: installed
ExtraDebuggingI
GraphicsCard:
Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Apple Inc. 3rd Gen Core processor Graphics Controller [106b:00fa]
InstallationDate: Installed on 2020-03-11 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200309)
MachineType: Apple Inc. MacBookPro9,2
ProcEnviron:
LANGUAGE=en_IN:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_IN
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/24/2019
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 229.0.0.0.0
dmi.board.
dmi.board.name: Mac-6F01561E16C
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro9,2
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAppleInc
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro9,2
dmi.product.sku: System SKU#
dmi.product.
dmi.sys.vendor: Apple Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.100-4
version.
version.
version.
version.
version.
version.
version.
affects: | ubuntu → xorg (Ubuntu) |
affects: | xorg (Ubuntu) → linux (Ubuntu) |
summary: |
- When i start up ubuntu this error pops up + Failed to set MokListRT: Invalid Parameter |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
You-Sheng Yang (vicamo) wrote : | #3 |
Just remove shim/shim-
no longer affects: | linux (Ubuntu) |
Changed in mokutil (Ubuntu): | |
status: | New → Confirmed |
Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in grub2 (Ubuntu): | |
status: | New → Confirmed |
Changed in shim (Ubuntu): | |
status: | New → Confirmed |
Changed in shim-signed (Ubuntu): | |
status: | New → Confirmed |
You-Sheng Yang (vicamo) wrote : | #7 |
https:/
Changed in shim-signed (Ubuntu): | |
status: | Confirmed → Incomplete |
status: | Incomplete → Fix Released |
status: | Fix Released → Confirmed |
Daniel van Vugt (vanvugt) wrote : | #8 |
Even if it is Won't Fix, then users should not be presented with error messages for non-errors.
so will the error message go away in the upcoming updates or not?
Steve Langasek (vorlon) wrote : | #10 |
This error is not a result of SecureBoot being supported or not. Why is shim unable to write to an nvram variable at runtime? That looks like a problem with the firmware's UEFI implementation.
I believe we also should only be setting MokListRT, if MokList is also set. Were you prompted to enroll a MOK key on this system (unfriendly blue screen), and did you do so?
The most likely cause for Ubuntu to prompt to you to enroll MOK is if you have nvidia driver packages installed; but your bug report shows that you are using nouveau drivers and there is no nvidia kernel module loaded. Did you previously try to install the nvidia binary drivers?
Changed in shim (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in grub2 (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in mokutil (Ubuntu): | |
status: | Confirmed → Invalid |
Shubham Rajesh Kale (shubzzz332878) wrote : Re: [Bug 1867092] Re: Failed to set MokListRT: Invalid Parameter | #11 |
No i didn't enrolled a MOK key in the system.Infact I want not prompted with any blue screen .I was a good and smooth install as it usually is.But this error didn't occur the first time i boot up.But then second time onwards it started to appear.
Sent from Yahoo Mail on Android
On Fri, Mar 13, 2020 at 12:05, Steve Langasek<email address hidden> wrote: This error is not a result of SecureBoot being supported or not. Why is
shim unable to write to an nvram variable at runtime? That looks like a
problem with the firmware's UEFI implementation.
I believe we also should only be setting MokListRT, if MokList is also
set. Were you prompted to enroll a MOK key on this system (unfriendly
blue screen), and did you do so?
The most likely cause for Ubuntu to prompt to you to enroll MOK is if
you have nvidia driver packages installed; but your bug report shows
that you are using nouveau drivers and there is no nvidia kernel module
loaded. Did you previously try to install the nvidia binary drivers?
** Changed in: shim (Ubuntu)
Status: Confirmed => Incomplete
** Changed in: grub2 (Ubuntu)
Status: Confirmed => Invalid
** Changed in: mokutil (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are subscribed to the bug
report.
https:/
Title:
Failed to set MokListRT: Invalid Parameter
Status in grub2 package in Ubuntu:
Invalid
Status in mokutil package in Ubuntu:
Invalid
Status in shim package in Ubuntu:
Incomplete
Status in shim-signed package in Ubuntu:
Confirmed
Bug description:
Hello,
I am testing Ubuntu 20.04 Daily built the latest version on my MacBook pro-13inch late 2012 model Non-retina display. and I am getting the error while I boot my MacBook using a Pendrive in which I have installed the Ubuntu Daily 20.04 OS.
Error is as follows :
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.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSign
Uname: Linux 5.4.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu20
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 12 10:40:44 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus: bcmwl, 6.30.223.271+bdcom, 5.4.0-14-generic, x86_64: installed
ExtraDebuggingI
GraphicsCard:
Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Apple Inc. 3rd Gen Core processor Graphics Controller [106b:00fa]
InstallationDate: Installed on 2020-03-11 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200309)
MachineType: Apple Inc. MacBookPro9,2
ProcEnviron:
LANGUAGE=en_IN:en
PATH=(custom, no user)
XDG_RUN...
Just to confirm that I installed it correctly i reinstalled the Ubuntu 20.04 OS completely but still getting the same screen error. I Even cleared any Boot file junk and NVRAM data to reset Just to be safe but still getting this error.
The installation process followed is as per books.
But still getting this error please help me to get rid of it.
Thank you.
Johan Smolders (smojo1) wrote : | #13 |
I can confirm that this error is shown after clean installing Ubuntu 20.04 on a Mac and rebooting.
My device is a late 2015 iMac. Seems to work well but as stated above users shouldn't be presented such a error when there is actually no problem.
Bob Bauer (wahram-tig) wrote : | #14 |
I've got the same issue on my Macbook Pro early 2008. Deleting /boot/efi/
"Solution": Press "alt" when booting the macbook. Select "Boot from next target" and your system should boot by showing the error message. Alternatively, do exactly the same by starting a LIVE USB system at the first time.
Repa (alexandrcfif) wrote : | #15 |
Hi! I also have got this on my Macbook air 2012 running Linux mint 20 xfce after latest package update.
Paul (penright) wrote : | #16 |
Just installed 20.04 my Macbook 2010. At first it booted ok. Then when logging on the screen would flash and go right back to the log on screen. I thought it had to do with chrome remote desk top. After some searching I landed on this thread. https:/
I hope this detail help narrow down more than it confuses. Any logs that I can help with let me know.
Steve Langasek (vorlon) wrote : | #17 |
The MokListRT error has nothing to do with either chrome, or problems logging into the desktop.
The day before yesterday, I got the error as originally reported, except I was running Kubuntu 20.04, got the updates available prompt, opened Discover, updated shim and shim-signed, waited for both the regular software update and grub update to finish, and then restarted.
I posted a question on Ask Ubuntu, then found a CentOS bug with a fix I was able to adapt to my own situation and answer my own question. If you're a bug fixer, read the first note on the CentOS bug; if you've got this same problem, read the Ask Ubuntu question and answer:
https:/
https:/
Steve Langasek (vorlon) wrote : | #19 |
So the issue here appears to be that the new shim treats a failure to write MokListRT to nvram as a fatal error, even when not booting in SecureBoot mode, with the consequence that systems with no nvram space available will fail to boot.
This will take time to resolve upstream due to the requirement to go through a signing cycle with Microsoft for any new binaries. However, it sounds like the bug is well-characterized and we should be able to work with upstream for a proper fix.
Changed in shim (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in shim-signed (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: fr-783 |
Niko Reveliotis (nikorev) wrote : | #20 |
Is this related to the problem? Haven't attempted this solution yet, but I am on a 2011 Macbook Pro running Ubuntu 20.04 experiencing the same issue.
https:/
Who Rider (whorider) wrote : | #21 |
This seems to work on MacBook Air 2012
sudo su -
cd /boot/efi/
cp grubx64.efi shimx64.efi
reboot
Julian Andres Klode (juliank) wrote : | #22 |
You effectively just did the same as uninstalling shim-signed but in a weird way that will get reverted every update.
Rowan Wookey (rwky) wrote : | #23 |
This worked for me on my MPB 2015
apt-get purge shim
mv /boot/efi/
grub-install /dev/sda1
lorn10 (kle) wrote : | #24 |
I can also confirm this bug for Kubuntu 18.04 LTS at an older Apple iMac 8,1 computer. The solution seems to purge shim and then reinstall grub.
It would be really great if the corresponding devs can fix this issue by add a simple check (for an Apple EFI environment) before shim is installed. Or it may be also possible to make shim aware that there also exists non Secure Boot capable UEFI systems. (So far I know, Apple introduced the Secure Boot feature not before 2017.) On such nun Secure Boot compliant systems shim only has to be inactive and quiet. ;-)
This change was made by a bot.