I do have a working version of LocalWP on WSL/Ubuntu. Although I still lack site domain functionality which is the domains like site-name.local, so I am forced to run on the localhost and port number provided for each site.
@robert77 can you explain the lxpolkit setup process for overcoming the Uh-oh could not update host files error, and them not resolving?
@oeknudsen what do you get when you simply run the follow in the terminal /opt/Local/local what I learned was their is a difference here, at least in WSL/Ubuntu (or for me at the very least), sudo local vs /opt/Local/local are two different “instances” of the Local package, it appears one installs its Local Sites folder to the root directory of your WSL/Ubuntu folder and one installs to another directory, possibly the home directory but do not quote me on that last part I would need to double check. Only /opt/Local/local works for me in WSL/Ubuntu hover after I get it installed I can launch it directly from the Windows Start menu on Windows 11 by just searching Local but as I mention above this is only working with localhost domains, meaning something like localhost:1004/wp-admin with the port number assigned for each site, this is controlled under Local > Preferences > Avanced > Router Mode. Let me know you’re results maybe I can help you move forward.
I have my installation steps for WSL/Ubuntu I’ll track down and revise and get them posted for anyone else, I made them quite early in my process of getting it working but I know they’re good.