CentOS 7: error: unpacking of archive failed on file /usr/lib/udev/rules.d/60-net.rules: cpio: rename

We have noticed a error that may pop up on CentOS7 template, you may get the below error when running "yum update:

Error unpacking rpm package initscripts-9.49.30-1.el7_2.2.x86_64
error: unpacking of archive failed on file /usr/lib/udev/rules.d/60-net.rules: cpio: rename

This is due to the fact the file is set as read only, it can easily be fixed by running the command below and then you will be able to update successfully:

chattr -Vi /usr/lib/udev/rules.d/60-net.rules

Was this answer helpful? 10 Users Found This Useful (28 Votes)