Comments (8)
Hmm I wonder if the MSIX package for the ubuntu app was in a weird state, and rebooting maybe fixed the issue.
The Ubuntu 24.04 LTS is already installed
logline is expected if the MSIX package for the distribution is already installed.
Closing since the issue is fixed, but please reopen if this reproduces again.
from wsl.
View similar issues
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Closed similar issues:
- "A connection with the server could not be established" Error for "wsl --install -d Ubuntu" (#9460), similarity score: 0.81
- wsl --install fails with Wsl/InstallDistro/0x80072f8f (#11181), similarity score: 0.79
wsl --install
throwsError code: Wsl/InstallDistro/WININET_E_NAME_NOT_RESOLVED
(#10051), similarity score: 0.79- Failed to fetch the list distribution from 'https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json' (#10954), similarity score: 0.78
- WSL doesn't update itself, or Install Ubuntu giving error 0x80072efd (#9482), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Diagnostic information
.wslconfig found
Detected appx version: 2.1.5.0
Detected user visible error: Wsl/InstallDistro/WININET_E_CANNOT_CONNECT
from wsl.
@viblo-majority: This looks like a connectivity issue, but maybe it's within the store.
Does:
wsl --install -d Ubuntu-24.04 --web-download
Help resolve the issue ?
from wsl.
I tried from two different (wifi) networks with the same result, and I don't have other network issues on any of them. But is there any specific address I can try with for example ping, curl or similar to check outside the wsl tool?
I did try the web-download option. I think it downloaded it, and maybe installed it. However, it can't be started, and now it will not try to install it again.
PS C:\> wsl -l --all
Windows Subsystem for Linux Distributions:
rancher-desktop-data (Default)
rancher-desktop
PS C:\> wsl -d ubuntu-24.04
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
PS C:\> wsl --install -d Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.
PS C:\> wsl --install -d Ubuntu-24.04 --web-download
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.
from wsl.
Does the distribution start if you start it via wsl.exe -d Ubuntu-24.04
?
from wsl.
No. I had a list of all commands I tried in my previous comment, let me format them again for clarity:
(It doesn't matter the order of these commands, I've tried all of them several times)
- wsl -l --all
PS C:\> wsl -l --all
Windows Subsystem for Linux Distributions:
rancher-desktop-data (Default)
rancher-desktop
- wsl -d ubuntu-24.04
PS C:\> wsl -d ubuntu-24.04
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
- wsl --install -d Ubuntu-24.04
PS C:\> wsl --install -d Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.
- wsl --install -d Ubuntu-24.04 --web-download
PS C:\> wsl --install -d Ubuntu-24.04 --web-download
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
The operation completed successfully.
from wsl.
Interesting. Do you have the Ubuntu-24.04
app installed now ? What if you start it manually ?
from wsl.
Oh, now it worked. I actually gave up and focused on other things, but seems like something happened that fixed it. (I did restart the computer both now and a 2 weeks ago when tried to troubleshoot this issue from the beginning).
However, some traces of the broken state could still be visible today when I ran the install command (you can see that it printed out that Ubuntu was already installed, but still proceeded to actually install it):
PS C:\code\dump> wsl --install -d Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
Installing, this may take a few minutes..
from wsl.
Related Issues (20)
- WSL 2.3.14 doesn't work on Windows 2025 (but 2.2.4 does) HOT 4
- FXApp::openDisplay: unable to open display :0 HOT 8
- FEAT: Configure Default dotfiles for all WSL distributions HOT 3
- WSL Distribution Not Installing No Matter How Much I Try HOT 6
- Wsl/ERROR_SERVICE_DOES_NOT_EXIST HOT 8
- Issue using iptables with 6.6.36-lts kernel HOT 12
- WSL2 gets laggy over time - suspend to disk (hibernate) restores normal operation HOT 20
- I can't seem to get 6.6.36.3-lts to boot when building without module support HOT 5
- NVIDIA-SMI couldn't find libnvidia-ml.so library in your system HOT 2
- WSL stopped working - hangs for any distro access HOT 2
- WSL Installation Issue Leading to PC Boot Failure HOT 6
- Can't attach disk HOT 2
- wsl not responding just saying class not registered HOT 5
- Error code: Wsl/0x80080005 - The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again. HOT 8
- WslRegisterDistribution failed with error: 0x80040321 HOT 4
- The installation process for distribution 'Ubuntu' failed with exit code: 1. Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED HOT 3
- WSL installation fails with error "0x8007019e" plus "wsl -l -v" gives an error "Wsl/0x80080005" HOT 6
- Mirrored networking mode is not supported, falling back to NAT networking HOT 3
- USBIPD broken by latest WSL pre-release version HOT 2
- Missing WSL Blobs for openSUSE Leap 15.5 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.