Ask Your Question

F25 chkconfig upgrade fails

asked 2017-05-18 09:11:47 -0600

archlight gravatar image

Today I upgraded Fedora from F23 to F25.

Everything went well but "chkconfig" fails to upgrade. Here's the output from "dnf upgrade":

Upgrading: chkconfig x86_64 1.8-1.fc25 fedora 179 k

Running transaction check

Transaction check succeeded.

Running transaction Upgrading : chkconfig-1.8-1.fc25.x86_64 1/2

Error unpacking rpm package chkconfig-1.8-1.fc25.x86_64

Error unpacking rpm package chkconfig-1.8-1.fc25.x86_64

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

chkconfig-1.8-1.fc25.x86_64 was supposed to be installed but is not!

Verifying : chkconfig-1.8-1.fc25.x86_64 1/2

chkconfig-1.7-1.fc23.x86_64 was supposed to be removed but is not!

Verifying : chkconfig-1.7-1.fc23.x86_64 2/2

Failed: chkconfig.x86_64 1.8-1.fc25

Did anyone encountered this issue or have some insight how to resolve it? Thank you!

edit retag flag offensive close merge delete


did everything else upgrade correctly and have you restarted?

jlozadad gravatar imagejlozadad ( 2017-05-18 14:17:42 -0600 )edit

Yes, everything else went well and upgraded correctly. I restarted the system.

archlight gravatar imagearchlight ( 2017-05-19 01:17:24 -0600 )edit

6 Answers

Sort by ยป oldest newest most voted

answered 2017-05-19 00:15:54 -0600

subpop gravatar image

Try clearing your packages cache and upgrade it again. Maybe the package on the mirror you downloaded it from was bad.

dnf clean packages && dnf update

edit flag offensive delete link more


I just run clean packages and update, the result is the same as described in the original post, failed to upgrade "chkconfig".

archlight gravatar imagearchlight ( 2017-05-19 01:09:01 -0600 )edit

answered 2017-06-08 19:40:51 -0600

steveebey73742 gravatar image

try sudo dnf remove chkconfig to get rid of 1.7. then sudo dnf clean all to clear the entire cache, followed by sudo dnf install chkconfig and since you are upgraded to F25, it should grab the latest.

edit flag offensive delete link more


It won't let me remove chkconfig, it results in error: Error: The operation would result in removing the following protected packages: systemd, sudo, systemd-udev, dnf.

archlight gravatar imagearchlight ( 2017-06-14 09:08:21 -0600 )edit

answered 2017-06-08 17:52:46 -0600

Since I can't really reproduce the problem, I am (still) flying blind. If your are still dealing with this problem, here are addition things to try.

This is a sledgehammer approach. It will cause dnf to complain until the next successful update about changes made outside of dnf.

Make sure dnf-plugins-core package is installed.

dnf list installed dnf-plugins-core

If it is not installed, install it.

sudo dnf install dnf-plugins-core

Download the chkconfig-1.8 RPM file.

dnf download chkconfig-1.8

Install this package using the rpm --install --replacefiles --replacepkgs command or rpm --install --force command.

sudo rpm --install --replacefiles --replacepkgs chkconfig-1.8-1.fc25.x86_64.rpm


sudo rpm --install --force chkconfig-1.8-1.fc25.x86_64.rpm

If the package successfully installs, see what is reported by dnf as installed.

dnf list installed chkconfig

If both versions are listed use dnf to remove the chkconfig-1.7. If this succeeds, to make sure chkconfig-1.8 is consistent, I would reinstall chkconfig-1.8.

sudo dnf remove chkconfig-1.7

sudo dnf reinstall chkconfig-1.8

Again, I hope it solves the problem.

edit flag offensive delete link more


Unfortunately, installing rpm results in similar error: error: unpacking of archive failed on file /etc/init.d: cpio: rename error: chkconfig-1.8-1.fc25.x86_64: install failed

archlight gravatar imagearchlight ( 2017-06-14 09:09:50 -0600 )edit

answered 2017-07-25 20:44:11 -0600

I had the same problem on f26 and suspected that it was because I had local init scripts in /etc/init.d. I solved it with

# dnf download chkconfig-1.10
# mv /etc/init.d /etc/init.d~ 
# rpm --install --verbose --force chkconfig-1.10-1.fc26.x86_64.rpm
# mv /etc/init.d~/<my-scripts> /etc/init.d/
# rmdir /etc/init.d~
edit flag offensive delete link more


Confirmed working. Thanks.

lhartmann gravatar imagelhartmann ( 2017-08-02 08:21:39 -0600 )edit

answered 2017-05-19 20:07:19 -0600


dnf upgrade-to chkconfig-1.8-1

I hope it works!

edit flag offensive delete link more


Unfortunately that produces the same error as mentioned earlier.

archlight gravatar imagearchlight ( 2017-05-22 02:54:45 -0600 )edit

answered 2017-07-25 20:34:54 -0600

I solved it on f26 (similar problem) by renaming /etc/init.d to /etc/init.d~ and installing the new version with

# rpm --install --verbose --force chkconfig-1.10-1.fc26.x86_64.rpm
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-05-18 09:11:47 -0600

Seen: 244 times

Last updated: Jun 08 '17