Chinaunix首页 | 论坛 | 博客
  • 博客访问: 774842
  • 博文数量: 265
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1985
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-13 12:33
文章分类

全部博文(265)

文章存档

2011年(1)

2010年(66)

2009年(198)

我的朋友

分类: LINUX

2010-06-04 20:55:46

今天升级系统,老出现/tmp/alpm_whfxNY/.INSTALL: line 5: echo: write error: Broken pipe,就中断了,结果再升级就出现如下错误:

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


1. Download xz-utils from 
2. Extract tarfile
  $ tar xvf xz-4.999.8beta.tar.gz
3. Build
  $ cd xz-4.999.8beta
  $ ./configure && make
4. Install
  $ sudo make install
5. Reconfigure dynamic linker bindings
  $ sudo ldconfig /usr/local/lib

Now pacman should work again. Install xz-utils using pacman:
  $ sudo pacman -S core/xz-utils

Now you can uninstall the manually installed xz-utils by vising its source directory and:
  $ sudo make uninstall

Source directory and the downloaded tarfile can now be removed and everything should be in order.

edit: Just to be safe, do another pacman -S core/xz-utils after removing the manually installed packet.

参考:
阅读(3866) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~