LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-02-2023, 10:08 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Rep: Reputation: Disabled
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.
 
Old 09-02-2023, 10:48 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
The command is not found because it is now yt-dlp.
 
1 members found this post helpful.
Old 09-02-2023, 10:52 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
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).
 
Old 09-02-2023, 10:59 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,150

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Try these commands
Code:
whereis youtube-dl
apt-cache showpkg youtube-dl
Actually, I think you will find yt-dlp rather better: new features
That's a new fork, not a rename as claimed at #2

Last edited by DavidMcCann; 09-02-2023 at 11:01 AM.
 
1 members found this post helpful.
Old 09-02-2023, 11:15 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
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.
 
Old 09-02-2023, 12:05 PM   #6
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557

The software responsible for "...but can be installed with:" is command-not-found.

The logic seems to blindly check for a package matching the requested command's name without checking if that package actually provides that command.
//sources.debian.org/src/command-not-found/23.04.0-1/CommandNotFound/CommandNotFound.py/#L297

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).

Anyhow, the youtube-dl package in Debian 12 / Bookworm no longer contains the youtube-dl command (the one in Debian 11 Bullseye did).
//packages.debian.org/bookworm/all/youtube-dl/filelist
//packages.debian.org/bullseye/all/youtube-dl/filelist

There is a bug report against the youtube-dl package showing this is deliberate - and confirms it was clearly documented in the release notes.

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.

 
1 members found this post helpful.
Old 09-02-2023, 12:06 PM   #7
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Cast YouTube Videos From Your Phone To Raspberry Pi Using YouTube On TV (youtube.com/tv) LXer Syndicated Linux News 0 04-16-2021 01:30 AM
LXer: Gnash 0.8.8 Claims To Support All YouTube Videos, But Is It Good Enough? LXer Syndicated Linux News 1 08-24-2010 12:23 PM
LXer: Gnash 0.8.8 Has VA-API, Claims 100% YouTube Compatibility LXer Syndicated Linux News 0 08-24-2010 04:00 AM
Realplayer claims it can't find "libstdc++.so.5" mynameisflorian Linux - Software 7 10-25-2005 11:09 PM
rpm -q claims "installed" but rpm -ivh claims "already installed" topgunjones Linux - Software 3 01-29-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration