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

Update Wubiuefi installer to the latest version 24.04 LTS (Noble Numbat) #347

Open WWarrior64 opened 6 months ago

WWarrior64 commented 6 months ago

No problem to report, only that I just wish the installer could run the latest version of Ubuntu (24.04)

mreymann commented 6 months ago

I would love to have this, too! :-)

tarunsamal commented 6 months ago

Same here waiting for 24.04 :)

caner-cetin commented 6 months ago

Bump, that would be cool. 20.04 -> 22.04 -> 24.04 is not hard to do once installing 20.04 but still.

MathiasMagnus commented 6 months ago

@WWarrior64 Did you recompile wubiuefi or did you provide command-line options to it? How exactly did you get 24.04 working?

I tried supplying command-line args to wubi.exe, ones found here, but the installer does nothing. I also tried recompiling by installing the dependencies listed in the official docs (gettext build-essential grub-pc mingw32), but MinGW is called something else in both 22.04 and 24.04 (mingw-w64), but running make doesn't finish.

I changed data/isolist.ini to have the entry

[Ubuntu-amd64]
max_iso_size=3700000000
arch=amd64
name=Ubuntu
packages=ubuntu-desktop
metalink=http://releases.ubuntu.com/noble/ubuntu-24.04-desktop-amd64.list
metalink2=http://cdimage.ubuntu.com/noble/daily-live/pending/noble-desktop-amd64.list
website=http://www.ubuntu.com
ordering=1

however upon building it errors on the step

grub-mkimage -O x86_64-efi -c build/winboot/wubildr-bootstrap.cfg -m build/winboot/wubildr.tar -o build/winboot/EFI/grubx64.efi \
        loadenv part_msdos part_gpt fat ntfs ext2 ntfscomp iso9660 loopback search linux linuxefi boot minicmd cat cpuid chain halt help ls reboot \
        echo test configfile gzio normal sleep memdisk tar font gfxterm gettext true efi_gop efi_uga video_bochs video_cirrus probe efifwsetup \
        all_video gfxterm_background png gfxmenu
grub-mkimage: error: cannot open `/usr/lib/grub/x86_64-efi/linuxefi.mod': No such file or directory.

I'm running this in WSL2, which is as close as I can get to a Linux environment without having to fire up a full-blown VM just to compile wubi.exe.

What am I doing wrong?

MathiasMagnus commented 6 months ago

I got a little further, but now there is a crash inside pypack

PYTHONPATH=src tools/pywine -OO src/pypack/pypack --verbose --bytecompile --outputdir=build/wubi src/main.py data build/bin build/version.py build/winboot build/translations
Traceback (most recent call last):
  File "src/pypack/pypack", line 25, in <module>
    from libpypack.application import Application
  File "Z:\home\mate\Develop\wubiuefi\src\pypack\libpypack\application.py", line 24, in <module>
    from modulegraph.find_modules import find_modules
  File "Z:\home\mate\Develop\wubiuefi\src\pypack\modulegraph\find_modules.py", line 21, in <module>
    import modulegraph
  File "Z:\home\mate\Develop\wubiuefi\src\pypack\modulegraph\modulegraph.py", line 24, in <module>
    from altgraph.ObjectGraph import ObjectGraph
  File "Z:\home\mate\Develop\wubiuefi\src\pypack\altgraph\ObjectGraph.py", line 5, in <module>
    from altgraph.GraphUtil import filter_stack
  File "Z:\home\mate\Develop\wubiuefi\src\pypack\altgraph\GraphUtil.py", line 7, in <module>
    import random
  File "c:\python27\lib\random.py", line 887, in <module>
    _inst = Random()
  File "c:\python27\lib\random.py", line 97, in __init__
    self.seed(x)
  File "c:\python27\lib\random.py", line 115, in seed
    a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893801] Windows Error 0x80090017
mreymann commented 6 months ago

@MathiasMagnus I think there is some misunderstanding here. @WWarrior64 wishes that the installer can run the latest version of Ubuntu. I don't think he claims that the installer can run the latest version of Ubuntu! This is more of a humble request for a new release that we all long for.

WWarrior64 commented 6 months ago

@MathiasMagnus I think there is some misunderstanding here. @WWarrior64 wishes that the installer can run the latest version of Ubuntu. I don't think he claims that the installer can run the latest version of Ubuntu!

Yes that right. Sorry, I'm not very good at English, the thing that I tried to said is that it would be good the installer can run Ubuntu 24.04 Sorry for the misinterpreting

hakuna-m commented 5 months ago

Sorry, for my late reply. I will create new releases for Wubiuefi soon.

tarunsamal commented 5 months ago

Thank you @hakuna-m

mreymann commented 5 months ago

Thank you! I love Wubiuefi!

litmount commented 5 months ago

Sorry, for my late reply. I will create new releases for Wubiuefi soon.

Awesome! looking forward to it! thanks for your work!

mreymann commented 2 months ago

Will there be a new Wubi release once 24.04.1 is out?

mreymann commented 2 weeks ago

@hakuna-m Any update on this?

MathiasMagnus commented 1 week ago

Does anyone know if 22.04 is dist-upgrade-able to 24.04?

mreymann commented 1 week ago

Not yet, but very tempted to try.

MathiasMagnus commented 5 days ago

For those that wonder: it doesn't upgrade. It goes through the update but becomes unable to boot.

And FWIW, it 22.04.4 barely installs. The end of the installer drops out to init1 with I/O errors on device loop1. I suspect when Ubiquity being the forsaken dumpster fire it is tries to install GRUB onto all the connected drives, it likely fails on my ReFS second disk. Rebooting the machine during the endless error message loop brings up the system alright. Dist upgrade says that the grub-pc config is in conflict, having checked both versions, I saw no grave difference between the PC's and the package maintainer's version, I tried keeping mine or installing theirs, both resulted in borked installs.

I will be partitioning my drive, as I can't keep waiting around for longer. (This is me just writing the frustration out of me over a wasted evening, I don't expect hakuna to fix it over some random user's rants: this isn't aimed at that, we're all busy and noone's entitled to using other's people work for free.)

raspiduino commented 2 days ago

For those that wonder: it doesn't upgrade. It goes through the update but becomes unable to boot.

I can confirm this. I upgraded from 22.04 to 24.04. The update succeed (I even have new GNOME apps on old Ubuntu before reboot lol) but after reboot it can no longer boot to Ubuntu.