Bug#998893: closed by Debian FTP Masters (reply to Matthew Vernon ) (Bug#998893: fixed in orphan-sysvinit-scripts 0.09)

2021-11-30 Thread Matthew Vernon

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



Bug#998893: closed by Debian FTP Masters (reply to Matthew Vernon ) (Bug#998893: fixed in orphan-sysvinit-scripts 0.09)

2021-11-20 Thread tito
On Sun, 21 Nov 2021 02:09:55 +0100
Axel Beckert  wrote:

> Hi,
> 
> On Wed, Nov 10, 2021 at 05:48:38PM +, Matthew Vernon wrote:
> > On 10/11/2021 16:51, Adam Borowski wrote:
> > > On Wed, Nov 10, 2021 at 12:21:09PM +, 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 
> > > >  (reply to Matthew Vernon 
> > > > ).
> > > 
> > > 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

Hi,
couldn't renaming the scripts in the orphan-sysvinit-scripts package be a 
solution to solve this?
E.g from nftables to nftables-sv or nftables.sh or nftables-s5i or 
nftables-orphan.
Just my 0,2 cents.
Ciao,
Tito



Bug#998893: closed by Debian FTP Masters (reply to Matthew Vernon ) (Bug#998893: fixed in orphan-sysvinit-scripts 0.09)

2021-11-20 Thread Axel Beckert
Hi,

On Wed, Nov 10, 2021 at 05:48:38PM +, Matthew Vernon wrote:
> On 10/11/2021 16:51, Adam Borowski wrote:
> > On Wed, Nov 10, 2021 at 12:21:09PM +, 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 
> > >  (reply to Matthew Vernon 
> > > ).
> > 
> > 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 , 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



Bug#998893: closed by Debian FTP Masters (reply to Matthew Vernon ) (Bug#998893: fixed in orphan-sysvinit-scripts 0.09)

2021-11-10 Thread Matthew Vernon

On 10/11/2021 16:51, Adam Borowski wrote:

On Wed, Nov 10, 2021 at 12:21:09PM +, 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  (reply to 
Matthew Vernon ).


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!



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

Regards,

Matthew



Bug#998893: closed by Debian FTP Masters (reply to Matthew Vernon ) (Bug#998893: fixed in orphan-sysvinit-scripts 0.09)

2021-11-10 Thread Adam Borowski
On Wed, Nov 10, 2021 at 12:21:09PM +, 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  
> (reply to Matthew Vernon ).

Alas, systems that were affected by this bug still fail to upgrade:

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)

Not sure how many folks have upgraded in the meantime, but I guess we should
check for upgrades from 0.08 and recover.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ If you ponder doing what Jesus did, remember than flipping tables
⢿⡄⠘⠷⠚⠋⠀ and chasing people with a whip is a prime choice.
⠈⠳⣄