I made a mistake, how would i correct this?

So, this all started with this error: node: error while loading shared libraries: libicui18n.so.75: No such file or directory.

I looked up how to fix it, and one thing lead me to remove the package icu from my install. This broke everything (in hindsight removing a library forcefully is a really bad idea). After this i ended up going to my regular arch install, upgrading it (which took a half hour lmao), and copied the needed library files.

The problems: Node still doesn’t work (throws node: error while loading shared libraries: libicui18n.so.75: wrong ELF class: ELFCLASS32), and pacman doesn’t recognize the library files as parts of a package (when i try to install through pacman it just refuses because the files exist but there’s no package). So i’m not sure what to do as of now, if anyone could help that would be nice.

sudo pacman -Syuu

2 Likes
(42/42) checking for file conflicts                                                                                                                                [----------------------------------------------------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
icu: /usr/lib/libicudata.so.76 exists in filesystem
icu: /usr/lib/libicudata.so.76.1 exists in filesystem
icu: /usr/lib/libicui18n.so.76 exists in filesystem
icu: /usr/lib/libicui18n.so.76.1 exists in filesystem
icu: /usr/lib/libicuio.so.76 exists in filesystem
icu: /usr/lib/libicuio.so.76.1 exists in filesystem
icu: /usr/lib/libicutest.so.76 exists in filesystem
icu: /usr/lib/libicutest.so.76.1 exists in filesystem
icu: /usr/lib/libicutu.so.76 exists in filesystem
icu: /usr/lib/libicutu.so.76.1 exists in filesystem
icu: /usr/lib/libicuuc.so.76 exists in filesystem
icu: /usr/lib/libicuuc.so.76.1 exists in filesystem
Errors occurred, no packages were upgraded.

Oh, and i cannot remove the files because pacman depends on them

Wait you uninstall it and then install that from the Arch Repo and not from the Cachy Repo?

Yeah, i just needed to get it working at all. But the problem now is that the files have no package that owns them.

You can use --overwrite from pacman to replace those files.