-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
0x80070005 : Access is denied #2930
Comments
Can you share the output from I'm looking to see which version of the "winget" source you have installed. It's the second entry from my system below:
|
I'd like to throw my hat into the ring here - I'm experiencing the same error, but only when attempting to uninstall a package. This behavior persists after doing several clean installs on my PC with the latest available Windows 11 Pro ISO straight from MS with all updates installed. In the past I was able to "winget uninstall" pretty much any package on the system without an issue. Cortana for example. However, when I attempt to do so now, it results in the access denied error, and I have to run terminal as admin in order to process the command. I'm definitely using an Administrator account, and I've tested this in a few VMs without problems, but oddly the issue persists on bare metal. Here are the results when I run the
Also, here's the output of running
|
@litbeep I think you may have been hit by: We've merged the fix, but it hasn't been released yet. |
@KineticTheory this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Still happening with latest winget, but only Microsoft store packages are affected |
It isn't at all solved though. |
I am experiencing the same behavior described in the original post, including the fact that All Worth noting that this was not always the case for me. The problem first arose for me a few months back, after I had already been using Here's my winget list winget
Failed in attempting to update the source: winget
Name Id Version Source
-------------------------------------------------------------------------------------------------------
App Installer Microsoft.AppInstaller 1.21.3482.0 winget
Microsoft.UI.Xaml.2.8 Microsoft.UI.Xaml.2.8 8.2310.30001.0 winget
Microsoft.UI.Xaml.2.7 Microsoft.UI.Xaml.2.7 7.2208.15002.0 winget
Windows Package Manager Source (winget) Microsoft.Winget.Source_8wekyb3d8bbwe 2024.215.2314.757 |
I am experiencing the very same issue as @dxman in a non-elevated shell. The components list (note the diffference in the minor patch numbering of WPMS/winget):
|
My problem is gone, I could fix it by myself. Cause: the Fix: deleted this |
Verified that @gitarian 's solution worked for me. In my case, the offending |
It's not solved. I'm having this problem. On my old computer this worked. @denelon From git bash:
|
Still the same for me too |
Just a bit of additional info I've since discovered, to help any future users reading this: I believe my issue was caused by trying to use |
Thanks you both. The exact problem drove me crazy for weeks and I already suspected IT Central to have "tightened the thumb screws" 🙈 As in your case: gsudo may have been the culprit. |
Incase it might help others: I had the same problem on my machine. It occurred after I uninstalled a package. During the uninstall process I was asked to enter admin password. I did, and I guess then the access rights of %localappdata%\Temp\WinGet were changed. |
This fixed the same issue for me today with UnigetUI which wouldn't install via windows store with the same error code 0x80070005. Surprised this hasn't been fixed? |
Brief description of your issue
When I run any
winget install
command, the result is0x80070005 : Access is denied.
winget
, rebooting, and reinstalling. This did not help.Steps to reproduce
powershell
vim
shown here)winget
and theunexpected
error.Expected behavior
I expect that
winget
will be able to update its own sources and that it can install software.Note: If I log in as
Administrator
, I don't see these errors. Everything works normally in an elevated account. This indicates that I might have a permissions issue, but I don't know how to triage further.Actual behavior
Log file:
WinGet-2023-02-06-13-16-47.466.log
%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
does not exist.Environment
[Edit] More information as requested from questions below:
The text was updated successfully, but these errors were encountered: