hakuna-m / wubiuefi

fork of Wubi (https://launchpad.net/wubi) for UEFI support and for support of recent Ubuntu releases
GNU General Public License v2.0
1.07k stars 152 forks source link

Support for versions released post 20.04 #305

Open jdev082 opened 2 years ago

jdev082 commented 2 years ago

These include 20.10 21.04 21.10 22.04 (Beta)

jdev082 commented 2 years ago

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.

hakuna-m commented 2 years ago

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.

hakuna-m commented 2 years ago

20044r344 has been released.

Dex94 commented 2 years ago

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.

hakuna-m commented 2 years ago

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 2 years ago

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 2 years ago

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

Dex94 commented 2 years ago

It doesn't work

Dex94 commented 2 years ago

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.

hakuna-m commented 2 years ago

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 2 years ago

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.

dieter-erich commented 2 years ago

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!

hakuna-m commented 2 years ago

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

An upgrade to 22.04 seems to work. see https://github.com/hakuna-m/wubiuefi/issues/308#issuecomment-1107367059

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.

hakuna-m commented 2 years ago

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 2 years ago

Can be booted custom iso?

dieter-erich commented 2 years ago

Thanks again HM! 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". I then tried to disable secure boot but whatever I do I am sent to a screen telling me that I have to enter the recovery key etc. The only way to save my Win10 install was to re-activate secure boot in the boot menu. Any ideas? It appears to me that it becomes more and more difficult to change anything in the Windows system. There is also a lot of security stuff coming from HP. Is there any EASY way to make wubi running on this Z book? In the next days I'll try release-upgrading on other laptops as well.


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 08.05.2022 14:55, hakuna matata wrote:

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

An upgrade to 22.04 seems to work. see #308 (comment) https://github.com/hakuna-m/wubiuefi/issues/308#issuecomment-1107367059

Currently, we test Ubuntu 22.04 where bug 1960457 https://bugs.launchpad.net/ubuntu/+source/lupin/+bug/1960457 has been fixed.

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

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1120413943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFXBLNSNP5DJ4B5SSA3VI62T7ANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

Dex94 commented 2 years ago

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.

hakuna-m commented 2 years ago

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.

hakuna-m commented 2 years ago

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 2 years ago

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...

hakuna-m commented 2 years ago

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 2 years ago

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 : )

jdev082 commented 2 years ago

image Source

The generic Linux drivers should work.

Equivalent Driver: image

dieter-erich commented 2 years ago

Just to note: Booting my HP Z book from USB stick works without problems!


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 12.05.2022 07:01, hakuna matata wrote:

on my HP Z book

Your HP Z book seems to have special issues as you wrote in #303 https://github.com/hakuna-m/wubiuefi/issues/303 . First of all, we try to fix general issues for Ubuntu 22.04.

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1124531206, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFTS2NEX4S5T6SBEW2DVJSGB7ANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

hakuna-m commented 2 years ago

An update with the status report:

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=".

hakuna-m commented 2 years ago

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.

hakuna-m commented 2 years ago

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.

hakuna-m commented 2 years ago

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

jdev082 commented 2 years ago

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.

golgeadam commented 2 years ago

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

hakuna-m commented 2 years ago

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 https://github.com/hakuna-m/wubiuefi/issues/308#issuecomment-1133958135

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

see https://github.com/hakuna-m/wubiuefi/issues/310#issuecomment-1133952582

dieter-erich commented 2 years ago

Hi,

     I now tried installing Ubuntu-mate 22.04 with the brand new wubi-22.04 on my HP Z-book running win10: After finishing the installation and rebooting I was again sent to the grub prompt. Again rebooting, Windows started normally but did not show any "ubuntu" and no boot menu. In C:\ there is a directory "ubuntu" with everything in it and there are the files wubildr and wubildr.mdr. Could it be that the wubi files have to go into the EFI partition (see screenshot)? As far as I understand WUBI does not find the files it needs to boot from. But, is it allowable to copy them into the EFI partition? I do not want to mess up my Windows!


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 22.05.2022 21:31, hakuna matata wrote:

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) https://github.com/hakuna-m/wubiuefi/issues/308#issuecomment-1133958135

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

see #310 (comment) https://github.com/hakuna-m/wubiuefi/issues/310#issuecomment-1133952582

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1133958644, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFX7EG7SM46KBG527FTVLKDQBANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

Dex94 commented 2 years ago

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.

dieter-erich commented 2 years ago

When I go into the boot menu by pressing esc several times I see, among other options, "UEFI Wubi". When I press it, I am again sent to >grub


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 23.05.2022 14:02, Dex94 wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1134584902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFXWRWNSRIRS27BTFNTVLNXW5ANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

Dex94 commented 2 years ago

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

Dex94 commented 2 years ago

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?

dieter-erich commented 2 years ago

No, because if I do this it screws up my Windows start - gives a lot of error messages and finally it boots Windows. This only works when I allow system restore (or something similar). I am too afraid to permanently damage Windows start....


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 23.05.2022 14:56, Dex94 wrote:

is secureboot disabled?

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1134642853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFQPM75JIUWBQFBSPLLVLN6AJANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

hakuna-m commented 2 years ago

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.

dieter-erich commented 2 years ago

I have tried ubuntu mate. Should I try something else? BTW: when exploring the disks and directories from >grub (hd0, gpt1), (hd0, gpt2) etc. I do not find any that would contain the linux files....


Dieter Blaas, Max Perutz Laboratories Medical University of Vienna, Inst. Med. Biochem., Vienna Biocenter (VBC), Dr. Bohr Gasse 9/3, A-1030 Vienna, Austria, Tel: 0043 1 4277 61630, Mobile: 0043 699 1942 1659 @.***

On 23.05.2022 20:33, hakuna matata wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/305#issuecomment-1135007455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETPFFU2AOXBR2BBMOGVQDTVLPFODANCNFSM5RXEZ2TQ. You are receiving this because you commented.Message ID: @.***>

hakuna-m commented 2 years ago

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 https://github.com/hakuna-m/wubiuefi/issues/308#issuecomment-1133958135

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: