terminal can't find youtube-dl to run, but nevertheless claims it is installed
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
terminal can't find youtube-dl to run, but nevertheless claims it is installed
I tried to youtube-dl a URL, but the terminal said
Code:
Command 'youtube-dl' not found, but can be installed with:
sudo apt install youtube-dl
Okay, so perhaps I forgot to install it after my last re-installation of this distro. So I tried to install it, and to my puzzlement found:
Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
youtube-dl is already the newest version (1:2021.12.17-2~mx21+1).
What? These messages are between them claiming I do and do not have youtube-dl installed. What could be going on?
I'm fully aware that youtube-dl is controversial; but I'm going to use it, as long as it's available and I'm confident in my judgment that my recording of a certain video is legal...
Last edited by newbiesforever; 09-02-2023 at 10:11 AM.
yes, the name of the package and the name of the executable are two different things. So you need to check it (and also you might need to check the location of it. Probably you need to adjust your PATH variable).
This is a new fork, but it provided youtube-dl command for convenience, until they dropped it. I am not sure what youtube-dl package apt installs, but since it has no youtube-dl command I assumed it is in actuality the new fork.
The command-not-found package depends on apt-file (which can do this), but it would appear at some point they stopped using it (a search only finds the changelog entries, not any usage).
The Bookworm youtube-dl package does depend on the yt-dlp package; personally, I would have also setup a /usr/bin/youtube-dl script which called "/usr/bin/yt-dlp --compat-options youtube-dl" so as to not break things.
Of course, this is all referencing Debian - the the presence of "~mx21+1" in the version suggests this is MX Linux (this should be stated in the first post!) and that MX Linux have modified something, so first step would be to check what they have modified.
In addition, if there aren't relevant release notes for upgrading MX Linux which mention this change, that should be reported as a bug to MX Linux.
Thanks, I suspected this--I was hearing something of such changes. I think I had heard of the existence of yt-dip but didn't know that it has effectively replaced youtube-dl.
Last edited by newbiesforever; 09-02-2023 at 12:07 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.