Reinstall youtube-dl on Ubuntu 18.04

First remove old version of youtube-dl if installed:

sudo apt-get remove youtube-dl

Next install latest version of youtube-dl and install it:

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

If you have an error such “/usr/bin/env ‘python’ no such file or directory youtube-dl” – thats meen than you does not have installed python, or you install python3. Install python by command:

sudo apt install python-minimal

Or you can start youtube-dl with python3:

python3 /usr/local/bin/youtube-dl

Or you can create symbolic link python3->python with following command:

sudo ln -s /usr/bin/python3 /usr/local/bin/python

2 thoughts on “Reinstall youtube-dl on Ubuntu 18.04”

  1. Wow, fantastic blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your web site is wonderful,
    let alone the content!

  2. This is the perfect web site for anybody who wants to understand this topic.
    You know a whole lot its almost tough to argue with you (not that I really will need to…HaHa).
    You definitely put a new spin on a topic that’s been written about for years.
    Great stuff, just great!

Comments are closed.