Skip to content

Permission Denied when running from bash #228

@dflor003

Description

@dflor003

Brief description of your issue

Whenever you run an winget install from bash from git for windows, it always gives a message such as the following. Note: Tried this in Windows Terminal and Git for Windows bash terminal (Mingw64) and it had the same effect. Both times running as admin.

$ winget install powertoys
bash: /c/Users/.../AppData/Local/Microsoft/WindowsApps/winget: Permission denied

Interestingly enough, running it from cmd seems to work.

Steps to reproduce

  1. Install winget.
  2. Open up a bash terminal in Windows Terminal as admin
  3. Run winget install powertoys

Note: Running any other command such as winget --version also gives a permission denied error.

Expected behavior

Installs powertoys package

Actual behavior

Permission denied

Environment

Even running winget --version gives a permission denied error.

[winget --info]
Windows Package Manager v0.1.41331 Preview
Windows: Windows.Desktop v10.0.18362.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-ExternalIssue outside of winget-cli sourceIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions