Page 1 of 1
yt-dlp upgrade issue (Overcome by deleting savefile)
Posted: Fri Dec 27, 2024 7:16 am
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.
Re: yt-dlp upgrade issue
Posted: Fri Dec 27, 2024 8:35 am
by fredx181
@Mercedes350se Perhaps you downloaded the wrong one, try just "yt-dlp" (works for me on BookwormPup 10.0.9).
- Screenshot(1).png (84.59 KiB) Viewed 658 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)
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 12:21 am
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!
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 5:09 am
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?
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 5:17 am
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!
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.
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 7:52 am
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?
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 11:53 am
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.
Re: yt-dlp upgrade issue
Posted: Sat Dec 28, 2024 10:50 pm
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.
Re: yt-dlp upgrade issue
Posted: Sun Dec 29, 2024 2:40 pm
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
.
Re: yt-dlp upgrade issue
Posted: Mon Dec 30, 2024 1:27 am
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.
Re: yt-dlp upgrade issue (Overcome by deleting savefile)
Posted: Wed Jan 01, 2025 2:59 am
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?