hakuna-m/wubiuefi

Support for versions released post 20.04

Opened this issue · 40 comments

These include
20.10
21.04
21.10
22.04 (Beta)

As the downloading of ISOs automatically through the application fails, with an error reported often. ISOs must be downloaded by the user and placed in the directory of the binary win32 executable. However, as the latest supported release is 20.04.4 (the oldest for download), and the ISO looks for 20.04.3, the installation fails.

20.10
21.04

20.10 and 21.04 have reached their end of life. see Ubuntu releases. So meanwhile, it makes no sense to support an installer of an unsupporfed release.

21.10

As 21.10 is only an interim release with a soon need for an upgrade, we want to push LTS versions instead. Nethertheless, advanced users can use support as described here

22.04 (Beta)

The download links and the check sums of pre releases are frequently under construction. So our releases in the past for pre releases had frequently download issues. Therefore our decision is to support pre releases without automatic download as described here

However, as the latest supported release is 20.04.4 (the oldest for download), and the ISO looks for 20.04.3, the installation fails.

If you disconnect internet connection during first part of installation or if you use --skipmd5checkas argument ( see parameters ) , it should be no problem. Alternately, you can use 2004r344 (https://github.com/hakuna-m/wubiuefi/releases/tag/2004r344) which has no valid isolist for downloads.

Nevertheless, it makes sense to add download support for 20.04.4 and the final releases of 22.04 and we will release it soon.

20044r344 has been released.

Dex94 commented

I see actually that support for ubuntu 22 is removed. Some packages are removed because they considered wubi an obsolete project and they don't know it's still alive.

I see actually that support for ubuntu 22 is removed.

Don't forget, the project Wubiuefi has always existed because of an unsupported and unmaintained Wubi. So it is not a huge surprise that the Ubuntu team does not support Wubi for Ubuntu 22.04.
But of course, it is necessary to review changes which relate Wubiuefi.

Some packages are removed

The removing of packages is not always an issue for Wubiuefi. Wubiuefi already contains some packages like lupin-support for ISOs without those packages.

Dex94 commented

I've already tried to install ubuntu 22 and there's an error finding iso path. Ubuntu team said is implementing missing package into casper.

Dex94 commented

Today some packages are updated. I'll try to test it

Dex94 commented

It doesn't work

Dex94 commented

patch/autopartition-loop line 401, patch/grub-mkimage-lupin line 22, patch/grub-install line 10-12, patch/lupin-grub-install line 10-12, patch/grub-install-efi line 49,114; hooks/post-installer.sh line 19,20,22,24,25,30,32 refers to lupin/lupin support that is a remote memory in ubuntu 22. They need to be modified. I post a link that I found for a working iso to test. Official one of 15-04 now doesn't work. https://cdimage.ubuntu.com/daily-live/20220418/jammy-desktop-amd64.iso
Maybe an wubi update could resolve the issue. I see also that the update of ubiquity could be incompatible with wubi 20.

Maybe an wubi update could resolve the issue.

Thank you for your reports. As 22.04 has been released since Thursday, we debug the final release of Ubuntu 22.04 at this weekend. I am optimistic that we will find a solution.

Dex94 commented

happy to help. The problem is now to replace lupin-casper. If I have seen well, mounting iso instruction is now moved to usr/share/initramfs-tools/scripts/casper-helpers and /usr/share/initramfs-tools/scripts/casper-premount/20iso_scan refers to that file. In ubuntu 20 there is a refer to lupin-helpers, in ubuntu 22 to casper-helpers.

Please forgive my impacience but as exited wubi user almost from the beginning (I believe my first version was 10.04) I am eager to install wubi for mate 22.04. Is there a projected date for its release? Thanks to all who contributed to this often reviled but fantastic system!

Sorry, for my late reply. I have been sick for a week.

An upgrade to 22.04 seems to work. see #308 (comment)

Currently, we test Ubuntu 22.04 where bug 1960457 has been fixed.

If it works we will test other flavours like Ubuntu Mate 22.04.

The Ubuntu team has removed boot option "debian-installer/custom-installation=" in Ubuntu 22.04. It seems that the team does not want that someone can easily customize the ISO.

Dex94 commented

Can be booted custom iso?

Dex94 commented

I see that in some hdd is difficult to boot ubuntu from windows manager and it's needed to put the priority to grub. Try to disable secure boot and enter directly to grub pressing on boot the relative button to choose the boot manager or choosing it directly from bios. There's written something like the name of the distro.

Can be booted custom iso?

An ISO with modified initrd file still works.

But good news. We have found a solution to substitute missing boot option "debian-installer/custom-installation=" with other existing boot options.

on my HP Z book

Your HP Z book seems to have special issues as you wrote in #303 . First of all, we try to fix general issues for Ubuntu 22.04.

Dex94 commented

Can be booted custom iso?

An ISO with modified initrd file still works.

But good news. We have found a solution to substitute missing boot option "debian-installer/custom-installation=" with other existing boot options.

can you summarize what the problem was in casper and in the boot option? for curiosity...

To put it in a nutshell, the boot option "debian-installer/custom-installation=" provides the content of the path (parameter value in our case is /ubuntu/install/custom-installation) in /custom-installation.

If there is no /custom-installation during boot time all scripts containing path name beginning with /custom-installation fail.

The first script which fails is that one in preseed.cfg

## SHELL COMMANDS.
d-i preseed/early_command string [ -x /custom-installation/hooks/early-command.sh ] && /custom-installation/hooks/early-command.sh

So it is necessary to rewrite that part.

ptog commented

hello
the 20.04 kernel in the latest wubi release is not recognizing the wifi adapter (intel killer wifi 6E AX1675) on my msi notebook, hence networking doesn't work at all which also prevents the mentioned "sudo do-release-upgrade -d" solution...
support for a later ubuntu like 22.04 (hopefully?) would be great (or any other idea)
i really quite love the wubi approach! (happily using it with 20.04 on a lenovo thinkbook). many thanks for your work : )

