-
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
Upgrade or Install 0x87af0001 SQL logic error #1999
Comments
I get the same error with
winget information:
What can we do to help more information for debugging? |
UPDATE: Since I could not solve it by resetting it or using troubleshooter, I removed winget at all. I used |
I was having the same problem recently. I deleted the "installed.db" file and solved the problem. The location of the file "installed.db":
|
Weeks of headaches, and solution was that simple |
It seems like winget needs a background integrity check for SQLite. Then a background repair or ideally rebuild of database would be cleaner for user experience. |
I'm having the same problem. But by deleting the installed.db file, I don't get any changes and the error still occures. Any other solution? |
So, as I see, is this a bug that will be patched with the release of the v1.4 o this software (winget-cli), or it's an error that I and we can resolve trough specific commands or other operations? Thanks |
If someone could provide the |
I'm open to collaborate to do that. I need to know how I can output a verbose version of the logs and how can I supply the installed.db content. Thanks |
So, I managed to output the --verbose-logs for the command |
That helps to show that something strange is happening here... The most SQL basic statement is not compiling. If you (or anyone else) could attach the installed.db from |
Ok. I will try to do that |
Ok. I don't know how. This morning I started my Laptop, tried to upgrade --all with winget, and it all works clean. Also listing an installing. The problem seems to be gone by itself. If you want I can provide the installed.db file, but I don't think you can now recreate the error |
I've also recently been having this issue. I tried deleting my |
No, unfortunately those files did not help. SQLite uses hidden/system files to store some data that may not have been merged into the main file. It is possible that you still have something in those files that is affecting things. I have created a PR (#2352) to improve the logged error message, which might hopefully enable getting to the bottom of the issue. |
Found this issue after running into the same error on Windows Insider build 25217, winget version v1.4.2161-preview. It seems it's no longer possible to uninstall winget from the insider OS, so I couldn't "refresh" my installation to make it work. The updated error message (from #2352) listed the following:
I did finally find a solution. If I delete both of the following files, functionality is restored:
|
Another 'Me Too' entry. I have this problem on both Win10 and Win11. Deleting both installed.db files did not solve it for me (but thanks for the idea). |
I'm also having this issue. Have tried without success:
|
I had to install the app installer via the windows store and then I could do an update. as per Use the winget tool to install and manage applications | Microsoft Learn |
@TGSAN - Are you still experiencing this issue with the latest release of WinGet? |
I have reinstalled Windows, and it look like working now |
Reinstalling the whole Windows OS just because one single EXE stops working is completely unacceptable. This is not an option. Does this problem have to do with certificate issues and a change to winget by MS that breaks SSL decryption (MITM used by proxies)? |
Brief description of your issue
I get
0x87af0001 SQL logic error
message, when usewinget upgrade
orwinget install
.LOG FILE:
Steps to reproduce
winget upgrade
orwinget install packagename
Expected behavior
No error
Actual behavior
Get
0x87af0001 SQL logic error
messageEnvironment
The text was updated successfully, but these errors were encountered: