You are not logged in.
Pages: 1
I tried:
sudo youtube-dl -U
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.
So then I tried:
pip3 install --upgrade youtube-dl
That worked, updated to latest version
youtube-dl --version
2021.12.17
But then (even after sudo apt update):
apt-cache policy youtube-dl
youtube-dl:
Installed: 2021.06.06-1
Candidate: 2021.06.06-1
Version table:
*** 2021.06.06-1 500
500 http://deb.devuan.org/merged chimaera/main amd64 Packages
100 /var/lib/dpkg/status
Shows older version...
So how to fix??
Last edited by jpark (2022-01-08 01:05:02)
Offline
youtube-dl has been having a lot of update problems lately which has forced me to switch to yt-dlp which in my personal experience so far has been much better.
Regards
Offline
So how to fix?
There's nothing to fix. The package version will never change because that's how Devuan releases work.
The youtube-dl version has been updated by pip and is stored under /usr/local/bin/, confirm this for yourself with
which youtube-dl
Then try
# pip3 uninstall youtube-dl
which youtube-dl
youtube-dl --version
It isn't recommended to mix APT python packages with pip but in this case youtube-dl has to change regularly because YouTube modify their APIs to try and stop them and pip doesn't need any other dependencies for this package so it shouldn't wreck any system Python packages. Just don't make a habit of it
Obligatory xkcd link: https://xkcd.com/1987/
Brianna Ghey — Rest In Power
Offline
It isn't recommended to mix APT python packages with pip
Or you can install youtube-dl much simple (without pip and sudo) for you user only. Just
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o ~/.local/bin/youtube-dl
and
chmod +x ~/.local/bin/youtube-dl
What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
----+- Peter Kropotkin -+----
Offline
@Ron: you shouldn't use sudo to download stuff into your home directory. If you didn't use sudo with wget then you wouldn't need to use it with chmod either. Never use elevated privileges unless you have to.
See also https://en.wikipedia.org/wiki/Principle … _privilege
Brianna Ghey — Rest In Power
Offline
jpark wrote:So how to fix?
There's nothing to fix. The package version will never change because that's how Devuan releases work.
The youtube-dl version has been updated by pip and is stored under /usr/local/bin/, confirm this for yourself with
which youtube-dl
Then try
# pip3 uninstall youtube-dl which youtube-dl youtube-dl --version
It isn't recommended to mix APT python packages with pip but in this case youtube-dl has to change regularly because YouTube modify their APIs to try and stop them and pip doesn't need any other dependencies for this package so it shouldn't wreck any system Python packages. Just don't make a habit of it
Obligatory xkcd link: https://xkcd.com/1987/
After doing that uninstall, it shows the latest version installed at
/usr/local/bin/youtube-dl
I also then just did to remove the apt one:
sudo apt remove youtube-dl
So I guess it is fine to leave it that way, it seems.. I tried youtube-dl -U and didn't get the error message, nor did I have to use sudo..
Interesting, this seems to work best.
Thanks!
Last edited by jpark (2022-01-08 15:30:53)
Offline
@Ron: you shouldn't use sudo to download stuff into your home directory. If you didn't use sudo with wget then you wouldn't need to use it with chmod either. Never use elevated privileges unless you have to.
See also https://en.wikipedia.org/wiki/Principle … _privilege
I understand and agree with the principle of the link, but that is how it is listed on the websites, and that's how I did it. I never had a problem using either of them.
https://github.com/yt-dlp/yt-dlp#installation
Last edited by Ron (2022-01-08 16:52:55)
Offline
that is how it is listed on the websites
No it isn't. Read the site you have linked again — it installs the script to /usr/local/bin/, which would need sudo, but you have installed it to ~/.local/bin/, which does not need sudo.
I never had a problem using either of them.
Well no, there would be no "problem" using
sudo ls ~
but it's completely pointless and unnecessary because
ls ~
works just as well.
Brianna Ghey — Rest In Power
Offline
Ron wrote:that is how it is listed on the websites
No it isn't. Read the site you have linked again — it installs the script to /usr/local/bin/, which would need sudo, but you have installed it to ~/.local/bin/, which does not need sudo.
I see. I made an assumption when I made my first post in this thread (I have deleted the assumed part lest it cause problems for anybody who may read it and try it). Sorry to all. I do the installation as posted on the website (the image in my post above). I did not know this other way to install. Thanks to HoaS for (knowingly or unknowingly) pointing out my assumption.
Last edited by Ron (2022-01-08 18:13:23)
Offline
I just used Synaptic to install yt-dlp from Devuan repository (under Chimaera, using stable-backports). Problem solved. After all, all these weeks later youtube-dl has still not fixed the slowdown-issue (yt-dlp has fixed it, as have others).
Offline
I just used Synaptic to install yt-dlp from Devuan repository (under Chimaera, using stable-backports). Problem solved. After all, all these weeks later youtube-dl has still not fixed the slowdown-issue (yt-dlp has fixed it, as have others).
ha, just found this out today myself and can confirm yt-dlp has better speeds than youtube-dl, must be something to do with API.
i used pip to install it which should give the latest version.
pip3 install yt-dlp --user
need to make sure $HOME/.local/bin is on your $PATH
Last edited by hevidevi (2022-01-20 12:06:47)
Offline
i used pip to install it which should give the latest version.
The version in the Repository is identical to that currently available under GitHub (I checked before install). In addition, yt-dlp -U will auto-update (just like youtube-dl) and without any of that local-bin nonsense - I have two youtube-dl's because of delays in Jessie updates, but have fixed that in Chimaera by making use of backports.
Last edited by alexkemp (2022-01-20 12:46:05)
Offline
hevidevi wrote:i used pip to install it which should give the latest version.
The version in the Repository is identical to that currently available under GitHub (I checked before install). In addition, yt-dlp -U will auto-update (just like youtube-dl) and without any of that local-bin nonsense - I have two youtube-dl's because of delays in Jessie updates, but have fixed that in Chimaera by making use of backports.
good to know alexkemp. Ive alway used pip to stay up to date with youtube-dl,(now yt-dlp).. just my preference.
Offline
This is the latest version for yt-dl:
# youtube-dl -U
youtube-dl is up-to-date (2021.12.17)
Meaning that the dev has now resumed work on this project.
I'm using a different method of keeping yt-dl current. After installing via apt, somebody advised me to "overwrite" (re-link) the executable with a later version and then use the -U functionality (as root!) to keep said executable at the latest version. I can't recall ATM where I got it from, maybe on these forums?
Not pretty, but it works
Online
Use "yt-dlp". Seems old (March) but is actually upto date & works fine.
Offline
Use "yt-dlp". Seems old (March) but is actually upto date & works fine.
Latest release was July 6.
Offline
Offline
youtube-dl has been having a lot of update problems lately which has forced me to switch to yt-dlp which in my personal experience so far has been much better.
Regards
Agree completely, the first youtube-dl is lagging behind.
We can thank the good ol people at the RIAA for that.
Obviously sarcasm ;P
We shouldn't thank them, we should troll them.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
Use "yt-dlp". Seems old (March) but is actually upto date & works fine.
I've got to amend my own advice.
The Repository version of yt-dlp is still stuck at March & I found recently that YT has managed to throw another spanner into it's works, stopping it from downloading. I placed the GitHub linux version into .local/bin & it throws up errors but does get the job done:
$ /usr/bin/yt-dlp --version
2023.03.04
$ ~/.local/bin/yt-dlp --version
2023.07.06
Offline
alexkemp wrote:Use "yt-dlp". Seems old (March) but is actually upto date & works fine.
I've got to amend my own advice.
The Repository version of yt-dlp is still stuck at March & I found recently that YT has managed to throw another spanner into it's works, stopping it from downloading. I placed the GitHub linux version into .local/bin & it throws up errors but does get the job done:
$ /usr/bin/yt-dlp --version 2023.03.04 $ ~/.local/bin/yt-dlp --version 2023.07.06
Only two other options come to mind, use different distro, compile from source
By different distro, I mean one that is compatible with AUR.
Artix, Obarun, something?
I doubt anyone in their right mind would pick a systemdumb arch derivative though.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
yt-dlp version stable@2023.10.13
works.
Offline
$ yt-dlp --version
2023.07.06
$ apt search yt-dlp
Sorting... Done
Full Text Search... Done
youtubedl-gui/stable 3.0-2 amd64
GUI on yt-dlp (ie, youtube-dl) to download videos from a variety of sites
yt-dlp/stable,now 2023.03.04-1 all [installed]
downloader of videos from YouTube and other sites
$ ~/.local/bin/yt-dlp -U
Available version: stable@2023.10.13, Current version: stable@2023.07.06
Current Build Hash: 0556fff82db6c942a5dfbb9583e2896013847b28b95186b3800f730a8d5e0c0a
Updating to stable@2023.10.13 ...
Updated yt-dlp to stable@2023.10.13
Hurrah!
Thanks swanson.
Offline
Pages: 1