image
Source

The generic Linux drivers should work.

Equivalent Driver:
image

An update with the status report:

  • change ISO downloads to 22.04 (data/isolist.ini)
  • change boot option "debian-installer/custom-installation=" to "file=" (data/grub.install.cfg)
  • change preseed file (data/preseed.lupin)
  • add missing features to hooks/early-command.sh
  • test scripts within initramfs environment of 22.04 (works)
  • build new version
  • test Windows part (works)
  • test Linux part in a virtual machine
  • release new version

So probably tomorrow, we will have a tested new version.

BTW, in our tests we noted that boot option "iso-scan/filename=" has also changed. In 22.04 the mount point /isodevice is not available in live environment of the ISO. It is also tricky to use it with boot option "file=".

Here are the results of the tests in a VM:

The fix for the changed boot options works, The installer uses our configuration.
But we need a second fix for the missing package lupin-support. The existing fix does not work. But it should be no huge problem.

New decision: As package lupin-support has been removed we rewrite the Wubi patches. The new patches will not fix issues in lupin-support, they will fix issues directly in Grub.

This has the huge advantage that we need no package lupin-support and we can better avoid Grub issues after upgrades or installs.

Good news. It works. So we can release a version for Ubuntu 22.04.

  • test Linux part in a virtual machine (works)
  • release new version (today)

Good news. It works. So we can release a version for Ubuntu 22.04.

* [x]  test Linux part in a virtual machine (works)

* [ ]  release new version (today)

Excellent! I'll be happy to test it directly after release.

hello, is there a linux mint md5 compatible wubi version for win11. success in your studies

I again tried installing mate 20.04 (to be finally release-upgraded to 22.04) on my HP Z book: Wubi runs OK but on re-boot I invariably arrive at "> grub".

see #308 (comment)

hello, is there a linux mint md5 compatible wubi version for win11. success in your studies

see #310 (comment)

Dex94 commented

in efi partition sometimes there are some problems. In a computer I need to press a key, I don't remenber if it's esc or f10 to select grub boot otherwise it doesn't see ubuntu. Try to boot from grub.

Dex94 commented

is secureboot disabled? have you tried in the bios uefi legacy mode?

Dex94 commented

Good news. It works. So we can release a version for Ubuntu 22.04.

* [x]  test Linux part in a virtual machine (works)

* [x]  release new version (today)

have you tried only ubiquity or other installer?

have you tried only ubiquity or other installer?

Only Ubuntu 22.04 with Ubiquity. Other installers are a konwn issue which should work for e.g. Lubuntu with rev. 346.

As far as I understand WUBI does not find the files it needs to boot from.

@dieter-erich I edited my comment for GRUB issues #308 (comment)

It is not necessary to copy files to EFI partition after installation.

The boot sequence for a working Wubiuefi with Ubuntu 22.04:

UEFI boot menu -> /efi/ubuntu/wubildr/shimx64.efi from EFI partition -> /efi/ubuntu/wubildr/grubx64.efi from EFI partition -> /boot/grub/grub.cfg from /ubuntu/disks/root.disk from Windows drive C: -> /boot/vmlinuz-5.15.0-25-generic + /boot/initrd.img-5.15.0-25-generic from /ubuntu/disks/root.disk from Windows drive C: