-
Notifications
You must be signed in to change notification settings - Fork 44
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
do-release-upgrade
when systemd is disabled.
#493
Comments
In def _test_and_fail_on_tpm_fde(self):
"""
LP: #2065229
"""
try:
snap_list = subprocess.check_output(['snap', 'list'])
snaps = [s.decode().split()[0] for s in snap_list.splitlines()]
except FileNotFoundError:
# snapd not installed?
return I think Because Then after an hour of upgrade I got this error (maybe systemd install failed):
It appears that some packages add systemd post-installation scripts which then cannot run as WSLv1 has no systemd |
I guess I'm finding another fellow that appreciates WSL1 approach... ;-) |
I use wsl2 but I am getting the same error. 😕 edit: |
Thanks for your report. I filed https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2080233 upstream to address this issue in Ubuntu release upgrader. |
do-release-upgrade
requires a working snap list
which is not there for WSLv1 - instead should just skip not working snap
/ snap list
/ snapd
do-release-upgrade
when systemd is disabled.
Another suggestion:
@jibel In the bug filed above two problems appear mixed:
Btw my distro became broken after this upgrade attempt, and |
Right, I filed https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2080257 against systemd in Ubuntu for the systemd postinst issue. |
Could you please add in there investigated details about the |
cmd /c ver
Microsoft Windows [Version 10.0.22631.4037]
wsl --status
C:\Users\vadim>wsl --status
Default Distribution: Ubuntu
Default Version: 2
C:\Users\vadim>wsl -l -v
NAME STATE VERSION
UbuntuWSL1 Stopped 1
Ubuntu-24.04 Running 1
Did the problem occur during installation?
What happened?
UbtuntuWSL1
sudo do-release-upgrade
fails with stack trace somewhere afternoble.tar.gz
is extracted:snap list
errors out with exit code 1 and prints:Interacting with snapd is not yet supported on Windows Subsystem for Linux 1. This command has been left available for documentation purposes only.
Related issue I created in MS's repo:
What was expected?
On Ubuntu-22.04/WSLv1
sudo do-release-upgrade
should succeed and bypass not workingsnap list
, maybesnap list
could be stubbed out, or better - the upgrader script should handle this error. On WSLv1snap
/snapd
and snap apps are not supported, so they need not any upgrades, and this should be simply skipped in the upgrade processSteps to reproduce
N/A - explained above (have Ubuntu-22.04 + WSLv1 and launch
sudo do-release-upgrade
)Additional information
No response
The text was updated successfully, but these errors were encountered: