Online Promoters™ :: Web Development made simple

bind-chroot rpm update error: unpacking of archive failed on file /var/named/chroot/etc: cpio: lsetfilecon


While updating your bind-chroot rpm package you might enconunter the following error:
"error: unpacking of archive failed on file /var/named/chroot/etc: cpio: lsetfilecon"

This happens because the subfolders /etc and /var from the chroot folder are set as immutable.
Being immutable the folder cannot be removed (deleted) by the package manager (yum) when uninstalling the previous version.
In order to solve this issue you need to remove that immutable attribute from those subfolders under the chroot bind folder:


[user@machine ~]# sudo chattr -i /var/named/chroot/etc
[user@machine ~]# sudo chattr -i /var/named/chroot/var
[user@machine ~]# sudo yum update bind-chroot

Now your bind-chroot package should have been updated successfully!