You are not logged in.
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
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
Offline
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
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 …
Offline
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
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?
Offline
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
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
"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!)
Offline
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
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.
Offline
Kernel panic is gone, but some of those messages still appear
Last edited by w0nder (2024-05-09 19:49:01)
Offline
I'm getting a conflicting packages error after logging in and trying to update normally
Offline
Because of lib32-util-linux ?
Can you now install that --dbonly (and then properly afterwards)?
Offline
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
Without the actual error messages all we can do is to wonder along.
Offline
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
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.
Offline
Duly noted, thanks!
Offline
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.
Offline
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
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)
Offline
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
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