Trying to install Ubuntu for dual boot on HP Omnibook
https://askubuntu.com/questions/1557220/trying-to-install-ubuntu-for-dual-boot-on-hp-omnibook
I wonder if anyone can help?
I've just got a new laptop (an HP Omnibook X) which came pre-installed with Windows 11.
I'm trying to install Ubuntu 25.10 and dual boot.
First time around, everything went smoothly and it all worked fine.
But then I run some Windows updates from HP and the dual boot menu disappeared when I restarted.
I realise now it was probably a mistake but I decided to just reinstall Ubuntu again to get the dual boot menu working again.
But now I'm getting an error partway through the install. I've re-tried several times now but keep getting the error. I tried re-formatting the partition of the disk where Ubuntu installed last time, but don't think it deleted anything because the install recognised that there was a previous installation of Ubuntu on the disk.
Here's a chunk of the last part of the log. Help/assistance gratefully received
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: UEFI remove old olders efi state:
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: EFIBootState(current='0000', timeout='0 seconds', order=['0001', '2001', '2005'], entries={'0000': EFIBootEntry(name='USB Hard Drive (UEFI) - KingstonDataTraveler G3 (KingstonDataTraveler G3)', path='UsbWwid(951,1643,0,001CC0EC32C7FBA1171127D)/HD(2,GPT,994580b5-a031-475e-a2f0-f507ad708683,0xa9c820,0x2810)RC'), '0001': EFIBootEntry(name='Windows Boot Manager', path='HD(1,GPT,9ccec929-07f1-4276-8426-d77803f19ee3,0x800,0x82000)/File(\\EFI\\Microsoft\\Boot\\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000006d000100000010000000040000007fff0400'), '2001': EFIBootEntry(name='EFI USB Device', path='RC'), '2005': EFIBootEntry(name='Internal Hard Disk or Solid State Disk', path='RC')})
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Skipped removing 1 old UEFI entrie.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: UEFI entry 'Windows Boot Manager' might no longer exist and should be removed.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: installing grub to target=/target devices=['/dev/nvme0n1p1'] [replace_defaults=True]
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Checking if target_proc (/target/proc) is a mount
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: It's not, using normal behavior
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'dpkg', '--print-architecture'] with allowed return codes [0] (capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: updated /target/etc/default/grub to set: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Using grub install command: /usr/lib/grub/grub-multi-install
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Grub install cmds:
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: [['efibootmgr', '-v'], ['dpkg-reconfigure', 'grub-efi-amd64'], ['update-grub'], ['/usr/lib/grub/grub-multi-install'], ['efibootmgr', '-v']]
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/dev', '/target/dev'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/proc', '/target/proc'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/run', '/target/run'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/sys', '/target/sys'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--bind', '/target/usr/bin/true', '/target/usr/bin/ischroot'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Checking if target_proc (/target/proc) is a mount
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: It is, so unshare will use --mount-proc=/target/proc
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', 'efibootmgr', '-v'] with allowed return codes [0] (capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Checking if target_proc (/target/proc) is a mount
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: It is, so unshare will use --mount-proc=/target/proc
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', 'dpkg-reconfigure', 'grub-efi-amd64'] with allowed return codes [0] (capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Checking if target_proc (/target/proc) is a mount
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: It is, so unshare will use --mount-proc=/target/proc
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', 'update-grub'] with allowed return codes [0] (capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Checking if target_proc (/target/proc) is a mount
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: It is, so unshare will use --mount-proc=/target/proc
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', '/usr/lib/grub/grub-multi-install'] with allowed return codes [0] (capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: TIMED subp(['udevadm', 'settle']): 0.007
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/usr/bin/ischroot'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/usr/bin/ischroot'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/sys'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/sys'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/run'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/run'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/proc'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/proc'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['mount', '--make-private', '/target/dev'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Running command ['umount', '/target/dev'] with allowed return codes [0] (capture=False)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: FAIL: installing grub to target devices
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: configuring target system bootloader
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Traceback (most recent call last):
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/main.py", line 202, in main
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: ret = args.func(args)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: ^^^^^^^^^^^^^^^
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/curthooks.py", line 2217, in curthooks
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: builtin_curthooks(cfg, target, state)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/curthooks.py", line 2172, in builtin_curthooks
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: setup_boot(cfg, target, machine, stack_prefix, osfamily=osfamily,
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/curthooks.py", line 919, in setup_boot
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: setup_grub(cfg, target, osfamily=osfamily, variant=variant)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/curthooks.py", line 839, in setup_grub
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: install_grub(instdevs, target, uefi=uefi_bootable, bootcfg=bootcfg)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/commands/install_grub.py", line 451, in install_grub
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: in_chroot.subp(cmd, env=env, capture=True)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/util.py", line 843, in subp
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: return subp(*args, **kwargs)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: ^^^^^^^^^^^^^^^^^^^^^
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/util.py", line 323, in subp
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: return _subp(*args, **kwargs)
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: ^^^^^^^^^^^^^^^^^^^^^^
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: File "/snap/ubuntu-desktop-bootstrap/441/lib/python3.12/site-packages/curtin/util.py", line 172, in _subp
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: raise ProcessExecutionError(stdout=out, stderr=err,
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: curtin.util.ProcessExecutionError: Unexpected error while running command.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Command: ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', '/usr/lib/grub/grub-multi-install']
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Exit code: 1
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Reason: -
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Stdout: ''
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Stderr: Installing grub to /boot/efi.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Installing for x86_64-efi platform.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: grub-install: error: failed to make directory: '/boot/efi/EFI/ubuntu'.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]:
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Unexpected error while running command.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Command: ['unshare', '--fork', '--pid', '--mount-proc=/target/proc', '--', 'chroot', '/target', '/usr/lib/grub/grub-multi-install']
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Exit code: 1
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Reason: -
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Stdout: ''
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Stderr: Installing grub to /boot/efi.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Installing for x86_64-efi platform.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: grub-install: error: failed to make directory: '/boot/efi/EFI/ubuntu'.
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]:
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: {'current': '0000', 'timeout': '0 seconds', 'order': '0001,2001,2005,2002,2004'}
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: {'current': '0000', 'timeout': '0 seconds', 'order': '0001,2001,2005,2002,2004'}
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]:
Oct 10 22:46:52 ubuntu subiquity_log.4534[10663]: Stderr: ''
Oct 10 22:46:52 ubuntu subiquity_event.4534[4534]: executing curtin install curthooks step
Oct 10 22:46:52 ubuntu subiquity_event.4534[4534]: installing system
Oct 10 22:46:52 ubuntu subiquity_event.4534[4534]:
Output of sudo parted -l:
ubuntu@ubuntu:~$ sudo parted -l
Model: Kingston DataTraveler G3 (scsi)
Disk /dev/sda: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 32.8kB 6340MB 6340MB ISO9660 hidden, msftdata
2 6340MB 6346MB 5202kB Appended2 boot, esp
3 6346MB 6346MB 307kB Gap1 hidden, msftdata
4 6346MB 16.0GB 9691MB ext4
Model: SAMSUNG MZVL81T0HFLB-00BH1 (nvme)
Disk /dev/nvme0n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, esp
2 274MB 290MB 16.8MB Microsoft reserved partition msftres
3 290MB 414GB 414GB ntfs Basic data partition msftdata
5 414GB 419GB 4232MB ext4
6 419GB 1023GB 605GB ext4
4 1023GB 1024GB 791MB ntfs Basic data partition hidden, diag, no_automount
Result of typing efibootmgr into terminal:
ubuntu@ubuntu:~$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,2001,2005,2002,2004
Boot0000* USB Hard Drive (UEFI) - KingstonDataTraveler G3 (KingstonDataTraveler G3) UsbWwid(951,1643,0,001CC0EC32C7FBA1171127D)/HD(2,GPT,b5416491-a6d3-42b2-a3f4-260427bcf601,0xbcf500,0x27b0)RC
Boot0001* Windows Boot Manager HD(1,GPT,9ccec929-07f1-4276-8426-d77803f19ee3,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000006d000100000010000000040000007fff0400
Boot2001* EFI USB Device RC
Boot2005* Internal Hard Disk or Solid State Disk RC