Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

missing LSB tags and overrides

160 views
Skip to first unread message

Tony van der Hoff

unread,
Jul 23, 2014, 3:50:02 AM7/23/14
to
Any suggestions on how to fix this please?


insserv: warning: script 'K01kerneld' missing LSB tags and overrides
insserv: warning: script 'K01apache' missing LSB tags and overrides
insserv: warning: script 'S15modutils' missing LSB tags and overrides
insserv: warning: script 'S15libdevmapper1.02' missing LSB tags and
overrides
insserv: warning: script 'S15xfree86-common' missing LSB tags and overrides
insserv: warning: script 'xfree86-common' missing LSB tags and overrides
insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides
insserv: warning: script 'modutils' missing LSB tags and overrides
insserv: warning: script 'iptables' missing LSB tags and overrides
insserv: warning: script 'kerneld' missing LSB tags and overrides
insserv: warning: script 'apache' missing LSB tags and overrides

--
Tony van der Hoff | mailto:to...@vanderhoff.org
Ari�ge, France |


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/53CF6714...@vanderhoff.org

Darac Marjal

unread,
Jul 23, 2014, 9:30:02 AM7/23/14
to
On Wed, Jul 23, 2014 at 09:41:08AM +0200, Tony van der Hoff wrote:
> Any suggestions on how to fix this please?
>
>
> insserv: warning: script 'K01kerneld' missing LSB tags and overrides
> insserv: warning: script 'K01apache' missing LSB tags and overrides
> insserv: warning: script 'S15modutils' missing LSB tags and overrides
> insserv: warning: script 'S15libdevmapper1.02' missing LSB tags and
> overrides
> insserv: warning: script 'S15xfree86-common' missing LSB tags and overrides
> insserv: warning: script 'xfree86-common' missing LSB tags and overrides
> insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides
> insserv: warning: script 'modutils' missing LSB tags and overrides
> insserv: warning: script 'iptables' missing LSB tags and overrides
> insserv: warning: script 'kerneld' missing LSB tags and overrides
> insserv: warning: script 'apache' missing LSB tags and overrides

Step 1. Purge unconfigured packages providing init scripts. That is,
init scripts are considers conffiles so removing the package doesn't
remove the file. Because the package is removed, it doesn't get updates
to fix problems such as above.

Step 2. If you have any init scripts that you developed yourself, add
proper headers[1] to the script.

Step 3. If you have any init scripts that are provided by a third party,
add the proper headers to a file in /etc/insserv/overrides. The filename
must match that of the init script (not the symlinks thereto).


[1]: https://wiki.debian.org/LSBInitScripts/

>
> --
> Tony van der Hoff | mailto:to...@vanderhoff.org
> Ariège, France |
signature.asc

Florent Bories

unread,
Jul 23, 2014, 1:30:03 PM7/23/14
to

Hi,

http://help.directadmin.com/item.php?id=379

Regards,
Florent

Le 23 juil. 2014 09:41, "Tony van der Hoff" <to...@vanderhoff.org> a écrit :
Any suggestions on how to fix this please?


insserv: warning: script 'K01kerneld' missing LSB tags and overrides
insserv: warning: script 'K01apache' missing LSB tags and overrides
insserv: warning: script 'S15modutils' missing LSB tags and overrides
insserv: warning: script 'S15libdevmapper1.02' missing LSB tags and
overrides
insserv: warning: script 'S15xfree86-common' missing LSB tags and overrides
insserv: warning: script 'xfree86-common' missing LSB tags and overrides
insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides
insserv: warning: script 'modutils' missing LSB tags and overrides
insserv: warning: script 'iptables' missing LSB tags and overrides
insserv: warning: script 'kerneld' missing LSB tags and overrides
insserv: warning: script 'apache' missing LSB tags and overrides

--
Tony van der Hoff  | mailto:to...@vanderhoff.org
Ariège, France     |

Sven Hartge

unread,
Jul 23, 2014, 1:40:01 PM7/23/14
to
Florent Bories <florent...@gmail.com> wrote:

> http://help.directadmin.com/item.php?id=379

No. Don't remove insserv. Unless you want to deliberately wreck your
system. Removing insserv is like shooting a person in the head to cure an
itch in the foot.

The correct answer was already given: purge any left over conf-files.

You can do this en masse by using "aptitude purge ~c". The selector "~c"
matches any package which has been removed but not purged.

Then check if you or third-party software added an init-script and add
the needed LSB headers yourself.

Grüße,
Sven.

--
Sigmentation fault. Core dumped.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/0arrga...@mids.svenhartge.de

Chris Bannister

