yt-dlp upgrade issue (Overcome by deleting savefile)

Moderator: Forum moderators

Post Reply
Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

yt-dlp upgrade issue (Overcome by deleting savefile)

Post by Mercedes350se »

I thought I would pass a few minutes and upgrade my yt-dlp install. I am running a frugal install on HDD.

So a

yt-dlp -U yielded a message to the effect that the current version was an apt install and that it (apt) should be used for the upgrade.

OK. Tried this:

Code: Select all

# apt install yt-dlp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
yt-dlp is already the newest version (2023.03.04-1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
#

The version listed is not the latest available!

Download a version from https://github.com/yt-dlp/yt-dlp/releases, change permissions so the file can be executed and:

Code: Select all

# yt-dlp --version
Error loading shared library libz.so.1: Exec format error (needed by /initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux)
Error relocating /initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux: inflate: symbol not found
Error relocating /initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux: inflateInit_: symbol not found
Error relocating /initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux: inflateEnd: symbol not found
#

The issue is that this file/folder (whatever) does not exist /initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux - (EDIT) I am not entirely sure that statement is correct. The /initrd/blah/blah does not exist in the working Fossa64 yt-dlp.
The library file libz so.1 does exist.

It should be noted that the yt-dlp -U command worked perfectly in Fossa64.

I particularly want the bookworm64 version to work because it is the only install without adblockers installed - a requirement for some sites I visit.

Last edited by Mercedes350se on Mon Dec 30, 2024 1:31 am, edited 1 time in total.
User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: yt-dlp upgrade issue

Post by fredx181 »

@Mercedes350se Perhaps you downloaded the wrong one, try just "yt-dlp" (works for me on BookwormPup 10.0.9).

Screenshot(1).png
Screenshot(1).png (84.59 KiB) Viewed 656 times

The ones with _ linux are static builds.
So,

  • uninstall the "apt" yt-dlp: apt purge yt-dlp
  • put the downloaded yt-dlp in /bin (and make executable)
User avatar
bigpup
Moderator
Posts: 7298
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 951 times
Been thanked: 1615 times

Re: yt-dlp upgrade issue

Post by bigpup »

You need to read the main menu ->Help ->HOWTO use the APT Package Manager

It is usually not going to provide the very latest version of a program.

All programs are provided from repositories of software compiled for Debian 12 OS.
The only way a newer version is provided is when these repositories are updated by the people controlling what is in them.

But really, you need to stop the idea of constantly needing the latest version of anything.
A newer version is only needed if it fixes a bad bug or provides a new needed feature.

Welcome to Linux software! :roll: :welcome:

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

Re: yt-dlp upgrade issue

Post by Mercedes350se »

fredx181 wrote: Fri Dec 27, 2024 8:35 am

So,

  • uninstall the "apt" yt-dlp: apt purge yt-dlp
  • put the downloaded yt-dlp in /bin (and make executable)

Did that and exactly the same result.

Obviously your install works so;

Do you have anything resembling

/initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux

on your system either before, or after, running yt-dlp?

EDIT: Why the reference to yt-dlp_linux?

Last edited by Mercedes350se on Sat Dec 28, 2024 5:19 am, edited 1 time in total.
Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

Re: yt-dlp upgrade issue

Post by Mercedes350se »

bigpup wrote: Sat Dec 28, 2024 12:21 am

You need to read the main menu ->Help ->HOWTO use the APT Package Manager

It is usually not going to provide the very latest version of a program.

All programs are provided from repositories of software compiled for Debian 12 OS.
The only way a newer version is provided is when these repositories are updated by the people controlling what is in them.

But really, you need to stop the idea of constantly needing the latest version of anything.
A newer version is only needed if it fixes a bad bug or provides a new needed feature.

Welcome to Linux software! :roll: :welcome:

I am more used to .tar.gz files etc. I have been around since 3.1 so have had my share of puppy software! Adding repositories and their use is a new trick yet to be learned.

I am with you 100% regarding constantly upgrading to the latest version. However there is a site here in Aust that has a constant attack on addblockers/downloaders so the latest is required.

Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

Re: yt-dlp upgrade issue

Post by Mercedes350se »

Thinking all the while ...

What if I start Bookworm64 without the savefile and download/install yt-dlp?

"We" have a go situation.

What is it in the savefile that is giving me so much grief?

User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: yt-dlp upgrade issue

Post by fredx181 »

Mercedes350se wrote: Sat Dec 28, 2024 7:52 am

Do you have anything resembling

/initrd/mnt/tmpfs/tmp/staticx-LnDjkp/yt-dlp_linux

on your system either before, or after, running yt-dlp?

No, I don't have that file, and can't understand why it's there for you. Did you try earlier the static version perhaps ? (yt-dlp_linux)

Thinking all the while ...

What if I start Bookworm64 without the savefile and download/install yt-dlp?

"We" have a go situation.

What is it in the savefile that is giving me so much grief?

Yes, try without save, or perhaps even better, start all over with new save, apparently something went wrong for you.

Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

Re: yt-dlp upgrade issue

Post by Mercedes350se »

fredx181 wrote: Sat Dec 28, 2024 11:53 am

No, I don't have that file, and can't understand why it's there for you. Did you try earlier the static version perhaps ? (yt-dlp_linux)

Yes, try without save, or perhaps even better, start all over with new save, apparently something went wrong for you.

I doubt it. I would have had to rename the file and change permissions. It would have been a download/install/use initial installation so could have come from anywhere.

Starting with a new save will be the way to go.

User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: yt-dlp upgrade issue

Post by fredx181 »

Mercedes350se wrote: Sat Dec 28, 2024 10:50 pm
fredx181 wrote: Sat Dec 28, 2024 11:53 am

No, I don't have that file, and can't understand why it's there for you. Did you try earlier the static version perhaps ? (yt-dlp_linux)

Yes, try without save, or perhaps even better, start all over with new save, apparently something went wrong for you.

I doubt it. I would have had to rename the file and change permissions. It would have been a download/install/use initial installation so could have come from anywhere.

Starting with a new save will be the way to go.

Did you try already a reboot? Then the /initrd/mnt/tmpfs/tmp/ directory should be re-organized AFAIK.
Also you may want to check if there is perhaps more than one yt-dlp in the PATH, from terminal: whereis yt-dlp .

Mercedes350se
Posts: 89
Joined: Tue Nov 24, 2020 3:34 am
Has thanked: 50 times
Been thanked: 1 time

Re: yt-dlp upgrade issue

Post by Mercedes350se »

Given the success I had with the "no savefile boot and yt-dlp install as reported in my post of the 28th" and the fact that this is not my everyday pup it was an easy decision to get rid of the existing savefile and reconfigure the install.

yt-dlp is now the latest version and is working as expected.

User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Re: yt-dlp upgrade issue (Overcome by deleting savefile)

Post by Jasper »

Hey

'Woof woof' sniff my butt

Have you considered that yt-dlp requires an updated build of Python?

Of course you can update via terminal but are you paying attention to its dependencies?

Post Reply

Return to “BookwormPup”