You are not logged in.

#1 2022-12-08 07:54:47

zw963
Member
Registered: 2018-06-18
Posts: 201

pacman: error while load shard libraries: libcurl.so.4: file too short

hi,I updete my LG gram laptop (intel builtin display card)today,but no luck,it freezing when running pacman -Syu,
then,I hard power off my laptop,kernel get broken after reboot,after reboot use boot cd,and chroot,pacman broken too,
i don't want format and install from a scratch, how to fix it?

Thanks.

Offline

#2 2022-12-08 09:00:35

d.ALT
Member
Registered: 2019-05-10
Posts: 923

Re: pacman: error while load shard libraries: libcurl.so.4: file too short

- boot Arch live
- mount all partitions
- # pacman --sysroot /WHERE/YOU/MOUNTED/YOUR/ROOT_PARTITION -Syu
- check if everything went smooth
- reboot

Last edited by d.ALT (2022-12-08 09:00:56)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-12-08 09:26:04

zw963
Member
Registered: 2018-06-18
Posts: 201

Re: pacman: error while load shard libraries: libcurl.so.4: file too short

Hi, i am current get pacman-static work on chroot, but, whatever use pacman --sysroot or pacman-static, both get the following error.

error: GPGME error: Invalid crypto engine

I am still fighting for how to install gnupg correctly into chroot ....

EDIT:

change SigLevel    = Required DatabaseNever not work.

Last edited by zw963 (2022-12-08 09:42:45)

Offline

#4 2022-12-08 11:41:56

zw963
Member
Registered: 2018-06-18
Posts: 201

Re: pacman: error while load shard libraries: libcurl.so.4: file too short

Finally, i fix my issue with run following from boot cd for broken package one by one.

pacman -S broken-package-name —root /mnt —cachedir /mnt/var/cache/pacman/pkg —overwrite '*'

until pacman can work in chroot, reinstall all broken package use pacman one by one again.

pacman -S broken-package --overwrite '*'

Offline

Board footer

Powered by FluxBB