You are not logged in.

#1 2016-11-28 04:42:58

Zorbik
Member
Registered: 2016-08-09
Posts: 42

Kernel Panic due to Shared Library

Did a quick pacman -Syu, everything updated without a hitch, looked completely fine, reboot to a kernel panic.
The exact error is this:

starting version 231
/sbin/init: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory
[    6.428563] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    6.428563]
[    6.428610] CPU: 2 PID: 1 Comm: init Not tainted 4.8.10.201611210813-1-grsec #1
[    6.428645] Hardware name: Dell Inc. Inspiron 7559/0H87C, BIOS 1.1.7 02/16/2016
[    6.428680]  0000000000000002 0000000000000000 0000000000000086 0000000000000000
[    6.428726]  ffffc900018f3de0 ffffffff8134254f 000000000000000f 0000000000000000
[    6.428772]  ffff88046f5e3500 ffffffff81921860 ffffc900018f3e70 ffffffff8115152a
[    6.428817] Call Trace:
[    6.428836]  [<ffffffff8134254f>] dump_stack+0x76/0xc7
[    6.428863]  [<ffffffff8115152a>] panic+0xe1/0x270
[    6.428889]  [<ffffffff81078e42>] do_exit+0xb62/0xb80
[    6.428915]  [<ffffffff81078f07>] do_group_exit+0x37/0xc0
[    6.428942]  [<ffffffff81078fa2>] sys_exit_group+0x12/0x30
[    6.428970]  [<ffffffff816cba90>] entry_SYSCALL_64_fastpath+0x1a/0xbd
[    6.429039] Kernel Offset: disabled
[    6.429059] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    6.429059]
_

I have tried booting into installation media however using any command using pacman in a chroot results in:

/bin/pacman: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory

EDIT: This is a file owned by xz

Last edited by Zorbik (2016-11-28 05:07:57)

Offline

#2 2016-11-28 05:16:16

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Kernel Panic due to Shared Library

the output is self evident, what do you get when you

ls -l /usr/lib/liblzma*

Offline

#3 2016-11-28 05:27:04

Zorbik
Member
Registered: 2016-08-09
Posts: 42

Re: Kernel Panic due to Shared Library

HiImTye wrote:

the output is self evident, what do you get when you

ls -l /usr/lib/liblzma*
ls: cannot access `/usr/lib/liblzma*': No such file or directory

Offline

#4 2016-11-28 05:41:34

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Kernel Panic due to Shared Library

Does the error message not clearly tell you that liblzma.so.5 is missing?

[eschwartz@arch ~]$ pacman -Qo /usr/lib/liblzma.so.5
/usr/lib/liblzma.so.5 is owned by xz 5.2.2-2

Something terrible happened to your "xz" package, clearly, which broke systemd (rather major, that).

Given that you have a broken system, why on earth would chrooting back into the broken system help? Certainly not when pacman uses libarchive which also links to the same missing library.

...

From your installation media, use pacman with --root, or alternatively let pacstrap do the work for you just like it did when you first installed.
You will need to reinstall xz at a minimum, but if that was broken, who knows what else might be...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2016-11-28 05:45:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Kernel Panic due to Shared Library

It looks to me like it's your initramfs that's broken. Chroot into the installation and regenerate it.

Offline

#6 2016-11-28 05:53:44

Zorbik
Member
Registered: 2016-08-09
Posts: 42

Re: Kernel Panic due to Shared Library

In installation media: run pacstrap /mnt xz.

error: xz: signature from "Pierre Shmitz <pierre@archlinux.de>" is invalid
:: File /mnt/var/cache/pacman/pkg/xz-5.2.2-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root

Note: It did not give me the opportunity to delete the package. It continued immediately
Tried updating with pacman but it also fails because files exist on the filesystem.
Can't remove the package because it breaks dependencies

EDIT: Force reinstalled xz using pacman -root /mnt -S --force xz
This worked however I am receiving another kernel panic upon reboot for libgpg-error.so.0
Will repeat the process above and try again...

EDIT 2: This would have been resolved had I followed this in the first place.
However, unfortunately I broke my system to the point where it is easier to reinstall than fix it.

Last edited by Zorbik (2016-11-28 07:40:42)

Offline

#7 2016-11-28 16:32:06

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Kernel Panic due to Shared Library

Scimmia wrote:

It looks to me like it's your initramfs that's broken. Chroot into the installation and regenerate it.

So why does pacman in a chroot fail as well, as per the first post?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2016-11-28 16:35:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Kernel Panic due to Shared Library

I missed that. So both were broken.

Offline

Board footer

Powered by FluxBB