21 C
Guru Unix /Linux and GNU supporter

Fix: error: unpacking of archive failed on file /etc/init.d: cpio: rename

- Advertisement -
- Advertisement -

Today i was confronted with this issue on my lab Server. let me explain to you how i have fixed it. First this solution was on my Redhat/Cents 7.8 Server

Erros Dumps :

#yum update

This Package is expecting /etc/init.d as a Symlink but in my case was a full directory

- Advertisement -

How tot fix that ?

move /etc/init.d to other directry en keep is as backup in case of issues.

#mv /etc/init.d /root

Run the update or the yum install again

Now it looks fine

Check if the init.d back now as Symlink

#ls -altr /etc/init.d
lrwxrwxrwx 1 root root 11 Jul 16 11:10 /etc/init.d -> rc.d/init.d

VoilĂ . Your system is now fixed and ready for the next updates.


Please enter your comment!
Please enter your name here

Latest article