Skip to content
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 run wsl --update --web-download #12009

Closed
1 of 2 tasks
dtlhlbs opened this issue Sep 8, 2024 · 6 comments
Closed
1 of 2 tasks

Cannot run wsl --update --web-download #12009

dtlhlbs opened this issue Sep 8, 2024 · 6 comments

Comments

@dtlhlbs
Copy link

dtlhlbs commented Sep 8, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.2251]

WSL Version

wsl --version is not available as a command argument. I ran the wsl.2.2.4.0.x64.msi installer, but it's not clear if this worked.

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu-20.04

Other Software

Docker Desktop for Windows 4.33.1 (161083)

Repro Steps

  1. I uninstalled Docker Desktop, all distributions and all WSL using Apps
  2. I downloaded and ran the latest WSL release wsl.2.2.4.0.x64.msi
  3. The installer exited without confirmation of an install so I ran in PowerShell with the installer log - log attached
  4. Run wsl --update --web-download and just get a help message
  5. Run wsl --status and get
Default Distribution: Ubuntu-20.04
Default Version: 2

WSL automatic updates are on.

The WSL 2 kernel file is not found. To update or restore the kernel please run 'wsl.exe --update'.
  1. Run wsl --update and get:
Checking for updates...
Downloading updates...
Installing updates...
This change will take effect on the next full restart of WSL. To force a restart, please run 'wsl --shutdown'.
  1. wsl --shutdown
  2. wsl --update
Checking for updates...
No updates are available.
Kernel version: 5.10.102.1
  1. wsl --update --web-download

I just get the help message again.

If I then try to install Docker Desktop for Windows 4.33.1 (161083)

Expected Behavior

wsl --update --web-download would run and check for updates, installing any available updates.

Actual Behavior

wsl --update --web-download just returns a help message indicating that the --web-download argument isn't recognised.

I then install Docker Desktop for Windows 4.33.1 (161083). This installs fine, but then when opening I get this prompt:

image

I select Finish and then get an error:

image

This is because the underlying wsl --update --web-download command is failing...

wsl update failed: update failed: updating wsl: exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --update --web-download: 

WSL.log

Diagnostic Logs

No response

Copy link

github-actions bot commented Sep 8, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@dtlhlbs
Copy link
Author

dtlhlbs commented Sep 8, 2024

Copy link

github-actions bot commented Sep 8, 2024

Diagnostic information
Detected appx version: 2.2.4.0

@Rikj000
Copy link

Rikj000 commented Sep 9, 2024

Same issue here,
appears to be a SQLite related problem.

Was unable to work around the issue, nothing worked,
not even uninstalling + reinstalling WSL through Turn Windows features on or off,
nor updating Windows to the latest version,
nor disabling my VPN..

Error Logs

Docker Update

wsl update failed: update failed: updating wsl: exit code: 4294967295:
running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe --update --web-download:

Downloading: Windows Subsystem for Linux
Installing: Windows Subsystem for Linux

SQLITE_IOERR_READ
: exit status 0xffffffff

WSL CLI Update

sudo wsl --update --web-download

Downloading: Windows Subsystem for Linux
Installing: Windows Subsystem for Linux

SQLITE_IOERR_READ

.msi Update

Tested with latest release (v2.2.4) + latest pre-release (v2.3.17)

Failed to install the MSIX package (error: Install failed. Please contact your software vendor. )

.msi CLI Update

msiexec.exe /i C:\Users\Rik\Downloads\wsl.2.3.17.0.x64.msi /L*V C:\Users\Rik\Downloads\wsl-logs.log

wsl-logs.log

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 11, 2024

@dtlhlbs: It looks like your machine is in a bad MSIX state, which prevents the execution of Store WSL. We have pushed an update that should allow you to bypass the issue.

Can you check if you have this update installed ?

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants