I had several errors when using zypper to refresh/update.
One in particular was (8/8) Installing: kernel-default-optional-6.12.0-160000.40.1.x86_64 ......[done] %posttrans(kernel-default-6.12.0-160000.40.1.x86_64) script output: /usr/bin/ldd: line 159: /lib/ld-linux.so.2: cannot execute binary file: Exec format error
I also had errors with several updates in Packman. They were related to expired signing cert. I simply removed that repo but would like to know how to handle that situation.
Thank you fr this suggestion. Before doing anything I verified with uname -a that the correct kernel was installed. Performing your suggestion, this is the result, the same as my OP.
Package install size change:
| 127.0 MiB required by packages that will be installed
0 B | - 127.0 MiB released by packages that will be removed
Note: System reboot required.
Backend: classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y):
Preloading: kernel-default-6.12.0-160000.40.1.x86_64.rpm [done]
Preload finished. [success (38.9 MiB/s) ] ...................................................................................[done]
Retrieving: kernel-default-6.12.0-160000.40.1.x86_64 (openSUSE:16.0:oss) (1/1), 118.1 MiB
Checking for file conflicts: ................................................................................................[done]
/usr/bin/ldd: line 159: /lib/ld-linux.so.2: cannot execute binary file: Exec format error
(1/1) Installing: kernel-default-6.12.0-160000.40.1.x86_64 ..................................................................[done]
Running post-transaction scripts ............................................................................................[done]te code here
Using Myrlyn, I searched for ld-linux.so.2 and reinstalled it. I ran the kernel install again but have the same results.
Is there any other suggestion for fixing this error?
When upgrading to 16.0, support for 32bit binaries gets disabled by default.
But the glibc-32bit package remains installed, which causes this error, when installing a kernel update:
… /usr/bin/ldd: line 159: /lib/ld-linux.so.2: cannot execute binary file: Exec format error
Did you upgrade to Leap 16.0 only recently?
Is it plausible that you also still have that glibc-32bit package installed?
I updated from 15.6 in May. libc-32bit is still here.
I don’t know why I never noticed this error before, guess I need to slow down and smell the roses.
I’m not sure if that’s really an error. Maybe it wasn’t much of a problem until this kernel version. But obviously now it is.
So what I’d try is create a snapshot with the current setup that works, then start Myrlyn and remove that glibc-32bit package. You might get a dependency problem report telling you that this means removing a number of other packages. Just select that option, then look at the “Installation Summary” how bad the damage is. If it doesn’t try to remove like 80% of the system, accept and let it do its thing. [*]
Then reboot; and if the system is wrecked at that point, boot into that last snapshot and restore from there.
[*] You might want to insert a prayer to the Flying Spaghetti Monster at this point, or whatever other spiritual rituals you like to do.
I attempted to remove the 32bit file but it fails on modules-extra, presumably it is a locked in use file?
Subprocess failed. Error: RPM failed: Command exited with status 1.
History:
- /var/tmp/rpm-tmp.YhFJPV: line 1: /usr/sbin/iconvconfig-32: cannot execute binary file: Exec format error
error: %preun(glibc-gconv-modules-extra-32bit-2.40-160000.5.1.x86_64) scriptlet failed, exit status 126
error: glibc-gconv-modules-extra-32bit-2.40-160000.5.1.x86_64: erase failed
Relating to spaghetti monsters, my /home is ext4, I just want to make sure that your caution does not apply to my /home as I don’t think I can make a snapshot of it. Maybe I have to bootup in the cmdline but then do I try to remove glibc w/ zypper? Just want to make sure before I dig a hole too deep to climb out of
Installing the 32bit compatibility package grub2-compat-ia32 should get you rid of the message and you will be able to uninstall glibc-gconv-modules-extra-32bit
Simple things first: No need to worry for your ext4 /home filesystem; no package operation will touch it, no matter if zypper, Myrlyn or a plain rpm command. It’s a good thing that you have /home on a separate filesystem for that exact reason.
I just downloaded the glibc-gconv-modules-extra-32bit package from the Leap 16.0 OSS repo to have a look at its pre-/post-transaction scripts:
The thing that failed was the pre-uninstall script, and that calls a binary that is quite obviously another 32 bit binary: /usr/sbin/iconvconfig-32.
But this is a chicken-egg problem: Leap 16.0 does not come with 32 bit support by default, so this can’t be executed. However, 32 bit support can be activated with a kernel parameter after installing the needed support package:
I am not sure if the SELinux step in that description also applies here. I’d try without it first.
Reboot
Now you should have legitimate 32 bit support. Maybe this already fixes the kernel update problem. If not, you can now remove the 32 bit packages (and then the kernel parameter, too, of course).
That did not work, same error as previously posted.
The choices offered are retry, ignore, abort. Ignore does nothing, abort is the only working option.
Thanks anyway
Ahhh, yes. Well the amber liquid available to me is from Kentucky but I actually prefer that crystal clear liquid from London (oh, sorry if I made that Yankee mistake of characterizing the Isles as one single place).
I have completed the removal of glibc-32. My liquid free research will be to see how to reverse the bootloader option of adding the ia32 emulation. I will do the previously mentioned install of the kernel-default, after a reboot although I suspect it is unnecessary. Just to verify that the ld-linux.so.2 is finally gone!