红联Linux门户
Linux帮助

Archlinux下,pacman出错,求各位大神帮助,谢谢~~

发布时间:2012-02-25 02:41:24来源:红联作者:莫不痴
错误消息如下:
[root@**** ~]# pacman -Syu
pacman: error while loading shared libraries: libarchive.so.12: cannot open shared object file: No such file or directory

看架式是共享库libarchive.so.12不存在?网上也找不到这个东西,pacman本身不正常,简直就不知道应咋个解决了?!未必只有重新安装系统了吗?

各位大神,求解决方法啊。
先谢谢啦~~~~~~~
文章评论

共有 2 条评论

  1. 莫不痴 于 2012-02-26 20:58:24发表:

    创建软连接指向libarchive.so.2后解决。谢谢楼上 ~~~

  2. irongeek 于 2012-02-25 05:21:03发表:

    Arch Linux: Pacman 4.0 upgrade breaks the system

    slopjong January 17, 2012

    Since yesterday, January 16th, pacman 4 is in the core repository and upgrading to it breaks the system.

    If you can wait with any updates, wait. If you must update some packages, only update those which you need to update right now and which don’t affect the system.

    To exclude the packages which surely breaks your system, edit your /etc/pacman.conf and add to IgnorePkg all packages related to any package manager stuff and all packages you know that they break something.

    引用:
    IgnorePkg = pacman package-query yaourt libarchive

    If you encounter trouble with other packages, let me know.

    If you updated libarchive for whatever reason pacman stops to work while it outputs this error message:

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

    To fix this you have to create a symlink pointing from libarchive.so.2 to libarchive.so.12.0.3. Adapt the version number of according to your installed archive lib. Check this with

    引用:
    ls -l /usr/lib | grep libarchive.so


    Now pacman should work again.