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-dlRESULT: 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-dlI assume I got an old version of
youtube-dlbecause Ubuntu's repo is out-of-date?
So, searching for solutions led me to try this:
pip3 install --upgrade youtube-dlThis attempt being a highly up-voted answer here on SE.. But first - removed the apt-installation using
sudo apt-get remove youtube-dlBut when I check to verify the version, I remain stuck at the old version!
$ youtube-dl --version 2020.03.24So 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.26Whoa!? I just un-installed the current version!
sudo snap install youtube-dlAka "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?