The officially official Devuan Forum!

You are not logged in.

#1 2022-01-08 01:03:50

jpark
Member
Registered: 2021-03-18
Posts: 32  

[SOLVED] youtube-dl upgrade problem

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

#2 2022-01-08 09:41:28

Daniell
Member
Registered: 2022-01-01
Posts: 16  

Re: [SOLVED] youtube-dl upgrade problem

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

#3 2022-01-08 11:39:30

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] youtube-dl upgrade problem

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 wink

Obligatory xkcd link: https://xkcd.com/1987/


Brianna Ghey — Rest In Power

Offline

#4 2022-01-08 12:26:05

Ogis1975
Member
Registered: 2017-04-21
Posts: 307  
Website

Re: [SOLVED] youtube-dl upgrade problem

Head_on_a_Stick wrote:

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

#5 2022-01-08 14:28:37

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: [SOLVED] youtube-dl upgrade problem

Like Daniell above, I also have switched to yt-dlp.

Last edited by Ron (2022-01-08 18:06:57)

Offline

#6 2022-01-08 14:31:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] youtube-dl upgrade problem

@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

#7 2022-01-08 15:21:58

jpark
Member
Registered: 2021-03-18
Posts: 32  

Re: [SOLVED] youtube-dl upgrade problem

Head_on_a_Stick wrote:
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 wink

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

#8 2022-01-08 16:45:37

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: [SOLVED] youtube-dl upgrade problem

Head_on_a_Stick wrote:

@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

np1T368.jpg

Last edited by Ron (2022-01-08 16:52:55)

Offline

#9 2022-01-08 17:40:05

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] youtube-dl upgrade problem

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.

Ron wrote:

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

#10 2022-01-08 18:09:42

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: [SOLVED] youtube-dl upgrade problem

Head_on_a_Stick wrote:
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. smile

Last edited by Ron (2022-01-08 18:13:23)

Offline

#11 2022-01-20 11:22:16

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] youtube-dl upgrade problem

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

#12 2022-01-20 12:06:05

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] youtube-dl upgrade problem

alexkemp wrote:

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

#13 2022-01-20 12:44:20

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] youtube-dl upgrade problem

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.

Last edited by alexkemp (2022-01-20 12:46:05)

Offline

#14 2022-01-20 13:05:24

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] youtube-dl upgrade problem

alexkemp wrote:
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

#15 2022-01-20 16:07:15

Dutch_Master
Member
Registered: 2018-05-31
Posts: 285  

Re: [SOLVED] youtube-dl upgrade problem

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 wink

Offline

#16 2023-08-23 16:44:09

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: [SOLVED] youtube-dl upgrade problem

The package is empty in daedalus


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#17 2023-08-23 17:30:27

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] youtube-dl upgrade problem

Use "yt-dlp". Seems old (March) but is actually upto date & works fine.

Offline

#18 2023-08-23 20:18:43

Ron
Member
Registered: 2018-04-22
Posts: 526  

Re: [SOLVED] youtube-dl upgrade problem

alexkemp wrote:

Use "yt-dlp". Seems old (March) but is actually upto date & works fine.

Latest release was July 6.

Offline

#19 2023-08-23 22:00:30

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: [SOLVED] youtube-dl upgrade problem

alexkemp wrote:

Use "yt-dlp". Seems old (March) but is actually upto date & works fine.

Yes, it worked. Thanks.


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#20 2023-08-26 19:31:59

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: [SOLVED] youtube-dl upgrade problem

Daniell wrote:

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

#21 2023-08-26 21:32:22

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] youtube-dl upgrade problem

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

Offline

#22 2023-08-27 02:55:12

zapper
Member
Registered: 2017-05-29
Posts: 967  

Re: [SOLVED] youtube-dl upgrade problem

alexkemp wrote:
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.

big_smile

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

#23 2023-10-30 07:36:36

swanson
Member
Registered: 2020-04-22
Posts: 104  

Re: [SOLVED] youtube-dl upgrade problem

yt-dlp version stable@2023.10.13

works.

Offline

#24 2023-10-30 08:42:16

alexkemp
Member
Registered: 2018-05-14
Posts: 357  

Re: [SOLVED] youtube-dl upgrade problem

$ 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

Board footer