When upgrading chkconfig to version 1.25-1 it fails with 'Error: Transaction failed' chkconfig-1.24-1.fc38.x86_64 chkconfig-1.25-1.fc38.x86_64 Reproducible: Always Steps to Reproduce: 1.make sure chkconfig version prior to 1.25-1 is installed 2.try to upgrade to 1.25-1 3. Actual Results: Failed: chkconfig-1.24-1.fc38.x86_64 chkconfig-1.25-1.fc38.x86_64 Error: Transaction failed Expected Results: chkconfig upgrades to 1.25 When attempted to do it with rpm command I got the below error: [root@sattia ~]# rpm -Uvh chkconfig-1.25-1.fc38.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:chkconfig-1.25-1.fc38 ################################# [ 50%] error: unpacking of archive failed on file /etc/init.d;64d1f0a8: cpio: File from package already exists as a directory in system error: chkconfig-1.25-1.fc38.x86_64: install failed error: chkconfig-1.24-1.fc38.x86_64: erase skipped
Unfortunately, this is not a problem in chkconfig. Something else created the /etc/init.d directory. On Fedora, /etc/init.d should be a symlink to /etc/rc.d/init.d. [lnykryn@notas ~]$ readlink /etc/init.d rc.d/init.d But you can fix it manually. Move the content of /etc/init.d to /etc/rc.d/init.d, delete the directory and create the symlink.
Thanks..I did it as per your suggestion and it worked. It was also breaking Plasma Discover to complete the upgrade and it worked like a charm also.