2

I couldn't download anymore with youtube-dl so I uninstalled it and followed this post https://askubuntu.com/a/380460/408472 and I still can't download anything. Now I get an ERROR: Signature extraction failed. Where it encourages me to update youtube-dl.

So I type youtube-dl -U and I get this:

ERROR: no write permissions on /usr/local/bin/youtube-dl
Rin007
  • 83

2 Answers2

8

The -U flag updates youtube-dl.

To do this, you need root permissions to write in /usr/local/bin/. Try running it again with sudo.

sudo youtube-dl -U
camconn
  • 1,894
2

Those commands should update the script (as well as install it), so you don't need to run youtube-dl -U, you can run them again to update it to the latest version.

However, if you want to run youtube-dl -U, you can use:

sudo chown $USER:$USER /usr/local/bin/youtube-dl

to make your user the owner of the file, and then you should have write access.

Wilf
  • 30,732