Ubuntu – Youtube-dl Playlist Error

command lineyoutubeyoutube-dl

I got the following when I tried to update youtube-dl:

amrat@amrat-GA-78LMT-USB3:~$ sudo youtube-dl -U
[sudo] password for amrat: 
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.
amrat@amrat-GA-78LMT-USB3:~$ 

What does it mean?

I installed the program using the terminal.

I also get this error:

WARNING: unable to set language: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
[youtube] ST_WC13rNJo: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

Please advise.

Best Answer

You would be best to remove the Repository youtube-dl which rarely copes with downloading videos or upgrading itself and install instead directly from the developer's website:

sudo apt-get remove youtube-dl
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

And then from time to time update your version with:

sudo youtube-dl -U

Current version reports the following:

andrew@ilium~$ youtube-dl --version
2016.08.01
andrew@ilium~$ 

And this version has no issues with any current YouTube videos and/or playlists that I tested it with...

References: