首页 > 代码库 > yum安装报错error: unpacking of archive failed on file /usr/bin/xxxx: cpio: open Failed

yum安装报错error: unpacking of archive failed on file /usr/bin/xxxx: cpio: open Failed

Bash漏洞爆出来了,赶紧更新一下补丁,#yum -y update bash


报错了


error: unpacking of archive failed on file /usr/bin/bashbug-64;54254708: cpio: open


参考了网上资料,原来是以前加固时给/usr/bin加了i权限




# lsattr /usr | grep bin ----i-----I-- /usr/bin


# chattr -i /usr/bin



然后yum安装就OK了




参考资料:http://linuxhostingsupport.net/blog/error-unpacking-of-archive-failed-on-file-usrbinxxxx-cpio-open-failed

yum安装报错error: unpacking of archive failed on file /usr/bin/xxxx: cpio: open Failed