You are not logged in.

#1 2015-05-02 18:18:24

exidux
Member
From: Your screen.
Registered: 2014-09-19
Posts: 59

fixing a gpg-error.so and gpg-error.so.0 file to short error.

Hello,
i truly do not know where else to post this so i have chosen to post this short solution over here. I had this error today and it caused systemd to hang and pacman to break with a "gpg-error.so" and "gpg-error.so.0 file to short" error. I did not find a solution on this forum but eventually figured it out...

The solution is simple because it relates to broken symlinks ;
Note ; if you have a possible version number difference, make sure its correct.

chroot into the broken system (if systemd hangs like i had, else do it from within your own system) and cd to /usr/lib ;

ln -s ./libgpg-error.so.0.15.0 ./libgpg-error.so
ln -s ./libgpg-error.so.0.15.0 ./libgpg-error.so.0

I hope this is of some use to somebody, anywhere, with the same problem.

Last edited by exidux (2015-05-02 18:19:11)

Offline

#2 2015-05-04 17:27:17

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

Is your system up to date? Have all AUR packages you may have been rebuilt? This is not a solution, only a band-aid. There is a significant chance this "solution" will haunt you later and cause more problems. Find out what really broke and fix the package(s).


Matt

"It is very difficult to educate the educated."

Offline

#3 2015-05-04 18:24:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

exidux wrote:

I hope this is of some use to somebody, anywhere, with the same problem.

Unlikely: symlinking like this only leads to more breakage. Fix the underlying issue, don't try and paper over it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-05-09 15:57:32

exidux
Member
From: Your screen.
Registered: 2014-09-19
Posts: 59

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

They are supposed to be symlinks, i double checked with other running arch installs.

So, restoring them allowed me to boot into the system again and use Pacman, which in turn allowed me to re-install GPG and do the same for anything depending on it (to be certain).

Offline

#5 2015-05-09 16:02:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

An easier solution would be to just reinstall libgpg-error from the chroot (with pacstrap or pacman -r).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2015-05-10 13:43:50

exidux
Member
From: Your screen.
Registered: 2014-09-19
Posts: 59

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

WorMzy wrote:

An easier solution would be to just reinstall libgpg-error from the chroot (with pacstrap or pacman -r).

Pacman was not functional because of the "file to short error", which was caused by the broken symlinks, I had to fix them trough a chroot to get pacman functional again.

Offline

#7 2015-05-10 13:59:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: fixing a gpg-error.so and gpg-error.so.0 file to short error.

I should've said "from outside the chroot". The liveCD's pacman would have been unaffected.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB