Buster's youtube-dl broken; update with Bullseye's.

Kernels & Hardware, configuring network, installing services

Buster's youtube-dl broken; update with Bullseye's.

Postby Moltke » 2020-06-07 13:03

Hi everyone! Hope you're all having a nice life and a wonderful-healthy 2020! :)

Hope this is the right place for this post. There's seem to be something wrong with youtube-dl's Buster version cause it kept giving me this error
Code: Select all
youtube says:video not available

and tried to update but got this
Code: Select all
youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian. Please update youtube-dl using apt(8). See https://packages.debian.org/sid/youtube-dl for the latest packaged version.

thing is apt kept telling me that the latest youtube-dl version was installed, so I downloaded the .deb for testing a.k.a Bullseye, installed it, fortunately it gave me no errors nor was any package replaced/updated, no changes were made to the sources.list file and now youtube-dl works as expected. Is it possible that Buster's youtube-dl gets updated with Bullseye's as a regular update/upgrade via apt?
Moltke
 
Posts: 25
Joined: 2017-03-16 18:10

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby Head_on_a_Stick » 2020-06-07 13:48

Moltke wrote:Is it possible that Buster's youtube-dl gets updated with Bullseye's as a regular update/upgrade via apt?

No, that's not how Debian stable works.

But I might be wrong, try raising this issue via a bug report or on the mailing lists to see if the Debian developers consider this important enough to bump the package version. Just FYI there are no Debian developers here, hence the name of the forums.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12770
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby Moltke » 2020-06-07 13:56

Head_on_a_Stick wrote:
Moltke wrote:Is it possible that Buster's youtube-dl gets updated with Bullseye's as a regular update/upgrade via apt?

No, that's not how Debian stable works.

But I might be wrong, try raising this issue via a bug report or on the mailing lists to see if the Debian developers consider this important enough to bump the package version. Just FYI there are no Debian developers here, hence the name of the forums.


Oh, I see. Thanks for your answer and your suggestion, will do that.
Moltke
 
Posts: 25
Joined: 2017-03-16 18:10

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby peter_irich » 2020-06-07 16:43

I don't now how in Debian, but in Ubuntu-18.04 youtube-dl installs from other source through pip.
pip is in python-pip package and installing command is:
Code: Select all
pip [-U] install youtube-dl


Peter.
peter_irich
 
Posts: 1299
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby kedaha » 2020-06-07 17:07

I tried to backport it from sid to Buster but ran into:
Code: Select all
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 13)

But there's a newer version in snap (if you don't mind snap), which may work OK.
Code: Select all
# apt install snapd
# snap install youtube-dl
"Please accept my resignation. I don’t care to belong to any club that will have me as a member".—Groucho Marx
User avatar
kedaha
 
Posts: 3155
Joined: 2008-05-24 12:26

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby Moltke » 2020-06-07 20:07

peter_irich wrote:I don't now how in Debian, but in Ubuntu-18.04 youtube-dl installs from other source through pip.
pip is in python-pip package and installing command is:
Code: Select all
pip [-U] install youtube-dl


Peter.

Yes, one coud install it via pip in Debian too.

I tried to backport it from sid to Buster but ran into:
Code: Select all
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 13)


But there's a newer version in snap (if you don't mind snap), which may work OK.
Code: Select all
# apt install snapd
# snap install youtube-dl



I didn't use the one form Sid but Bullseye's and it worked. I figured Sid's wouldn't given is way ahead of Buster regarding base libraries and packages. If possible, I'd like to avoid using snap packages for as long as I can.
Moltke
 
Posts: 25
Joined: 2017-03-16 18:10

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby sunrat » 2020-06-07 23:48

Debian's youtube-dl breaks every time Youtube changes their API which is fairly regularly. I've found the best way to get around this is to download it from the Github page, put the script in ~/bin, and every time it breaks run:
Code: Select all
youtube-dl -U
to update it.
The devs there are usually quite diligent at keeping it current and often are ahead of even the Sid version by days. The current version now is youtube-dl-2020.06.06.tar.gz from https://youtube-dl.org/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby stevepusser » 2020-06-08 03:38

kedaha wrote:I tried to backport it from sid to Buster but ran into:
Code: Select all
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 13)

But there's a newer version in snap (if you don't mind snap), which may work OK.
Code: Select all
# apt install snapd
# snap install youtube-dl


For that package, just change it to debhelper-compat (= 12) in the debian/control file.