unread,
Jul 23, 2014, 2:30:02 PM7/23/14
to
On Wed, Jul 23, 2014 at 09:41:08AM +0200, Tony van der Hoff wrote:
> Any suggestions on how to fix this please?
>
>
> insserv: warning: script 'K01kerneld' missing LSB tags and overrides
> insserv: warning: script 'K01apache' missing LSB tags and overrides
> insserv: warning: script 'S15modutils' missing LSB tags and overrides
> insserv: warning: script 'S15libdevmapper1.02' missing LSB tags and
> overrides
> insserv: warning: script 'S15xfree86-common' missing LSB tags and overrides
> insserv: warning: script 'xfree86-common' missing LSB tags and overrides
> insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides
> insserv: warning: script 'modutils' missing LSB tags and overrides
> insserv: warning: script 'iptables' missing LSB tags and overrides
> insserv: warning: script 'kerneld' missing LSB tags and overrides
> insserv: warning: script 'apache' missing LSB tags and overrides

Add quiet to the kernel command line.
(They are only warnings, not errors.)

--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140723182251.GH24255@tal

Florent Bories

unread,
Jul 23, 2014, 2:50:02 PM7/23/14
to


Le 23 juil. 2014 19:34, "Sven Hartge" <sv...@svenhartge.de> a écrit :
>
> Florent Bories <florent...@gmail.com> wrote:
>
> > http://help.directadmin.com/item.php?id=379
>
> No. Don't remove insserv. Unless you want to deliberately wreck your
> system. Removing insserv is like shooting a person in the head to cure an
> itch in the foot.
>
> The correct answer was already given: purge any left over conf-files.
>
> You can do this en masse by using "aptitude purge ~c". The selector "~c"
> matches any package which has been removed but not purged.
>
> Then check if you or third-party software added an init-script and add
> the needed LSB headers yourself.
>
> Grüße,
> Sven.

Thanks for the precision and sorry for the wrong and late answer (my mailclient was not correctly synchronized... and I read too quickly my link apparently)

Best regards,
Florent

Tony van der Hoff

unread,
Jul 24, 2014, 6:40:03 AM7/24/14
to
On 23/07/14 15:24, Darac Marjal wrote:
> On Wed, Jul 23, 2014 at 09:41:08AM +0200, Tony van der Hoff wrote:
>> Any suggestions on how to fix this please?
>>
>>
>> insserv: warning: script 'K01kerneld' missing LSB tags and overrides
>> insserv: warning: script 'K01apache' missing LSB tags and overrides
>> insserv: warning: script 'S15modutils' missing LSB tags and overrides
>> insserv: warning: script 'S15libdevmapper1.02' missing LSB tags and
>> overrides
>> insserv: warning: script 'S15xfree86-common' missing LSB tags and overrides
>> insserv: warning: script 'xfree86-common' missing LSB tags and overrides
>> insserv: warning: script 'libdevmapper1.02' missing LSB tags and overrides
>> insserv: warning: script 'modutils' missing LSB tags and overrides
>> insserv: warning: script 'iptables' missing LSB tags and overrides
>> insserv: warning: script 'kerneld' missing LSB tags and overrides
>> insserv: warning: script 'apache' missing LSB tags and overrides
>
> Step 1. Purge unconfigured packages providing init scripts. That is,
> init scripts are considers conffiles so removing the package doesn't
> remove the file. Because the package is removed, it doesn't get updates
> to fix problems such as above.
>
> Step 2. If you have any init scripts that you developed yourself, add
> proper headers[1] to the script.
>
> Step 3. If you have any init scripts that are provided by a third party,
> add the proper headers to a file in /etc/insserv/overrides. The filename
> must match that of the init script (not the symlinks thereto).
>

Thanks for all the replies, of which this one seems the most comprehensive.

I have no 3rd party scripts, nor do I have any home-brew scripts.

>From the warning messages, I'll assume that the packages to purge would
be xfree86-common, libdevmapper1.02, iptables, kerneld, and apache. Of
those only iptables appears in the current wheezy list.

So:
root@shell2:/etc# apt-get -s purge xfree86-common, libdevmapper1.02,
iptables, kerneld, apache
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apache' is not installed, so not removed
E: Unable to locate package xfree86-common,
E: Unable to locate package libdevmapper1.02,
E: Couldn't find any package by regex 'libdevmapper1.02,'
E: Unable to locate package iptables,
E: Unable to locate package kerneld,


I presume I could just delete those scripts.

Is that correct?


--
Tony van der Hoff | mailto:to...@vanderhoff.org
Ariège, France |


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/53D0E106...@vanderhoff.org

Darac Marjal

unread,
Jul 24, 2014, 7:20:01 AM7/24/14
to
Try "dpkg -l | grep '^rc'" to list the packages that you have which are
removed, but not purged. If that doesn't help, then yes, you should be
fine to just delete them.
signature.asc

Tony van der Hoff

unread,
Jul 24, 2014, 8:50:02 AM7/24/14
to
On 24/07/14 13:16, Darac Marjal wrote:

> Try "dpkg -l | grep '^rc'" to list the packages that you have which are
> removed, but not purged. If that doesn't help, then yes, you should be
> fine to just delete them.
>
OK, Thanks very much. Lots of hits:

