I am having no luck getting youtube-dl
installed on my 20.04 system. Here's what I have tried:
sudo apt-get install youtube-dl
RESULT: The command executes OK, but when I try to download anything I get errors. I checked the version:
$ youtube-dl --version 2020.03.24 $ which youtube-dl /usr/local/bin/youtube-dl
I assume I got an old version of
youtube-dl
because Ubuntu's repo is out-of-date?
So, searching for solutions led me to try this:
pip3 install --upgrade youtube-dl
This attempt being a highly up-voted answer here on SE.. But first - removed the apt-installation using
sudo apt-get remove youtube-dl
But when I check to verify the version, I remain stuck at the old version!
$ youtube-dl --version 2020.03.24
So let's move that out before trying something else:
$ pip3 uninstall youtube-dl Found existing installation: youtube-dl 2020.11.26 Uninstalling youtube-dl-2020.11.26: Would remove: /home/walker/.local/etc/bash_completion.d/youtube-dl.bash-completion /home/walker/.local/etc/fish/completions/youtube-dl.fish /home/walker/.local/lib/python3.8/site-packages/youtube_dl-2020.11.26.dist-info/* /home/walker/.local/lib/python3.8/site-packages/youtube_dl/* /home/walker/.local/share/doc/youtube_dl/README.txt /home/walker/.local/share/man/man1/youtube-dl.1 Proceed (y/n)? y Successfully uninstalled youtube-dl-2020.11.26
Whoa!? I just un-installed the current version!
sudo snap install youtube-dl
Aka "Method 2" from this website, which went as follows:
$ sudo snap install youtube-dl youtube-dl 2020.11.17+gitd65d891 from Joe Borg (joeborg) installed $ youtube-dl --version bash: /usr/bin/youtube-dl: No such file or directory $ which youtube-dl /usr/local/bin/youtube-dl
Which leaves me confused and bewildered beyond repair. I have used youtube-dl
for over a year now & installed on macOS & Debian systems - with no problems. I know Ubuntu is different, but... this is confusing.
How do I fix this?
youtube-dl
is a 'universe' or Community Supported package. It gets updated only when a user detects issues, and files a bug on it (I've done it in the past, usually it's fixed within a day or two, but it'll depend on the volunteers time availability). My own Ubuntu has 2020.11.21.1 according toyoutube-dl --version
installed, but I'm not on focal. In your case I'd file a bug (ie. request to update).. but it's up to you (updates occur regularly due to google's constant changes). – guiverc Nov 29 '20 at 01:36