curthooks: EFI variables are not supported on this system (EFI v1.1 by Apple)

Bug #2040190 reported by Dan Bungert
476
This bug affects 55 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Unassigned
ubuntu-desktop-installer
Fix Released
Unknown

Bug Description

Several users are having problems installing Ubuntu 23.10.1 with a Subiquity installer when using a system with "EFI v1.1 by Apple".

Some of these users have performed testing with 23.04 and reported that the install worked for them.

Related branches

Dan Bungert (dbungert)
description: updated
Olivier Gayot (ogayot)
Changed in subiquity:
status: New → In Progress
Revision history for this message
Olivier Gayot (ogayot) wrote :

I reproduced the issue on some Apple hardware I had access to yesterday. What is interesting so far is that while the command `efibootmgr` fails:

# efibootmgr
EFI variables are not supported on this system.

It succeeds when specifying efivarfs for the LIBEFIVAR_OPS environment variable:

# LIBEFIVAR_OPS=efivarfs efibootmgr
BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* ubuntu
Boot0080* Mac OS X
Boot0082*
BootFFFF*

This seems to indicate a failure in the efivarfs_probe function.

Revision history for this message
Olivier Gayot (ogayot) wrote :

After more debugging, I found out that efivarfs_probe fails because of:

statfs("/sys/firmware/efi/efivars/", 0x7ffedb26c490) = -1 EINVAL (Invalid argument)

which seems closely related to bug 2034705.

Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

This bug is fixed with commit a3491058 to curtin on branch master.
To view that commit see the following URL:
https://git.launchpad.net/curtin/commit/?id=a3491058

Olivier Gayot (ogayot)
Changed in subiquity:
status: In Progress → Fix Committed
Changed in ubuntu-desktop-installer:
status: Unknown → New
Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

Hello,

A fix for the desktop installer was published to the latest/candidate channel.

If somebody who is affected wants to do some testing before we make it available for a broader audience, here would be the steps to run:

1. Boot the 23.10.1 desktop ISO
2. Once the "Welcome to Ubuntu" window shows up, asking you to choose the language, close the window.
3. Refresh the installer using the following command:
   $ sudo snap refresh ubuntu-desktop-installer --channel=latest/candidate
4. Run the installer using the "Install Ubuntu 23.10.1" icon on the bottom right of the desktop.
5. Go through the installation steps normally.

Thanks,
Olivier

Revision history for this message
Michael Hanf (unfirthman) wrote :

Thank you!

I'll give this a shot after work tonight. Looking forward to it

Revision history for this message
Joerg (rost21a) wrote : Re: [Bug 2040190] Re: curthooks: EFI variables are not supported on this system (EFI v1.1 by Apple)

Perfect and thank you for your very valuable work!
It worked for me without any errors!
Machine Type:
- Apple Inc. iMac11.2
- Apple Inc. MacBook Pro 11.1

Thank you!
Joerg

MachineType: Apple Inc. iMac11,2

Am Mi., 29. Nov. 2023 um 19:39 Uhr schrieb Olivier Gayot <
<email address hidden>>:

> Hello,
>
> A fix for the desktop installer was published to the latest/candidate
> channel.
>
> If somebody who is affected wants to do some testing before we make it
> available for a broader audience, here would be the steps to run:
>
> 1. Boot the 23.10.1 desktop ISO
> 2. Once the "Welcome to Ubuntu" window shows up, asking you to choose the
> language, close the window.
> 3. Refresh the installer using the following command:
> $ sudo snap refresh ubuntu-desktop-installer --channel=latest/candidate
> 4. Run the installer using the "Install Ubuntu 23.10.1" icon on the bottom
> right of the desktop.
> 5. Go through the installation steps normally.
>
> Thanks,
> Olivier
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2039355).
> https://bugs.launchpad.net/bugs/2040190
>
> Title:
> curthooks: EFI variables are not supported on this system (EFI v1.1 by
> Apple)
>
> Status in subiquity:
> Fix Committed
> Status in ubuntu-desktop-installer:
> New
>
> Bug description:
> Several users are having problems installing Ubuntu 23.10.1 with a
> Subiquity installer when using a system with "EFI v1.1 by Apple".
>
> Some of these users have performed testing with 23.04 and reported
> that the install worked for them.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subiquity/+bug/2040190/+subscriptions
>
>

Revision history for this message
Michael Hanf (unfirthman) wrote :

Thank you again for this! I can confirm this worked for me as well.

Machine type:
 - Apple MacBook Air, 2015

I have it dual booted with 22.04.3

Excited to play around with 23.10.1

mh

Revision history for this message
Nils Erasmus (nilserasmus) wrote :

Hello,

I tested this today and I can confirm that the update worked for me as well.

Machine:
- iMac 18,1 : dual-boot MacOS 13.6 (Ventura), Ubuntu 23.10

Thank you,
Nils

Revision history for this message
Romain Vermot (vermotr) wrote :

Hello,

I tested the update today, and I can confirm that it worked successfully for me too.

Machine:
 - Apple MacBook Pro (Retina, 13-inch, Early 2015)

Thank you,
vermotr

Revision history for this message
Kamil Kisiel (kisielk) wrote :

This worked for me on my 2014 27" iMac

Revision history for this message
doug (dougwebs) wrote :

Hello,

Does anyone know if this fix was removed from -channel=latest/candidate?

I just tried and now installation is hanging on "Warning subiquity_server: Unable to find the subiquity_client package."

This is on a macBookPro11,2 using the 23.10.1 installer with refreshed ubuntu-desktop-installer.

Thanks!

Revision history for this message
Abdul fahim (fahimman) wrote :

Okay I'm totally new in ubuntu and I don't know sh*t about commands and stuff. I tried the fix latest/candidate thing but it says error snap "ubuntu-desktop-installer" is not installed and I'm stuck I don't know what to do someone please help

Revision history for this message
Shane Carwile (spcarwile) wrote :

Hello,

I had the exact same issue trying to install 23.10.1 on a Macbook Pro Mid-2014 (dual boot with Bug Sur). Performing the above steps to update the installer to the latest candidate resolved the issue on my setup.

Thanks!

-Shane

Revision history for this message
Olivier Gayot (ogayot) wrote :

Hello,

Thank you to everyone who tested the revision in latest/candidate.

Today, the desktop team promoted this revision to stable/ubuntu-23.10. Therefore, the installer should now natively offer you to upgrade to 0+git.4edfab2b provided that you are connected to the Internet.

This should eliminate the need of a manual refresh of the snap.

Thanks,
Olivier

Changed in ubuntu-desktop-installer:
status: New → Fix Released
Olivier Gayot (ogayot)
Changed in subiquity:
importance: Undecided → High
Revision history for this message
Dan Bungert (dbungert) wrote :

A fix for this issue has been released in Subiquity 24.02.1 for Ubuntu live-server, and also in the latest build for Ubuntu 23.10.1 desktop. You can find this build now on the stable channel for both those cases.

To pick up this fix, please allow the installer snap to update, or you can use the directive `refresh-installer: { update: yes }` in autoinstall to achieve the same result.

Changed in subiquity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.