pacman: error: failed to commit transaction(转载)

5448阅读 0评论2012-05-21 tiny_xd
分类:LINUX

pacman: error: failed to commit transaction、
转自%C7%EF%CA%D5%B3%C1%CB%BC/blog/item/5226bcdfd182bdcf76c638ad.html 
# pacman -Syu
后出现上面错误以及类似下面的错误:

error: failed to commit transaction (conflicting files)
glibc: /usr/bin/tzselect exists in filesystem
glibc: /usr/bin/zdump exists in filesystem
glibc: /usr/bin/zic exists in filesystem 
首先检查上面报错的文件是否被其他的包所使用:

# pacman -Qo full_file_path

如果出现:

xxx is owned by xxx

可以报 bug 了;如果没有,可以直接把他们给删除或者强制升级包。

一般是强制重新安装升级出错的包,例如上面就是glibc有问题

I forced the update of glibc and then it went from there. I don't know how safe that was tho, but since I run this on a VM I'm very careless.

Pacman -S glibc --force

remember say "N" to upgrading pacman first when you force the update of glibc

//记得选择NO当它问你是否在强制升级glibc之前升级pacman.

上一篇:Archlinux下的时间时区设置 leafpad中文显示
下一篇:Archlinux之 openbox桌面搭建全过程(一)