-
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
Winget is totally broken on my system #4683
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. 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. Thank you! Open similar issues:
Closed similar issues:
|
Here's the log output when running as the normal user. I did actually manage to get it working under an admin powershell instance.
|
Try running "as user" |
|
What results do you get when you run I'm suspecting something isn't correct with permissions on the default source package. |
|
Try running the following commands (as administrator):
Then run:
|
I get an error about another user being logged on, but I am the only user logged on.
|
Does the "Remove..." command work in "non-administrator"? |
|
Try |
You might have a different version installed. See if you can remove the "Windows Package Manager Source (winget)" from the Settings app under "Apps > Installed apps". |
I was able to remove it via the Settings GUI. |
OK, now try running |
|
Try installing the source using "https://cdn.winget.microsoft.com/cache/source2.msix" |
So that one seems to work in that I am able to update the source, but I still get an access denied error when I try to list or upgrade. |
I fixed the issue. For some reason the Winget folder in my user's temp directory |
Ok so something keeps flipping the folder back to being owned by my admin user. I have manually given my normal user read/write access though and I will monitor what happens. |
Yep something keeps changing the permissions of that folder and my normal user got kicked off. |
Have you tried enabling the self elevate experimental feature? |
I have not. How do you do that? |
Follow the instructions here: https://github.com/microsoft/winget-cli/blob/master/doc/Settings.md#configureselfelevate Let me know if that works or if you need more help! |
Same problem here. And after analysing, i found that if you run winget updates through UniGetUi (3.1.1) this happens. if you install the updates with winget-cli all is fine. -> But not on all machines. I think the difference could private user and company user, i have the problem only with my company notebook (EntraID / Active Directory). |
is not working on my site. |
Same issue on my system...
Also because there is no permission on |
Brief description of your issue
For a week now, the winget source in Winget is totally broken and will not work for package updates, package installs, nor package searches. When attempting to do
winget upgrade --all
I get an0x80070005 : Access is denied.
error. The funny part is I get this error when I run as a normal user which is funny because I shouldn't have to be admin to simply run an upgrade command; that generally kicks in when packages actually want to upgrade (which is the behavior I experienced before)Running the command under an admin powershell instance produces this error
It's also worth nothing I am on a preview, but this issue existed before I switched to a preview build as part of troubleshooting.
Steps to reproduce
Attempt to upgrade or install anything.
Expected behavior
I expect Winget to work like a functional package manager
Actual behavior
Winget is broken beyond belief.
Environment
The text was updated successfully, but these errors were encountered: