On Sun, 2 Jan 2011 13:24:41 +0530 Madhurya Kakati <mkakati2805@gmail.com> wrote:
On Sun, Jan 2, 2011 at 1:28 PM, Allan McRae <allan@archlinux.org> wrote:
On 02/01/11 17:47, Madhurya Kakati wrote:
On Sun, Jan 2, 2011 at 8:15 AM, Martin Panter <vadmium+al@gmail.com <vadmium%2Bal@gmail.com><vadmium%2Bal@gmail.com<vadmium%252Bal@gmail.com>
wrote:
On 2 January 2011 02:07, Madhurya Kakati<mkakati2805@gmail.com> wrote:
When I try to install anything via yaourt i get this error "xz: error while loading shared libraries: liblzma.so.0: cannot open
shared
object file: No such file or directory". I have a fully updated system.
A while ago I was caught with a (partial) update deleting the liblzma.so.0 file (that my installed version of pacman needed) by "updating" it to libzlma.so.5. Maybe double check everything is fully up-to-date. For instance on my computer I have xz 5 installed:
$ pacman -Qo "$(which xz)" /usr/bin/xz is owned by xz 5.0.0-1 $ ldd "$(which xz)" . . . liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f8794f87000) . . . $ pacman -Qo /usr/lib/liblzma.so.5 /usr/lib/liblzma.so.5 is owned by xz 5.0.0-1
Maybe reinstall xz 5, in case something has overwritten it with an older version?
-Martin
Heres the output of the following commands in my system: $ pacman -Qo "$(which xz)" error: No package owns /usr/local/bin/xz
There goes your issue... You have put your own copy of xz in /usr/local. No Arch packages install there.
so how do i remove it from there and install it in the right place?
Well how did it get there in the first place? You must have edited the PKGBUILD from abs before installing. You should be able to just reinstall the xz package from the official mirror for it to be installed in the correct place.