You are not logged in.

#1 2024-05-08 16:23:59

w0nder
Member
Registered: 2022-06-22
Posts: 25

[SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

My laptop ran out of battery while I was installing an update, now booting up causes a kernel panic. After booting from a live USB, I get an error from yay when I try install an update for 7-zip: "systemd-run: error while loading shared libraries: /usr/lib/libblkid.so.1: file too short". When I try to launch nmtui, I get this error: "error while loading shared libraries: /usr/lib/libmount.so.1: file too short." I think there might be more corrupted files but I'm not sure. How do I reinstall these libraries and any others that might be corrupted?

Last edited by w0nder (2024-05-15 21:14:09)

Offline

#2 2024-05-08 16:33:37

loqs
Member
Registered: 2014-03-06
Posts: 17,584

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Please run the commands below and post the link generated by the second command:

# LC_ALL=C pacman -Qkk 2>&1 | grep -v ', 0 altered files' | tee /tmp/broken_packages.txt
cat /tmp/broken_packages.txt | curl -F 'file=@-' 0x0.st

Offline

#3 2024-05-08 19:41:45

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Offline

#4 2024-05-08 19:50:11

loqs
Member
Registered: 2014-03-06
Posts: 17,584

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

amd-ucode: 16 total files, 1 altered file
filesystem: 124 total files, 3 altered files
intel-ucode: 159 total files, 1 altered file
libutempter: 20 total files, 1 altered file
memtest86+: 6 total files, 2 altered files
memtest86+-efi: 6 total files, 2 altered files
shadow: 588 total files, 1 altered file
syslinux: 238 total files, 2 altered files
systemd: 1449 total files, 1 altered file

I assume you reinstalled util-linux-libs which owns /usr/lib/libblkid.so.1 and /usr/lib/libmount.so.1?  All the packages with altered files could be /boot/ not being mounted or expected changes such as adding a user to the system.

Offline

#5 2024-05-08 20:12:15

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
…
syslinux: 238 total files, 2 altered files

Did you run the commands from #2 on the install iso or after chrooting into the installed system?
From the iso, mount the installed system into /mnt and run

pacman --root /mnt -Qkk 2>&1 …

Online

#6 2024-05-08 20:39:18

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

I ran the command seth provided me and now here's a new link: "http://0x0.st/X8QH.txt". I tried reinstalling util-linux-libs, but pacman returns an error. I used that same trick with curl to create another link so you guys can have a look: "http://0x0.st/X8Q8.txt"

Offline

#7 2024-05-08 20:51:29

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg/ --dbonly -S cmake discord fzf lib32-util-linux libdeflate libdovi libnvme libtiff neovim pcsclite tree-sitter tree-sitter-query util-linux util-linux-libs
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg/ -S cmake discord fzf lib32-util-linux libdeflate libdovi libnvme libtiff neovim pcsclite tree-sitter tree-sitter-query util-linux util-linux-libs linux-api-headers

At least.
The (first) file is full of linebreak errors, did you somehow copypaste it or something like that?

Online

#8 2024-05-08 21:22:25

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

I remember just doing "pacman -Sy util-linux-libs 2> /tmp/pacman_output.txt" and that's what I got. Anyways, I got reinstallation warnings for all the packages except for lib32-util-linux. Gives me a "target not found" error for that one. I'm gonna try rebooting to see if everything's all right anyways.

Last edited by w0nder (2024-05-08 21:24:18)

Offline

#9 2024-05-08 21:23:23

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Still get a kernel panic on bootup. Something's still not right. And I'm still gettting the "file too short" error when I try to launch nmtui

Last edited by w0nder (2024-05-08 21:25:56)

Offline

#10 2024-05-08 21:26:17

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

"target not found" error for that one

results in no action.

lib32-util-linux is in multilib, https://archlinux.org/packages/multilib … til-linux/
omit it, only re-install the other packages. You might also have to re-install the kernel after this (don't forget to mount the boot partition into /mnt/boot if you have one!)

Online

#11 2024-05-08 23:52:42

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

So I tried reinstalling everything except lib32-util-linux, and I got this series of messages after all the reinstallation warnings: http://0x0.st/X81R.txt

Last edited by w0nder (2024-05-08 23:53:20)

Offline

#12 2024-05-09 06:07:27

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

That's after the first (--dbonly) run only though?
Ignore those, they're from ALPM hooks. The metadata should now have been fixed and the second call (w/o --dbonly) will fix those files.

Online

#13 2024-05-09 19:47:50

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Kernel panic is gone, but some of those messages still appear

Last edited by w0nder (2024-05-09 19:49:01)

Offline

#14 2024-05-09 19:49:29

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

I'm getting a conflicting packages error after logging in and trying to update normally

Offline

#15 2024-05-09 19:51:23

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Because of lib32-util-linux  ?
Can you now install that --dbonly (and then properly afterwards)?

Online

#16 2024-05-09 19:55:44

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

So, I had multilib enabled in my account, so I reinstalled lib32-util-linux using the technique you showed me, and it seems to get rid of all the remaining messages All I'm wondering about now is why my update for the 7-zip-full AUR package is failing to build.

Offline

#17 2024-05-09 19:57:21

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Without the actual error messages all we can do is to wonder along.

Online

#18 2024-05-09 20:18:19

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Well, I think it might be completely unrelated, but feel free to have a look:
==> Sources are ready.
==> Making package: 7-zip-full 23.01-5 (Thu 09 May 2024 04:17:35 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Building 'CPP/7zip/UI/Console'...
7zCrcOpt.asm: 180 lines, 4 passes, 3120 ms, 0 warnings, 0 errors
../../../Windows/System.cpp: In function ‘bool NWindows::NSystem::GetRamSize(UInt64&)’:
../../../Windows/System.cpp:217:18: error: aggregate ‘sysinfo info’ has incomplete type and cannot be defined
  217 |   struct sysinfo info;
      |                  ^~~~
make: *** [../../7zip_gcc.mak:369: _o/System.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: 7-zip-full-exit status 4
-> Failed to install the following packages. Manual intervention is required:
7-zip-full - exit status 4

Offline

#19 2024-05-09 20:29:21

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Looks like the gcc 14 issue, https://bbs.archlinux.org/viewtopic.php?id=295600

Try to change https://aur.archlinux.org/cgit/aur.git/ … p-full#n55
- CFLAGS_WARN='-Wno-error'
+ CFLAGS_WARN='-Wno-error -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types'

And yes, completely unrelated (except you updated gcc)

On a formal note, please use [code][/code] tags.

Online

#20 2024-05-09 20:45:14

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Duly noted, thanks!

Offline

#21 2024-05-09 20:54:36

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

If this ends up working, you might want to give the 7-zip maintainer a heads-up in the package comments.
If not, feel free to open a new thread for it.

In any event, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#22 2024-05-09 21:07:54

loqs
Member
Registered: 2014-03-06
Posts: 17,584

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

7-zip-full 23.01-5 builds for me in a clean chroot.  As seth has already noted please make a new thread for this issue.

Offline

#23 2024-05-09 21:16:57

seth
Member
Registered: 2012-09-03
Posts: 52,280

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

https://github.com/ip7z/7zip/blob/main/ … m.cpp#L217 is just sysinfo from sys/sysinfo.h

pacman -Qikk glibc linux-api-headers

Last edited by seth (2024-05-09 21:18:21)

Online

#24 2024-05-15 14:37:15

w0nder
Member
Registered: 2022-06-22
Posts: 25

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

Sorry, I thought 7zip not building might have been related to the corrupted packages problem. I'll go ahead and make a new thread for this issue.

Offline

#25 2024-05-15 19:25:51

loqs
Member
Registered: 2014-03-06
Posts: 17,584

Re: [SOLVED] Kernel Panic on Startup due to Corrupted Shared Libraries

w0nder wrote:

Sorry, I thought 7zip not building might have been related to the corrupted packages problem. I'll go ahead and make a new thread for this issue.

seth pointed out it could be please see post #23.

Offline

Board footer

Powered by FluxBB