-
Notifications
You must be signed in to change notification settings - Fork 821
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
Exit 1 when upgrading to Ubuntu 21.04 #6942
Comments
The The upgrade to 20.10 took here for me with Another way to go is to replace But probably a better play still is to |
Wow. This means that if it is necessary to change the distribution (if it appears in the win store), I need to reconfigure the working environment every time. It is a pain. upd It turned out that the store is still 20.04, which means that we can normally update only once every 2 years. This is ridiculous. |
I had similar issue, took me some time to debug it, but here is what I found out and how I resolved it in the end: Upgrade tool uses some snap package system which is currently not supported in WSL. I disabled its usage by commenting one line in upgrade script and then it went fine. I upgraded from 20.04 --> 20.10, but I presume it would be same for any other upgrades. =============================== Run After it fails with abort - go to Fine lines 128, 129 and comment them:
Then inside that folder run this command to prompt upgrade again from this edited instance of upgrade tool:
It should run fine now. |
@BilboTav Crazy😂 Now I can’t risk it, but I’ll try it soon. Thank you! |
Indeed, a little bit complicated but it works. thank you. |
@guillotp Link the issue with Xserver here, maybe I dealt with that too. |
I tried Your example with both of these settings generated by VcXsrv app:
App |
No worry. Thank you. |
I came across this issue too. As I didn't use snap package, I just run |
Pretty much my 21.04 setup is broken. Can't update packages because of systemd:
|
Worked for me when upgrading from 18.04 to 20.04. (The original issue has been closed.) |
There's two easy solutions to the original problem:
Both should work just fine and as normal. |
I know this is a closed issue, but in case anyone comes across this thread, do not use It would look something like this: sudo sed -i 's/bionic/hirsute/g' /etc/apt/sources.list
sudo sed -i 's/bionic/hirsute/g' /etc/apt/sources.list.d/*.list
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
|
@telorand What if we can get snapd working? (A fully working workaround has been found for that) |
FWIW: this appears to work going from 21.04 -> 21.10, as well. |
Thanks, It works for me. |
Thanks a lot as It works for my case, and how on earth did you find out it is related with snapd, I checked all the logs under /var/log/dist-upgrade/ and find nothing usefull🤣 |
I debugged the python scrips looking for a place, where it exits with error. Pain in d***, but glad it helped some people. |
Helped me as well. Thanks a lot! |
Under "groovy". sudo apt remove snapd
sudo do-release-upgrade --allow-third-party success. |
You don't need to remove Snap. It's better if you don't, so you don't lose things like Docker. You just need to make it work before updating. |
As snapd doesn't work, why keep it installed when its existence causes issues? Also, the referenced method seems excessively convoluted. One can always immediately reinstall snapd after the upgrade is finished. |
"The referenced method" is literally just installing/fixing some snapd dependencies, running a command and upgrading from 20.04->21.04, then running another command and upgrading from 21.04->21.10. As snapd doesn't work, why reinstall it after the upgrade is finished when its existence causes issues? Said command makes Snapd work for that bash session. |
Just went from
I wonder what lurks underneath, so to speak, because I didn't use @telorand's method using EDIT: I tried @telorand's method and still received the below. I went from Scanning linux images...
Failed to retrieve available kernel versions.
Failed to check for processor microcode upgrades.
No services need to be restarted.
No containers need to be restarted.
User sessions running outdated binaries:
matt @ /dev/pts/0: bash[8] |
I found a simpler method in a few threads that worked... just |
I'm not sure what you're talking about, the way @therealkenc explained is the way all Debian and Ubuntu releases were done, before
There's no magic involved here,
That's about it. So you guys seem to overthink this issue a little, just because you need to use the original process instead of a fancy wrapper ( |
|
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 [Version 10.0.19043.985]
WSL Version
Kernel Version
Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020
Distro Version
Release: 20.10
Other Software
VSCode 1.56.2 with Remote-WSL v0.56.2
Repro Steps
Change Prompt to normal in
/etc/update-manager/release-upgrades
sudo apt dist-upgrade -y
sudo do-release-upgrade
Expected Behavior
The update successful
Actual Behavior
Update failed
Diagnostic Logs
The text was updated successfully, but these errors were encountered: