-
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
Uninstallation: No installed package found matching input criteria.
(--name/--id behaviour)
#3093
Comments
ps: i saw the ticket #1886 but |
Try using the full name - |
@Trenly hi, yes, in the end as i wrote in the first post, i made it work with that exact command. But then, if that's the problem, the message Also, why doesn't If you or anyone else can confirm that's the case, i'll open 2 different issues (one for the misleading message, one for |
Because of #1886 - The |
After looking in more depth, I think this gets back to the fact that I added a logging statement into the code to log the number of search results in the
wingetdev list '.NET Framework'.log The message is accurate, as it doesn't actually find the package. Similarly, when searching by the ID, there are also 0 results found. This seems to be due to an issue where multiple strong matches are found, which relates back to the initial implementation of package-version matching. @denelon can probably tag this with |
Oh i see, i didn't think it was applicable to my situation too, as i couldn't uninstall any package, not even an incorrect one.
(just FYI, the 2nd link is broken, it's missing an additional ".log" at the end of the URL) I'm going to comment the other issues, you can close here if it's a dupe. Thanks |
Quick fix would be to change the error message to read "Multiple results found when single package query is required." This would cause your customers 😊. Additionally, the help text should be as opposed to list --help: |
Brief description of your issue
Hi
i was trying to update MPC-HC and i discovered that somehow i had 2 versions installed, 1.x and 2.0 (which is the last stable version).
winget reported that the 1.x version had an update available, to the already installed 2.0 version.
So i simply tried to remove the old version but i could not do it in any way.
There seems to be 2 different problems, one with
--name
, one with--id
.See sections below for details.
I finally found a way by specifying the exact name with quotes:
Steps to reproduce
have those 2 versions installed then try to remove the old one
Expected behavior
the correct version is found via
--id
(and possibly--version
) or via--name
, and removedActual behavior
--id
it doesn't work at all, with or without
--version
:--name
winget uninstall --name XXX
doesn't work likewinget list --name XXX
. Why is that?Environment
The text was updated successfully, but these errors were encountered: