A solution to save your ass if you broke pacman after force removed
gcc-libs-multilibon your Arch Linux
If you've installed
gcc-multilib in your Arch Linux,
you might cannot
$ sudo pacman -Syu because sometimes they will conflict with
You have two choices:
- Don't install
gcc-libsto avoid the conflict, and wait until
gcc-libs-multilibhave new version.
- Remove them from the list of packaged to install of this packages upgrade.
- Force remove
$ sudo pacman -Rdd gcc-multilib gcc-libs-multilib.
If you do the latter, and break your
pacman, then this blog post may be your salvation.
I just encountered this situation and that's why I wrote down this blog post.
pacman: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
$ ldd $(which pacman) ... libstdc++.so.6 => not found libgcc_s.so.1 => not found
These two share objects are gone which make
libgcc_s.so.1 from other Arch Linux computer with same architecture.
If you have nothing to copy from, I've backed up these two shared objects with x86_64 architecutre below.
(If somehow you cannot download these two files or these doesn't work for you,
you can try the following link in the reference part.
Someone also backed up these two files and uploaded them in the reply of the forum thread.)
- Download these 2 share objects:
$ sudo mv libstdc++.so.6 libgcc_s.so.1 /usr/lib
$ sudo pacman -S --force gcc gcc-libs
- Make sure you use
--forceoption, or pacman will complain about these two files are conflict.
- Make sure you use
如果覺得這篇文章對你有幫助， 除了留言讓我知道外， 或許也可以考慮請我喝杯咖啡， 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。
If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.
- pacman mirrorlist - Taiwan vs. Taiwan (Province of China)
- vsftpd virtual user broken after upgrade pam from 1.1.8-2 to 1.1.8-3 in Arch Linux
- 在 Arch Linux 上將 Docker 的 Storage Driver 從 devicemapper 改為 overlay2 以釋放硬碟空間
- Unzip 7zip file by p7zip on Arch Linux
- Arch Linux Quick Installation with GPT in BIOS