Hi,

On Wed, Nov 10, 2021 at 05:48:38PM +0000, Matthew Vernon wrote:
> On 10/11/2021 16:51, Adam Borowski wrote:
> > On Wed, Nov 10, 2021 at 12:21:09PM +0000, Debian Bug Tracking System wrote:
> > > #998893: orphan-sysvinit-scripts: fails to configure: "not replacing 
> > > deleted config file /etc/init.d/rsyslog"
> > > It has been closed by Debian FTP Masters 
> > > <ftpmas...@ftp-master.debian.org> (reply to Matthew Vernon 
> > > <matt...@debian.org>).
> > 
> > Alas, systems that were affected by this bug still fail to upgrade:
> 
> Yes, I'm afraid that's expected (because ucf still "knows" that the user
> deleted /etc/init.d/rsyslog). Sorry!

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
dpkg: error processing package orphan-sysvinit-scripts (--configure):
 installed orphan-sysvinit-scripts package post-installation script subprocess 
returned error exit status 1

Shall I open a new bug or is this considered the same issue?

Hmm, after reading the changelog entry for this fix:

  * Check for scripts still owned by another package (Closes: #998893)

This sounds like a quite generic fix.

> > dpkg-query: no path found matching pattern /etc/init.d/rsyslog
> > Not replacing deleted config file /etc/init.d/rsyslog
> > update-rc.d: error: initscript does not exist: /etc/init.d/rsyslog
> > dpkg: error processing package orphan-sysvinit-scripts (--configure):
> >   installed orphan-sysvinit-scripts package post-installation script 
> > subprocess returned error exit status 1
> > Processing triggers for man-db (2.9.4-2) ...
> > Errors were encountered while processing:
> >   orphan-sysvinit-scripts
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I think the easiest fix is:
> ln -s /usr/share/orphan-sysvinit-scripts/rsyslog /etc/init.d/rsyslog
> 
> And then dpkg --pending --configure should work OK

So I tried this for nftables as well, but it seems to have made things
worse:

# 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
dpkg: error processing package orphan-sysvinit-scripts (--configure):
 installed orphan-sysvinit-scripts package post-installation script subprocess 
returned error exit status 1
Errors were encountered while processing:
 orphan-sysvinit-scripts

Any adivce here?

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to