I have a couple of in use C7 boxes that were built with ntsysv and chkconfig for some old packages that needed to start using init.d. (The person setting these up didn't know about systemd creating service files for older packages, so we're stuck with these as-is. Here's my problem: Error unpacking rpm package chkconfig-1.7.2-1.el7.x86_64 error: unpacking of archive failed on file /etc/init.d: cpio: rename chkconfig-1.3.61-4.el7.x86_64 was supposed to be removed but is not! I can't update the entire system because of this boondoggle and I can't come up with a way to resolve this safely on a running system. WTH is going on, and why is this a problem? And how the devil do I fix it? -- Mark Haney Network Engineer at NeoNova 919-460-3330 option 1 mark.haney at neonova.net www.neonova.net
> On Jul 10, 2017, at 10:56, Mark Haney <mark.haney at neonova.net> wrote: > > I have a couple of in use C7 boxes that were built with ntsysv and chkconfig for some old packages that needed to start using init.d. (The person setting these up didn't know about systemd creating service files for older packages, so we're stuck with these as-is. Here's my problem: > > Error unpacking rpm package chkconfig-1.7.2-1.el7.x86_64 > error: unpacking of archive failed on file /etc/init.d: cpio: rename > chkconfig-1.3.61-4.el7.x86_64 was supposed to be removed but is not! > > > I can't update the entire system because of this boondoggle and I can't come up with a way to resolve this safely on a running system. WTH is going on, and why is this a problem? And how the devil do I fix it?/etc/init.d should be a symlink to /etc/rc.d/init.d. Someone must have created that directory after removing the symlink. You probably need to rename the directory, restore the symlink and move any files in the renamed directory to the correct directory. -- Jonathan Billings <billings at negate.org>
On 07/10/2017 04:11 PM, Jonathan Billings wrote:> > >> On Jul 10, 2017, at 10:56, Mark Haney <mark.haney at neonova.net> wrote: >> >> I have a couple of in use C7 boxes that were built with ntsysv and chkconfig for some old packages that needed to start using init.d. (The person setting these up didn't know about systemd creating service files for older packages, so we're stuck with these as-is. Here's my problem: >> >> Error unpacking rpm package chkconfig-1.7.2-1.el7.x86_64 >> error: unpacking of archive failed on file /etc/init.d: cpio: rename >> chkconfig-1.3.61-4.el7.x86_64 was supposed to be removed but is not! >> >> >> I can't update the entire system because of this boondoggle and I can't come up with a way to resolve this safely on a running system. WTH is going on, and why is this a problem? And how the devil do I fix it? > /etc/init.d should be a symlink to /etc/rc.d/init.d. Someone must have created that directory after removing the symlink. You probably need to rename the directory, restore the symlink and move any files in the renamed directory to the correct directory. >Well, it was slightly more complicated than that. But yeah, in essence that's what I needed to do. Unfortunately, the move to systemd is a bloody nightmare and after the systemd-resolved vulnerabilities, I'd pay good money for RH/CentOS to trash that pile of crap. -- Mark Haney Network Engineer at NeoNova 919-460-3330 option 1 mark.haney at neonova.net www.neonova.net