How to update youtube-dl using terminal [duplicate]

I use youtube-dl command for downloading the videos from Youtube. But now it is not working. So I thought it need to be update. I used youtube-dl -U to update, but they show the following message:

message shown by Terminal

So what should now I do?


Solution 1:

To update from command line, use the following:

sudo apt-get update
sudo apt-get dist-upgrade

Solution 2:

To update type the following in command line

sudo apt-get update && apt-get upgrade