-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline install Ubuntu failing #7489
Comments
From the error messages it looks like we are attempting to unpack the distro. Did you wait a while to see if the install completes? |
Yes, even tried several hours later. Same result. |
|
I am investigating a similar issue in a GitHub Action that installs WSL in a GitHub CI runner (Vampire/setup-wsl#17), and it looks like at some point, the executable name was changed from |
I'm running into this exact issue as well. Any help would be greatly appreciated. |
As an alternative, rootfs tarball can be used from here https://cloud-images.ubuntu.com/releases/. For example, this is the direct link of 22.04 https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64-wsl.rootfs.tar.gz |
any luck.. i am also using win 11 build Version 10.0.22621 Build 22621.Same cant install any wsl linux images I used this and downloaded and it worked But the other wsl still has issues.. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Windows Build Number
Microsoft Windows 10 Pro [Version 10,0,19043]
WSL Version
Kernel Version
No response
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Add-AppxPackage .\Ubuntu2004.2-2-.424.0_x64.appx
Expected Behavior
A working Ubuntu install
Actual Behavior
Trying to install Ubuntu 20.04 in WSL offline. So the system has no internet connectivity. First activated WSL, then installed the kernel update (wsl_update_x64.msi)
Downloaded the Ubuntu appx and copied it to the system. Install using Powershell as admin
Add-AppxPackage .\Ubuntu2004.2-2-.424.0_x64.appx
Progress bar takes about 4 seconds. Ubuntu appears in startmenu but when I click nothing happens. When I right click to open as admin I get an popup Network Error message: Windows cannot access: C:\Program Files\WindowsApps\CanonicalGroupLimited.Ubuntu2...\ubuntu2004.exe
Also tried renaming .appx to .zip and unpacking. When I try to run .\ubuntu2004.exe in Powershell I immediately get this message:
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8000000d Error: 0x8000000d An illegal state change was requested Press any key to continue....
wsl -l
gives me: no installed distributions. Howeverwsl -l -v
shows the follwoing:Ubuntu-20.04 installing 2
Tried enabling and disabling wsl several times. Rebooting, updating Windows. Result is always the same. Also tried installing the Kali appx package but same result.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: