-
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
Failed in attempting to update the source: winget #1656
Comments
Can you run that command with Also: does |
Unfortunately, no logs are shown, and the command does not help either. ➜ winget source reset --force
This command requires administrator privileges to execute.
➜ gsudo winget source reset --force
Resetting all sources...Done
➜ winget upgrade
Failed in attempting to update the source: winget
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires current machine's geographic region to be sent to function properly.
Do you agree to all the source agreements terms?
[Y] Yes [N] No: y
No installed package found matching input criteria.
➜ winget upgrade Microsoft.Teams --verbose-logs
Failed in attempting to update the source: winget
No applicable update found. |
|
Oops, got it. |
I'm not sure what exactly is wrong with your system, but winget is failing to deploy the latest source file. Here are some things that might help you recover:
I agree that there is potentially something that we could do here to recover in a more automated fashion, although it would most likely be automating the removal to hopefully enable a new installation to just work. If that doesn't do it we would probably need to understand what was actually wrong to be able to mitigate. |
Thank you very very much for the detailed suggestions, but unfortunately none worked. :( ➜ gsudo winget source remove winget
Removing source: winget...
An unexpected error occurred while executing the command:
Operation failed: Deployment Remove operation with target volume C: on Package Microsoft.Winget.Source_2021.1027.1909.482_neutral__8wekyb3d8bbwe from: (Microsoft.Winget.Source_2021.1027.1909.482_neutral__8wekyb3d8bbwe) failed with error 0x80070057. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
0x80070057 : The parameter is incorrect. |
Reset-AppxPackage Microsoft.Winget.Source_2021.1027.1909.482_neutral__8wekyb3d8bbwe This didn't help either (there was no output from this command). |
Ok, looks like you are in uncharted territories of broken. I would suggest filing feedback using https://aka.ms/appdepuif and performing any one (or all) of these actions during the repro recording step. That will collect logs from the appropriate area given the issues you are having. And also crashing Settings is a nice find, that should never happen. The owning team should see those crashes already, no extra steps required. It might be possible to figure out how to help you from the logs but I have doubts if you can't even remove the package. |
Update: reinstalling Windows on top of the existing installation (with the Media Creatin Tool) didn't help. Regardless, thank you very much for the help! |
Just for completeness, I also tried to So I ended up by doing a clean install (and of course it's working now). Lesson taken: never make registry changes without a backup. |
I just managed to fix this by installing the pre-release from https://github.com/microsoft/winget-cli/releases |
why the bug issue is closed without fixing it? clean installing windows os isn't a reasonable solution. |
I closed the issue because in my case, other parts of Windows (apart from Winget) were also broken as mentioned here. Is it your case as well? |
yap. it's still the same in my case |
So, I think in this sense, this bug isn't much of Winget's concern but rather Windows itself. As mentioned in #1656 (comment), perhaps the best would be to report in the Windows Feedback Hub. |
Running If you're having issues deploying the latest source file, it's likely an issue on your end; try seeing if you can repair your current installation of Windows by installing Windows on top of your current installation. |
Ah I see what you mean. It saves a few temporary files to |
In my case I was using the 1.4 preview version reinstalling the latest 1.3.x stable version fixed the issue. |
Thanks man, it worked for me! I had the same error as OP I've run first: Thanks again. |
Exactly the same here! |
Same things have happened on my main Windows 10 and on another machine with recently installed Windows 11 onboard. |
running the command: |
Can confirm I'm also getting Things I've tried that don't work:
For me
I can |
I have resorted to running the following command in an administrator-elevated PowerShell whenever I want to use winget winget source reset --force && winget upgrade and then do my update,..... |
I had the same error, but found the solution: just run winget from the administrator-privileged command line:
Good luck! |
I recently ran into this error message after installing WingetUI. If installed, your attempt to run Exit one of the instances, such as WingetUI to avoid this message in shell...and likely vice-versa. |
The following steps worked for me: Note: This is the only solution that worked for me. I am 80% certain that this issue was caused by Uninstall Step 1: Troubleshooting
Step 2: Repair System Files
Hopefully this fixes the issue for you too. |
For me, simpler fix: Non elevated had this:
Elevated:
Non elevated prompt, after elevated source update (no "failed in attempting to update the source" line):
|
To anyone who get this: yeah. the one from https://cdn.winget.microsoft.com/cache/source.msix as stated in Here TLDR: the error code is E_INVALIDARG |
If you have tried all the suggestions on this issue and still could not solve the problem your issue could be caused due to wrong permissions on the winget installer download directory. Symptoms:
Cause:Nonadmin user has no permissions to the winget installer download directory:
May be related to #3322 Solution:Correct the permissions on the |
this help me [all happens on remote machines]
Will there come a time when I can do everything with cmd (pwsh) in winows became? |
I have the same issue and I solved it by using VPN. So funny right? But that's true. I am in Turkey, in İstanbul, by the way. |
(Kudos to @biyiklioglu for the solution) |
Since yesterday I am having this issue too...... winget source update,no effect download and install https://cdn.winget.microsoft.com/cache/source.msix |
Unfortunately, this above step just results in:
and no changes to the problem. |
What ended up
|
didn't worked to me :c |
yeh sorry, it worked for one or two commands for me just fine and reverted back. i think at one point in the past this exact thing started happening because of an expired certificate, so that's my bet.
|
I also think this is a problem with the upstream repository, as this appears to have started sometime yesterday for everybody at around the same time that the App Installer package was updated. The error is happening to me somewhat randomly; currently it's working if I run |
Also having the same issue... One interesting thing to note is that https://cdn.winget.microsoft.com/cache/source.msix sometimes seems unavailable, I have to try ~2-3 times to download it. |
I am also facing this issue atm, has anyone discovered a fix yet ? |
Same issue. Any fixes?
System Windows: Windows.Desktop v10.0.22621.2283 |
This works for me as a temporary fix for now. Steps:
|
Ok, so for everyone who is here right now, having the exact same issue as everyone else, read the pinned issue #3652 |
Thanks @Dvd-Znf, I hadn't seen the chatter here. I'll lock discussions to reduce notifications on this Issue. |
Brief description of your issue
I don't know exactly when this started to happen, but I'm pretty sure that it was after I ran some cleanup with CCleaner and BCUninstaller when I had some issues to uninstall a few of my programs.
Now, every time I try to run
winget install
orwinget upgrade
it fails with this error. Wheninstall
, it fails but continues anyway.I know this was probably my fault, but still, I think it would help the community to share what to do when it happens, or better yet: to allow
winget
to recover itself when such things happens.I tried to do some things already, such as upgrading, downgrading (the winget cli), but none helped. I also tried to uninstall the "App Installer" but I could not find a way to do it, so that I could try to reinstall.
I also noticed that a previous issue was opened for this, but the solution mentioned isn't working for me: #1066
Steps to reproduce
I'm not sure. But I would be happy to provide any information required.
Expected behavior
To not fail with this error.
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: