Ubuntu – ERROR: “token” parameter not in video info in youtube-dl


This error occurred when using youtube-dl:

[youtube] 1234567890A: Downloading webpage
[youtube] 1234567890A: Downloading video info webpage
ERROR: 1234567890A: "token" parameter not in video info for unknown reason;   
please report this issue on https://yt-dl.org/bug. 
Make sure you are using the latest version; type youtube-dl -U to update.   
Be sure to call youtube-dl with the --verbose flag and include its complete output.

I tried to uninstall youtube-dl and reinstall it, but this error reoccurred.

Best Answer

Update youtube-dl to the latest version.

sudo youtube-dl -U # no longer supported in Debian-based systems 

If youtube-dl cannot be updated with this command, install the latest version of youtube-dl using Alternative Python package installer (pip).

sudo apt-get remove youtube-dl
sudo apt-get install python-pip  
pip install --user youtube-dl  

In Ubuntu 14.04 and later youtube-dl is a snap package. To install it:

sudo snap install youtube-dl

The youtube-dl snap package will be updated automatically in the background when updates become available.

Related Question