Skip to content

winget does not run in WSL2 due to exec format error #234

Description

@mdales

Brief description of your issue

When invoking winget from WSL it does not run due to exec format error

Steps to reproduce

I run $HOME/AppData/Local/Microsoft/WindowsApps/winget.exe

Expected behavior

Winget shows me a list of command options

Actual behavior

Failed to execute process '/mnt/c/Users/mdale/AppData/Local/Microsoft/WindowsApps/winget.exe'. Reason:
exec: Exec format error
The file '/mnt/c/Users/mdale/AppData/Local/Microsoft/WindowsApps/winget.exe' is marked as an executable but could not be run by the operating system.

Environment

WSL2 with Ubuntu, running on slow ring insider build 19041. Winget does run from PowerShell. The path I used is from Get-Command winget in Powershell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions