winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Uninstall zip-based package hangs

Open aslze opened this issue 1 year ago • 8 comments

Brief description of your issue

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

  • https://github.com/microsoft/winget-cli/issues/3085

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

aslze avatar Mar 06 '24 22:03 aslze

Maybe related to:

  • https://github.com/microsoft/winget-cli/issues/2806
  • https://github.com/microsoft/winget-cli/issues/3859

aslze avatar Mar 06 '24 22:03 aslze

This looks related to:

  • #3279

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

mdanish-kh avatar Mar 07 '24 03:03 mdanish-kh

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.

aslze avatar Mar 07 '24 23:03 aslze

m

Sent from my Galaxy

-------- Original message -------- From: aslze @.> Date: 2024-03-07 6:36 p.m. (GMT-05:00) To: microsoft/winget-cli @.> Cc: Subscribed @.***> Subject: Re: [microsoft/winget-cli] Uninstall zip-based package hangs (Issue #4242)

This looks related to:

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.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/winget-cli/issues/4242#issuecomment-1984782467, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AURWANCGHR3QQIQL4VV3QWDYXD2XVAVCNFSM6AAAAABEJ3SSP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBUG44DENBWG4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Stuntman58 avatar Mar 08 '24 00:03 Stuntman58

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.

aslze avatar Mar 08 '24 16:03 aslze

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?

mdanish-kh avatar Mar 10 '24 10:03 mdanish-kh

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.

aslze avatar Mar 11 '24 14:03 aslze

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

jamesdrake101 avatar Oct 15 '24 21:10 jamesdrake101