-
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
WinGet not installing the actual package when it has a dependency, and tries to install the dependency itself even though it is already present #4679
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Can you share the log files? You can open the flog older using |
Hi denelon, I already had the latest version, 7.0.1 and when I tried to update yt-dlp.yt-dlp, it tried to upgrade Gyan.FFmpeg to the exact same version, as shown in
I don't have access to my PC now, can only share that in a few hours or so. |
The problem still exists in the latest version. I had the latest version of ffmpeg installed (7.0.2 in this case) and it was working perfectly fine but when I tried updating yt-dlp here's what it outputs to the terminal:
Here are the logs for after this command was executed:
After I try updating yt-dlp, it doesn't update and it shows that I still need an update. It also messes with my ffmpeg installation. The only way I found to update yt-dlp was to remove it and then reinstall it which properly updated ffmpeg (even though it was on the latest version) and then installed the latest version of yt-dlp |
I too experience this issue.
What I didAttempt to upgrade
Verify
Check whether
Manually upgrade
Verify
Environment
Logs
It then attempts and fails to install some other packages (that I was able to manually resolve as well,) producing pretty identical output to the above. After that, it loops on reading the pinning database for hundreds of lines, with no deviation in output (below) before finally installing the
This indicates to me that it has been a problem for some time, as the |
Yeah, I can confirm this very occurrence and in general upgrading packages with dependencies is a dog's dinner. |
+1 As of 10th October 2024, this issue persists, yt-dlp can't be updated unless using a workaround, it will install the already installed and up-to-date FFmpeg. |
This issue is still here. Every single time there is an yt-dlp upgrade, ffmpeg is removed from the environment variables. I have to manually add the environment variable for ffmpeg. |
Brief description of your issue
So I'm trying to update the package
yt-dlp
.I type out the command
winget upgrade yt-dlp.yt-dlp
. WinGet will indicate that the package has a dependency on Gyan.FFmeg. That's alright, I already have it and I have the latest version too. The first thing winget does is download FFmpeg again and installs it, and after it does that, it "forgets" that its supposed to update yt-dlp in the first place and what's worse is that it messes up the environment variables, making me unable to access ffmpeg itself.So at the time of writing, the latest version of Gyan.FFmpeg is 7.0.1 and for yt-dlp.yt-dlp, it is 2024.07.25. I was trying to upgrade from version 2024.05.27. This is how the output looked like:
So the only way to go about installing this manually is by first removing yt-dlp and installing it again like:
So now, after restarting the terminal, yt-dlp now works fine but ffmpeg is still not recognised:
So now I try to install FFmpeg again and
Restarted terminal and still no ffmpeg in sight:
So now I remove ffmpeg and install it again:
FINALLY on restarting I can now use FFmpeg again:
All that to just update a package that has a dependency 😬
Steps to reproduce
winget upgrade yt-dlp
Expected behavior
I expected it to only update yt-dlp without trying to modify FFmpeg which is already present.
Actual behavior
Winget tries to re-install FFmpeg, messees it up, then I need to remove yt-dlp and install it, then remove FFmpeg and install it, just to get both packages working.
Environment
The text was updated successfully, but these errors were encountered: