Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
bash-5.1$ sudo yt-dlp -U
Password:
Latest version: 2023.03.04, Current version: 2022.05.18
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 16, in <module>
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 881, in main
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 855, in _real_main
File "/usr/local/bin/yt-dlp/yt_dlp/update.py", line 107, in run_update
File "/usr/local/bin/yt-dlp/yt_dlp/update.py", line 79, in calc_sha256sum
IsADirectoryError: [Errno 21] Is a directory: '/usr/local/bin'
I put yt-dlp in my homedir and tried there. I tried as user root. Same error. Anybody got a quick fix? On Slackware64-15.0 here.
I'd assume the the -U option is for when you got it from the website. Mine came from my distro and it's the current 2023.03.04. Where did yours come from? Perhaps the question should have been put in the Slackware area.
yt-dlp does not have too many depends. Get the latest, and use it. I've never tried to let yt-dlp update itself. I don't want python anything installing stuff outside of the package manager.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.