You can even drop it down to debhelper (>= 9.2) for backports way back to Jessie, as long as you add back the debian/compat file with "9" on its one line. I haven't backported any packages yet that actually required any new features with 13; 12 has worked just fine.

We've been backporting it every so often for MX Linux...I guess nobody wants to do it for the Debian backports, though it only takes a couple minutes. Let me do the latest version in my OBS multimedia repo.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12132
Joined: 2009-10-06 05:53

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby stevepusser » 2020-06-08 03:58

Hmmm...there's a new build-depend, flake8, that's not in Jessie. IDK if it's worth the time to do a backport for that old of a release. And Stretch packages fail the self testing...Anyway, here's the Buster backports for 2020.05.08: https://build.opensuse.org/package/show ... youtube-dl
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12132
Joined: 2009-10-06 05:53

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby Moltke » 2020-06-08 11:43

stevepusser wrote:Hmmm...there's a new build-depend, flake8, that's not in Jessie. IDK if it's worth the time to do a backport for that old of a release. And Stretch packages fail the self testing...Anyway, here's the Buster backports for 2020.05.08: https://build.opensuse.org/package/show ... youtube-dl


Yesterday, while checking whether a bug had been reported on this or not I found this https://tracker.debian.org/pkg/youtube-dl which
A new upstream version is available: 2020.06.06
is this the same one you're linking to in opensuse.org?

Debian's youtube-dl breaks every time Youtube changes their API which is fairly regularly. I've found the best way to get around this is to download it from the Github page, put the script in ~/bin, and every time it breaks run:
Code: Select all
youtube-dl -U

to update it.
The devs there are usually quite diligent at keeping it current and often are ahead of even the Sid version by days. The current version now is youtube-dl-2020.06.06.tar.gz from https://youtube-dl.org/


Thanks for that info and tip, really appreciated cause I think this saves time and frutration trying to figure out why does this happen in the first place and you just told us why. Will try you suggestion in the furture if and, given you're right, when current youtube-dl installed here breaks.
Moltke
 
Posts: 25
Joined: 2017-03-16 18:10

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby stevepusser » 2020-06-09 02:56

For convenience's sake, I did the version is upstream Debian, which is still 20.05.08.

Usually I can use "uscan" to grab the latest release tarball, though. YT-DL releases about every two weeks or so.

Edit: I updated it to 20.06.06, and added testing and Sid builds, since they don't have it.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12132
Joined: 2009-10-06 05:53

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby sickpig » 2020-06-09 06:48

Moltke wrote:If possible, I'd like to avoid using snap packages for as long as I can.

no need for snap nonsense where there is https://nixos.org/nixos/packages.html?a ... youtube-dl
User avatar
sickpig
 
Posts: 589
Joined: 2019-01-23 10:34

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby shep » 2020-06-09 14:51

Underlying this issue is an ongoing struggle between youtube-dl and Google/youtube. Google/youtube has no interest in you not clicking on their site and periodically revises their site code to thwart youtube-dl. No matter what version of youtube-dl you use, it will likely be broken in the future.

The youtube-dl project, so far, has been able to work around any barriers that Google throws at them.

Since youtube-dl is python based, it is possible to install directly from the youtube-dl developers site. This includes a python script to update to the latest version.

https://ytdl-org.github.io/youtube-dl/download.html
shep
 
Posts: 402
Joined: 2011-03-15 15:22

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby Moltke » 2020-06-12 20:20

sickpig wrote:
Moltke wrote:If possible, I'd like to avoid using snap packages for as long as I can.

no need for snap nonsense where there is https://nixos.org/nixos/packages.html?a ... youtube-dl


Actually, I'd like to keep it simple; install packages using apt only. Although, I do like the whole Appimages concept, specially for a portable system, like in one with a persitent partition.

Since youtube-dl is python based, it is possible to install directly from the youtube-dl developers site. This includes a python script to update to the latest version.


You're right, however, that doesn't solve the root cause of the problem, but I get your point.
Moltke
 
Posts: 25
Joined: 2017-03-16 18:10

Re: Buster's youtube-dl broken; update with Bullseye's.

Postby sickpig » 2020-06-13 02:10

Appimages
:) wait what why?
I never mentioned them.
packaging nix is way too easy than deb or rmp or other traditional formats for that matter.
User avatar
sickpig
 
Posts: 589
Joined: 2019-01-23 10:34

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable