-
Notifications
You must be signed in to change notification settings - Fork 814
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
Cannot upgrade from Ubuntu 20.04 to 22.04 #8618
Comments
I am facing the same behavior here. |
Check if you have the latest "Ubuntu" app installed. If you installed your Ubuntu from the Microsoft Store long ago, you might have the older version of the app, called "Ubuntu for Windows". It is 20.04 LTS, and it will not update automatically. If you indeed have "Ubuntu for Windows", and not just "Ubuntu" you can reinstall the app to get updates. At least that's what I did. Back up important files, delete the "Ubuntu for Windows" and install "Ubuntu" from Microsoft Store. |
Short answer:
But please read to the end to understand why . Also, if you have the ability to "Close" this issue yourself, I'd encourage you to do so, since this isn't an issue with WSL itself.
Upgrading a WSL distribution is always going to require a distribution-specific process, so it's really not something that would be appropriate for the WSL docs themselves (other than perhaps a statement to the effect to check the distribution documentation).
I agree that's confusing on multiple levels (and currently/temporarily wrong), so let me attempt to explain: Typically, there are 2 different types of Ubuntu distributions in the Microsoft Store:
I honestly can't recall if they bumped "Ubuntu" to 20.04 immediately after 20.04 was released, but I doubt it. Even LTS releases are a bit of a "slow roll" by Canonical. They usually wait for the So at some point, perhaps August 4th, the unversioned "Ubuntu" in the Store will become 22.04.1. I will say that the 22.04 release has been a bit more "problematic" than normal because of Canonical's shift to a new installer (out-of-box-experience/OOBE) for WSL. It's generated a few issues. It seems to be improving, but I still prefer the "normal" WSL installer, which you can still run using command-line arguments. But even when the Ubuntu distro in the Microsoft Store is upgraded, that won't upgrade your existing install. Rather than rehash all that here, let me point you to my explanation on Ask Ubuntu.
Historically, the same "upgrade" policy holds true for LTS releases with In the meantime, if you do want to proceed with an upgrade, realize that the upgrade path is still considered "in development". It can be forced with |
Just to mention, 22.04.1 is out, and therefore |
I recently did Default Distribution: Ubuntu Seems like WSLg is not working or setup properly after the upgrade and intellij is borked
|
I guess I have "Ubuntu on Windows", the older version https://discourse.ubuntu.com/t/what-exactly-is-the-ubuntu-on-windows-ms-store-app-for/28246 ... probably end up just deleting everything and reinstalling it to see if it wslg starts working again. |
I can't give repro steps but, hopefully this can help someone. I removed all traces of any distros in programs and features and restarted machine, and then tried installing the "Ubuntu" app in the app store which installed 22.04.1. I did this repeatedly with different outcomes every time. Sometimes during the install it would fail or it would go into text mode install but, GUI would still not work until finally, it showed a GUI for the install and that's when everything seemed to work as expected. I still cannot get desktop icons working in from windows though. They don't automatically get created and when I try to manually make one it tries to start but fails and then I can't even start a GUI from within the distro. I have to restart everything. |
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! |
I couldn't find any relevant information in the docs regarding how to upgrade an Ubuntu WSL instance. Can you point me in the right direction?
There's an Ubuntu 22.04 LTS app on Microsoft Store, where it gets confusing is that the Ubuntu app's description section includes the following statement:
But the Ubuntu app is actually 20.04, and not 22.04, which is the latest LTS version.
Another confusing thing is that the 22.04 doesn't even show up when you run
wsl --list --online
. What is going on here?Version
Microsoft Windows [Version 10.0.22622.290]
WSL Version
Kernel Version
Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220)
Distro Version
Ubuntu 20.04.4 LTS
Other Software
No response
Repro Steps
wsl --update
wsl --shutdown
sudo do-release-upgrade
Expected Behavior
It should upgrade to Ubuntu 22.04 LTS
Actual Behavior
It doesn't, here's the output of
sudo do-release-upgrade
:Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: