Skip to content
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

Uninstall zip-based package hangs #4242

Open
aslze opened this issue Mar 6, 2024 · 8 comments
Open

Uninstall zip-based package hangs #4242

aslze opened this issue Mar 6, 2024 · 8 comments
Labels
Command-Uninstall Issue related to WinGet Uninstall Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package

Comments

@aslze
Copy link

aslze commented Mar 6, 2024

Brief description of your issue

winget uninstall ffmpeg (portable zip package) hangs forever in my PC.

May be related to the fact I attempted an update which also hung and so I interrupted it.

winget lists the new version (6.1.1) but the one installed is still (6.0). Repair or uninstall fail.

Steps to reproduce

This might not happen always and be due to the winget DB state or something. In my case just this:

winget uninstall ffmpeg

Expected behavior

Uninstall of the package. For a portable package this means deleting a few files and maybe removing links or an item in PATH.

Actual behavior

It says (I'm translating so it may not be exact):

Found FFmpeg [Gyan.FFmpeg]
Starting uninstall of package...

And it stays there with high CPU usage.

I checked the log and it does a lot of things, including several HTTP requests.

Environment

winget v1.7.10582

Windows: Windows.Desktop v10.0.19045.4046
Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

LocalManifestFiles                        off
BypassCertificatePinningForMicrosoftStore off
InstallerHashOverride                     off
LocalArchiveMalwareScanOverride           off
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 6, 2024
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package and removed Needs-Triage Issue need to be triaged labels Mar 6, 2024
@mdanish-kh
Copy link
Contributor

mdanish-kh commented Mar 7, 2024

This looks related to:

Can you try the workarounds listed in that issue to see if it unblocks the uninstall for you?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback Issue needs attention from issue or PR author label Mar 7, 2024
@aslze
Copy link
Author

aslze commented Mar 7, 2024

This looks related to:

* [Cannot upgrade/uninstall nested portables coming from an older version of WinGet #3279](https://github.com/microsoft/winget-cli/issues/3279)

Can you try the workarounds listed in that issue to see if it unblocks the uninstall for you?

It does look related. I don't have time now to look into it but I will. Thanks.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Mar 7, 2024
@Stuntman58
Copy link

Stuntman58 commented Mar 8, 2024 via email

@aslze
Copy link
Author

aslze commented Mar 8, 2024

I managed to clean this by manually uninstalling (from WinGet/Packages, PATH, Registry/uninstall). Then I could install again.

But winget should not hang forever in a situation like this.

@denelon denelon added Command-Uninstall Issue related to WinGet Uninstall and removed Needs-Attention Issue needs attention from Microsoft labels Mar 8, 2024
@mdanish-kh
Copy link
Contributor

I managed to clean this by manually uninstalling (from WinGet/Packages, PATH, Registry/uninstall). Then I could install again.

But winget should not hang forever in a situation like this.

Good to know that the workaround worked in unblocking the install. Do you happen to know if you installed this package way back with an older version of WinGet? (WinGet 1.4?) and whether you installed this from a user shell with Developer mode disabled in Windows?

@aslze
Copy link
Author

aslze commented Mar 11, 2024

I managed to clean this by manually uninstalling (from WinGet/Packages, PATH, Registry/uninstall). Then I could install again.
But winget should not hang forever in a situation like this.

Good to know that the workaround worked in unblocking the install. Do you happen to know if you installed this package way back with an older version of WinGet? (WinGet 1.4?) and whether you installed this from a user shell with Developer mode disabled in Windows?

That was months ago I think, possibly with an older version, but I don't know which.

@jamesdrake101
Copy link

Still broken for me, what a complete dog's dinner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Uninstall Issue related to WinGet Uninstall Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package
Projects
None yet
Development

No branches or pull requests

5 participants