Hi,

On 21/11/2021 01:09, Axel Beckert wrote:

Seems to have worked for me, but now I get the same error for 
/etc/init.d/nftables:

Setting up orphan-sysvinit-scripts (0.10) ...
/usr/bin/which: this version of `which' is deprecated; use `command -v' in 
scripts instead.
/usr/bin/which: this version of `which' is deprecated; use `command -v' in 
scripts instead.
Not replacing deleted config file /etc/init.d/nftables
update-rc.d: error: initscript does not exist: /etc/init.d/nftables

So I'm wondering what deleted /etc/init.d/nftables - AFAICT it hasn't been in the Debian package for a while.

This sounds like a quite generic fix.

It is - but it only works for future changes - it can't retroactively fix a file that orphan-sysvinit-scripts registered with ucf while the associated package was still claiming the file itself (and so able to remove it); I don't think it's plausible to try and retroactively fix that, but it should be fixed from 0.09 onwards.

# ln -s /usr/share/orphan-sysvinit-scripts/nftables /etc/init.d/nftables
# dpkg --pending --configure
Setting up orphan-sysvinit-scripts (0.10) ...
/usr/bin/which: this version of `which' is deprecated; use `command -v' in 
scripts instead.
/usr/bin/which: this version of `which' is deprecated; use `command -v' in 
scripts instead.
cp: '/usr/share/orphan-sysvinit-scripts/nftables' and 
'/usr/share/orphan-sysvinit-scripts/nftables' are the same file

What do:
ls -l /etc/init.d/nftables
ucf -d /usr/share/orphan-sysvinit-scripts/nftables /etc/init.d/nftables

say?

Regards,

Matthew

Reply via email to