Ubuntu: accidently deleted /usr/local/bin/youtube-dl



Question:

I accidently deleted /usr/local/bin/youtube-dl folder. Now I am unable to neither install nor update youtube-dl.

How do I fix it or undo it ?

I tried :

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

Now the /usr/local/bin/youtube-dl folder has come back but i am unable to download any videos using youtube-dl.


Solution:1

Try -

sudo mkdir -v -p /usr/local/bin

sudo curl https://yt-dl.org/downloads/2016.02.05.1/youtube-dl -o /usr/local/bin/youtube-dl

sudo chmod a+rx /usr/local/bin/youtube-dl


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »