youtube downloading problem

Asked by HASHIR

while i am trying to download video from youtube down-loader [ youtube-dl ], the following error is coming:

hashir@hashir-laptop:~$ youtube-dl http://www.youtube.com/watch?v=XnOsfQB5NPg
[youtube] Setting language
[youtube] XnOsfQB5NPg: Downloading video info webpage
[youtube] XnOsfQB5NPg: Extracting video information
ERROR: format not available for video
hashir@hashir-laptop:~$

please help me to solve the issue.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu youtube-dl Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Buchbinder
Solved:
Last query:
Last reply:
Revision history for this message
Best Adam Buchbinder (adam-buchbinder) said :
#1

Your youtube-dl is outdated. Run "youtube-dl -U" to get the newest version, then re-run that command there; doing that worked for me.

Revision history for this message
HASHIR (h2hashir) said :
#2

while trying to do like that following problem is coming

hashir@hashir-laptop:~$ youtube-dl -U
ERROR: no write permissions on /usr/bin/youtube-dl
hashir@hashir-laptop:~$

Revision history for this message
HASHIR (h2hashir) said :
#3

Thanks Adam Buchbinder, that solved my question.

Revision history for this message
Adam Buchbinder (adam-buchbinder) said :
#4

Pardon me; you should run "sudo youtube-dl -U" to update it.