Skip to content

cannot use wsl --update to update WSL, nor use wsl --install to install a Linux distribution #40662

@TheWhiteDog9487

Description

@TheWhiteDog9487

Windows Version

Microsoft Windows [版本 10.0.26200.8457]

WSL Version

2.7.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.114.1-1

Distro Version

No response

Other Software

No response

Repro Steps

PowerShell 7.6.2
Loading personal and system profiles took 560ms.
PS C:\Users\TheWhiteDog9487> ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
False
PS C:\Users\TheWhiteDog9487> sudo pwsh
PowerShell 7.6.2
Loading personal and system profiles took 568ms.
PS C:\Users\TheWhiteDog9487> ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
True
PS C:\Users\TheWhiteDog9487> wsl --update
正在检查更新。
正在更新适用于 Linux 的 Windows 子系统: 2.7.3。
拒绝访问。
错误代码: Wsl/UpdatePackage/E_ACCESSDENIED
PS C:\Users\TheWhiteDog9487> wsl --install archlinux
正在下载: Arch Linux
拒绝访问。
错误代码: Wsl/InstallDistro/E_ACCESSDENIED
PS C:\Users\TheWhiteDog9487> wsl --install archlinux --web-download
正在下载: Arch Linux
拒绝访问。
错误代码: Wsl/InstallDistro/E_ACCESSDENIED
PS C:\Users\TheWhiteDog9487>

Expected Behavior

Running wsl --update, waiting for the download to finish, WSL successfully updated itself.
Running wsl --install archlinux, waiting for the download to complete, successfully installed the Arch Linux WSL version.

Actual Behavior

Whether updating WSL itself or downloading and installing a Linux distribution, an "Access Denied E_ACCESSDENIED" error appears immediately after the download begins, and the download and installation process is aborted straight away after the error occurs.
The issue exists on both my laptop and desktop.
For now, I can only update WSL by downloading MSIXBUNDLE or MSI format installation packages from the releases page of this repository — those work fine.
I can also install Linux distributions normally through the Microsoft Store, but wsl --install does not work.
Right-clicking PowerShell or Command Prompt and selecting "Run as administrator" makes no difference either — it has the same effect as running sudo pwsh.

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    installFailure to install

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions