-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
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
- Ubuntu Stopped 2
UbuntuWSL1 Stopped 1
Ubuntu-24.04 Running 1
Did the problem occur during installation?
- Yes
What happened?
- I have a Ubuntu-22.04/WSLv1 distro
UbtuntuWSL1 sudo do-release-upgradefails with stack trace somewhere afternoble.tar.gzis extracted:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-uqmd8iby/noble", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeController.py", line 2642, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeController.py", line 2447, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeController.py", line 1438, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeQuirks.py", line 102, in run
func()
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeQuirks.py", line 127, in noblePostInitialUpdate
self._test_and_fail_on_tpm_fde()
File "/tmp/ubuntu-release-upgrader-uqmd8iby/DistUpgrade/DistUpgradeQuirks.py", line 1898, in _test_and_fail_on_tpm_fde
snap_list = subprocess.check_output(['snap', 'list'])
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'list']' returned non-zero exit status 1.
- This happens because
snap listerrors 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. - I worked around and managed to get Ubuntu-24.04/WSLv1 by installing it fresh from MS Store and then forcing WSLv1, but this is not ideal as we have to set up the distro from scratch
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 working snap list, maybe snap list could be stubbed out, or better - the upgrader script should handle this error. On WSLv1 snap/snapd and snap apps are not supported, so they need not any upgrades, and this should be simply skipped in the upgrade process
Steps to reproduce
N/A - explained above (have Ubuntu-22.04 + WSLv1 and launch sudo do-release-upgrade)
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels