You are not logged in.

#1 2017-05-02 07:38:08

smf15
Member
Registered: 2017-05-02
Posts: 3

[SOLVED] Error while loading shared libraries

the last pacman update crashed and now pacman always returns

pacman: error while loading shared libraries: libicuuc.so.58: cannot open shared object file: No such file or directory

From another thread I already figured out that I have to extract the package from the pacman cache and unpack the files.

I assumed I should take the latest icu package but the latest one is 59 instead of 58, so I am a bit confused

   8347156 Dec  5  2015 icu-56.1-2-x86_64.pkg.tar.xz
   8433820 Apr  2  2016 icu-57.1-1-x86_64.pkg.tar.xz
   8507792 Nov 29 07:32 icu-58.1-2-x86_64.pkg.tar.xz
   8511468 Dec 10 09:32 icu-58.2-1-x86_64.pkg.tar.xz
   8511012 Apr 22 13:59 icu-58.2-2-x86_64.pkg.tar.xz
   8540936 Apr 24 13:47 icu-59.1-1-x86_64.pkg.tar.xz

Also I am not sure in which directory the unpacked files should go


looking forward to your help smile

Last edited by smf15 (2017-05-02 10:55:53)

Offline

#2 2017-05-02 08:13:39

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Error while loading shared libraries

That looks like a partial upgrade situation. Not sure if that happened because of pacman crashing (however that happened) or through a `pacman -Sy`...

The easiest way is probably to boot an Arch Linux live system, mount your system's root filesystem (and /usr or /var or whatever if they happen to be on separate partitions) and run a system upgrade with the `--root` option, e.g.

pacman --root=/mnt -Syu

You could also try to extract and install the files for icu-58 manually, but that will most likely cause a bunch of other issues (not to mention that the icu package will then be "broken", too, as far as pacman is concerned).


pkgshackscfgblag

Offline

#3 2017-05-02 08:43:28

smf15
Member
Registered: 2017-05-02
Posts: 3

Re: [SOLVED] Error while loading shared libraries

it happend while pacman -Syu

however I forgot to add the link to the thread I followed so far
https://bbs.archlinux.org/viewtopic.php … 8#p1450598
https://wiki.archlinux.org/index.php/Pa … e.22_error

If --force works i think this way would be easier. But I am still unsure where to unpack the restored iso files?

Offline

#4 2017-05-02 09:25:36

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Error while loading shared libraries

smf15 wrote:

But I am still unsure where to unpack the restored iso files?

You mean the icu package file? I think you only need the package's  usr/lib/*.so*  files—move them into /usr/lib (some may replace existing files in there).

Also, apply --force only to reinstalling icu after running the upgrade. Actually, I don't see any reason to run --force at any point. The only thing to do after reinstalling icu would be to remove the remainder of the old icu's package (*.so.58*)

Last edited by ayekat (2017-05-02 09:26:50)


pkgshackscfgblag

Offline

#5 2017-05-02 10:55:25

smf15
Member
Registered: 2017-05-02
Posts: 3

Re: [SOLVED] Error while loading shared libraries

as far as I understood pacman wont be aware of the manually installed icu files and won't overwrite them without --force
It worked and my system is up to date again smile

thanks for your help

Offline

#6 2017-05-02 11:32:08

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [SOLVED] Error while loading shared libraries

smf15 wrote:

as far as I understood pacman wont be aware of the manually installed icu files and won't overwrite them without --force

Not quite—the `--force` option tells pacman to overwrite conflicting files, should they exist.
In this case however, the library files already belong to the package you're reinstalling, so it won't treat that as a "conflict" (and so no `--force` is required), even if the files in question differ from what the package itself ships.

By the way, welcome to the Arch Linux forums! smile


pkgshackscfgblag

Offline

Board footer

Powered by FluxBB