root@vanderhoff:~# dpkg -l | grep '^rc'
rc apache 1.3.34-4.1+etch1
i386 versatile, high-performance HTTP server
rc apache-common 1.3.34-4.1+etch1
i386 support files for all Apache webservers
rc cyrus-admin-2.2 2.2.13-14+lenny3
all Cyrus mail system (administration tools)
rc cyrus-common-2.2 2.2.13-14+lenny3
i386 Cyrus mail system (common files)
rc cyrus-imapd-2.2 2.2.13-14+lenny3
i386 Cyrus mail system (IMAP support)
rc cyrus-pop3d-2.2 2.2.13-14+lenny3
i386 Cyrus mail system (POP3 support)
rc defoma 0.11.11
all Debian Font Manager -- automatic font configuration framework
rc dovecot-common 1:1.0.15-2.3+lenny1
i386 secure mail server that supports mbox and maildir mailboxes
rc dovecot-imapd 1:1.0.15-2.3+lenny1
i386 secure IMAP server that supports mbox and maildir mailboxes


and many more.

How do I join this output into the purge command to save typing in each
package name?

--
Tony van der Hoff | mailto:to...@vanderhoff.org
Ariège, France |


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/53D0FF5A...@vanderhoff.org

Brian

unread,
Jul 24, 2014, 9:50:01 AM7/24/14
to
On Thu 24 Jul 2014 at 14:43:06 +0200, Tony van der Hoff wrote:

> How do I join this output into the purge command to save typing in each
> package name?

A=$(dpkg -l | sed '1,5d' | grep ^rc | awk -F" " '{print $2}')

dpkg -P $A


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2407201414373...@desktop.copernicus.demon.co.uk

Steve Kemp

unread,
Jul 24, 2014, 10:10:02 AM7/24/14
to
On Thu Jul 24, 2014 at 14:40:14 +0100, Brian wrote:

> > How do I join this output into the purge command to save typing in each
> > package name?
>
> A=$(dpkg -l | sed '1,5d' | grep ^rc | awk -F" " '{print $2}')

That seems needlessly complex, using both sed and awk.

Removing sed you could use this:

dpkg --list | grep ^rc | awk '{print $2}'

And given that awk can be used to match you could drop the grep too:

dpkg --list | awk '/^rc/ {print $2}'

Steve
--
# git-based dns hosting.
https://dns-api.com/


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140724140...@steve.org.uk

Darac Marjal

unread,
Jul 24, 2014, 10:40:01 AM7/24/14
to
On Thu, Jul 24, 2014 at 03:07:37PM +0100, Steve Kemp wrote:
> On Thu Jul 24, 2014 at 14:40:14 +0100, Brian wrote:
>
> > > How do I join this output into the purge command to save typing in each
> > > package name?
> >
> > A=$(dpkg -l | sed '1,5d' | grep ^rc | awk -F" " '{print $2}')
>
> That seems needlessly complex, using both sed and awk.
>
> Removing sed you could use this:
>
> dpkg --list | grep ^rc | awk '{print $2}'
>
> And given that awk can be used to match you could drop the grep too:
>
> dpkg --list | awk '/^rc/ {print $2}'

All this, of course, assumes the OP doesn't want to use the previously
mentioned suggestion of "aptitude purge '~c'". And that's fair enough;
aptitude is not to everyone's taste.

signature.asc

Tony van der Hoff

unread,
Jul 25, 2014, 4:00:02 AM7/25/14
to
As the OP, I don't recall seeing any previous suggestion of aptitude
purge ~c. But, no matter, I'm quite happy using aptitude, I just don't
know much about it. But then I feel somewhat ill-informed about any of
the packaging commands, and tend to stick with synaptic, which is no
good on a headless server. I guess there must be beginner-level
documentation about for the packaging system, but I've not seen it. The
plethora of commands doesn't help.

So, I applied that incantation (after trying it with the -s option first
:), and it went through its paces overnight. Unlikely to be
coincidental, mysql server ceased to be responsive, but a service
restart fixed that.

So, Darac, Thank you again for your most insightful help; I'm not sure I
would have got there without it. And I learned a tiny bit more about the
packaging commands ;)

Cheers!

--
Tony van der Hoff | mailto:to...@vanderhoff.org
Ariège, France |


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/53D20CBE...@vanderhoff.org

Tom H

unread,
Jul 27, 2014, 7:00:02 AM7/27/14
to
On Thu, Jul 24, 2014 at 10:34 AM, Darac Marjal <maili...@darac.org.uk> wrote:
>
> All this, of course, assumes the OP doesn't want to use the previously
> mentioned suggestion of "aptitude purge '~c'". And that's fair enough;
> aptitude is not to everyone's taste.

If you'd rather not use aptitude to purge packages, you can still use
it to search:

apt-get purge $(aptitude search ~c -F %p)


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/CAOdo=SzbqSd2=H8AOcc_9L=ttbr+HXuuN=rXGikztc...@mail.gmail.com
0 new messages