1

Having difficult time using or downloading videos from Youtube it keeps saying

bash: /usr/local/bin/youtube-dl: Permission denied

I don't even know if I installed it correctly. My OS is Ubuntu 15.10 64.

David Foerster
  • 36,890
  • 56
  • 97
  • 151
En20
  • 21
  • 1
  • 3

2 Answers2

2

It's possible the executable does not have the correct permissions.

For it to be in /usr/local/bin/youtube-dl, you probably ran it with a sudo make install or similar. it's in there as root:root which is fine, but it's not going to work right.

Let's set the executable bit: sudo chmod +x /usr/local/bin/youtube-dl

Then try and use youtube-dl.

Thomas Ward
  • 78,878
0

Try to install it via pip3

At first intall python3-pip python-pip

 sudo apt-get install python3-pip python-pip

then

 sudo pip3 install --upgrade youtube-dl
kenn
  • 5,232