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

[Package Issue]: Gyan.FFmpeg #181353

Open
2 tasks done
Cayincc opened this issue Oct 11, 2024 · 11 comments
Open
2 tasks done

[Package Issue]: Gyan.FFmpeg #181353

Cayincc opened this issue Oct 11, 2024 · 11 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Cayincc
Copy link

Cayincc commented Oct 11, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Other

Brief description of your issue

I can't uninstall, upgrade, and repair

Steps to reproduce

## uninstall error
winget uninstall --id "Gyan.FFmpeg" 
## upgrade error
winget upgrade --id "Gyan.FFmpeg"
## repaier error
winget repair --id "Gyan.FFmpeg"

Actual behavior

error

Expected behavior

no error

Environment

Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4317
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories

Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads

Links

Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting State

LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled

Screenshots and Logs

Image
WinGet-2024-10-11-12-20-12.499.log

@Cayincc Cayincc added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Oct 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Oct 11, 2024
@aisgbnok
Copy link
Contributor

aisgbnok commented Oct 11, 2024

Did you install Gyan.FFmpeg as machine scope using an elevated/admin prompt?

Try:

winget list --id Gyan.FFmpeg --scope user

If it states No installed package found matching input criteria., then it is installed as machine scope and you will need to perform the upgrade or uninstall in an elevated shell.

winget upgrade --id Gyan.FFmpeg --scope machine

If not, and it does list it as user scope, then I'm not sure.

@Cayincc
Copy link
Author

Cayincc commented Oct 11, 2024

Image
Thank you for the suggestion, but It didn't solve my problem.

Did you install Gyan.FFmpeg as machine scope using an elevated/admin prompt?

Try:

winget list --id Gyan.FFmpeg --scope user
If it states No installed package found matching input criteria., then it is installed as machine scope and you will need to perform the upgrade or uninstall in an elevated shell.

winget upgrade --id Gyan.FFmpeg --scope machine
If not, and it does list it as user scope, then I'm not sure.

@aisgbnok
Copy link
Contributor

aisgbnok commented Oct 11, 2024

Thank you for the suggestion, but It didn't solve my problem.

Interesting, it doesn't upgrade for machine or user scope, but lists for user scope.

You can try resetting the winget source. This will remove all sources except the default, which are msstore and winget, as well as reset them.

In an elevated shell:

winget source reset --force

https://learn.microsoft.com/windows/package-manager/winget/source


If you want to check your sources the default looks like:

winget source list
Name    Argument                                      Explicit
--------------------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 false
winget  https://cdn.winget.microsoft.com/cache        false

@Cayincc
Copy link
Author

Cayincc commented Oct 11, 2024

Image
This method doesn't work for me.

@aisgbnok
Copy link
Contributor

aisgbnok commented Oct 12, 2024

Is FFmpeg active on the system, and where is it located?

> Get-Command ffmpeg | Format-List

Name            : ffmpeg.exe
CommandType     : Application
Definition      : C:\Program Files\WinGet\Links\ffmpeg.exe
Extension       : .exe
Path            : C:\Program Files\WinGet\Links\ffmpeg.exe
FileVersionInfo : File:             C:\Program Files\WinGet\Links\ffmpeg.exe

Note that I installed FFmpeg at the machine scope so it is in program files. Yours should be in your user appdata because yours is apparently user scope.

> ffmpeg -version
ffmpeg version 7.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)

I just want to confirm it is actually installed and working, but winget just can't seem to find/update it.

@LIMUNADE
Copy link

Absolutely the same issue for me.

@Cayincc
Copy link
Author

Cayincc commented Oct 14, 2024

Image
It looks right

@stephengillie stephengillie removed the Needs-Triage This work item needs to be triaged by a member of the core team. label Oct 14, 2024
@stephengillie
Copy link
Collaborator

@lackovic
Copy link

lackovic commented Nov 6, 2024

I had the same problem:

> ffmpeg
ffmpeg : The term 'ffmpeg' is not recognized as the name of a cmdlet

I noticed winget listed it as installed:

> winget list --id Gyan.FFmpeg --scope user
Name   Id          Version Source
----------------------------------
FFmpeg Gyan.FFmpeg 7.1     winget

but when I tried to uninstall it I got this message:

> winget uninstall --id Gyan.FFmpeg
No installed package found matching input criteria.

So I uninstalled it from Windows Add or remove programs GUI and after installing it again with winget it started working as expected.

@Anutrix
Copy link

Anutrix commented Nov 8, 2024

Faced the same issue. Couldn't uninstall via winget in any way with either scope.
Uninstalled from Control Panel.

Then tried it again:

PS C:\Users\Anutrix> winget install Gyan.FFmpeg
Found FFmpeg [Gyan.FFmpeg] Version 7.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/GyanD/codexffmpeg/releases/download/7.1/ffmpeg-7.1-full_build.zip
  ██████████████████████████████   169 MB /  169 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Path environment variable modified; restart your shell to use the new value.
Successfully installed
PS C:\Users\Anutrix> winget uninstall Gyan.FFmpeg
No installed package found matching input criteria.

We can install but cannot uninstall. This is fresh installation.

Uninstalled it again from Control Panel and tried the same steps with --scope machine in elevated terminal. Exact same issue.
We can install it but cannot uninstall it.

Worst part is that even after uninstalling from Control Panel, it doesn't go away:

PS C:\Users\Anutrix> cmd.exe /c where ffmpeg
C:\Program Files\WinGet\Links\ffmpeg.exe

Image

The symlinks/shortcuts and binaries are all still there.

@aisgbnok
Copy link
Contributor

aisgbnok commented Dec 5, 2024

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

No branches or pull requests

6 participants