Re: Circular initscript dependency prevents use of aptitude on wheezy

2013-11-25 Thread Jonathan Dowland
I recall hitting something like this when I tried mediatomb. I would
suggest filing a bug (I didn't/can't find out for this at the moment).

More pragmatically I gave up on mediatomb and installed minidlna.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131125094540.gb15...@bryant.redmars.org



Re: Circular initscript dependency prevents use of aptitude on wheezy

2013-11-25 Thread Bob Proulx
Hendrik Boom wrote:
 Somehow, I seem to have a circular initscript dependency.
 It seems to be complaining about the package mediatomb; furthemore, the 
 problem first appeared shortly after I installed mediatomb.
 I tried uninstalling mediatomb, but it gets nowhere, because aptitude 
 balks upon detecting the circular dependency.

Since Jonathan also said he had problems with mediatomb that would
support it being a bug in that package.  So uninstalling mediatomb
does seem to be the right fix.

Because the tools are in a confused state you will need to manually
and forcibly unconfuse them.  The lower level problem you are seeing
is that 'insserv' is seeing a loop.  Therefore I suggest breaking the
loop in mediatomb's init script.  I would do so by removing the init
script.  Or moving it aside if you like so that you can examine it.  I
didn't try it and so I might have made a typo here but here are the
general steps.

  # mv /etc/init.d/mediatomb /tmp/
  # update-rc.d mediatomb remove

That update-rc.d command should also trigger insserv and without the
problematic init script in place it should now be able to set a
correct dependency order.  You can verify this yourself by running
insserv manually and looking at any output.

  # insserv
  ...no output is good output...

Then try configuring all unconfigured packages.  Might not be needed
but safe to do.  Then purge mediatomb.  Purging will remove any /etc
conffiles including the /etc/init.d/mediatomb that had to be removed
manually.  (Normally we might recommend remove but in this case
purge is needed to completely clear all parts of it from the
system.)

  # dpkg --configure -a
  # apt-get install -f
  # apt-get purge mediatomb

Not all of this might be needed.  It might simply be enough to purge
mediatomb afterward.

Bob


signature.asc
Description: Digital signature


Re: Circular initscript dependency prevents use of aptitude on wheezy

2013-11-23 Thread Andrei POPESCU
On Jo, 21 nov 13, 15:22:39, Hendrik Boom wrote:
 Somehow, I seem to have a circular initscript dependency.
 It seems to be complaining about the package mediatomb; furthemore, the 
 problem first appeared shortly after I installed mediatomb.
 I tried uninstalling mediatomb, but it gets nowhere, because aptitude 
 balks upon detecting the circular dependency.
 
 I ran
 
 aptitude upgrade | tee mediatomb-problem
 
 Here's the relevant message, out of all the stuff it produces:
 
 insserv: There is a loop between service mediatomb and modutils if stopped
 insserv:  loop involving service modutils at depth 2
 insserv:  loop involving service mediatomb at depth 1
 insserv: Stopping modutils depends on mediatomb and therefore on system 
 facility `$all' which can not be true!
 insserv: exiting now without changing boot order!
 update-rc.d: error: insserv rejected the script header

You have a lot of cruft on your system. I'd try

aptitude search ~c

and if the list looks reasonable then follow-up with

aptitude purge ~c


If you still have problems you can use 'dpkg -S' to find other 
initscripts not belonging to any installed packages and remove them.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Circular initscript dependency prevents use of aptitude on wheezy

2013-11-21 Thread Hendrik Boom
Somehow, I seem to have a circular initscript dependency.
It seems to be complaining about the package mediatomb; furthemore, the 
problem first appeared shortly after I installed mediatomb.
I tried uninstalling mediatomb, but it gets nowhere, because aptitude 
balks upon detecting the circular dependency.

I ran

aptitude upgrade | tee mediatomb-problem

Here's the relevant message, out of all the stuff it produces:

insserv: There is a loop between service mediatomb and modutils if stopped
insserv:  loop involving service modutils at depth 2
insserv:  loop involving service mediatomb at depth 1
insserv: Stopping modutils depends on mediatomb and therefore on system 
facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header


In addition, there are a lot of messages like:

insserv: warning: script 'nvidia-glx' missing LSB tags and overrides

I had thought all those problems had been eliminated before wheezy was 
promoted to stable.

For the record, here's the complete output from that orun f aptitude:

Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
Resolving dependencies...
The following packages will be upgraded:
  bind9-host chromium chromium-browser chromium-inspector chrony cupsddk 
  dbus dbus-x11 devscripts dnsutils dpkg-dev dselect fancontrol 
  ghostscript-cups gnome-shell gnome-shell-common gnupg-curl grub-common 
  grub-pc grub-pc-bin grub2-common gxine gxineplugin imagemagick 
  libbind9-80 libdns88 libdpkg-perl libisc84 libisccc80 libisccfg82 
  liblwres80 libmodplug1 libquvi-scripts linux-libc-dev lm-sensors lvm2 
  mutt python python-dev python-httplib2 python-minimal python-openssl 
  tzdata tzdata-java 
The following partially installed packages will be configured:
  cups initscripts samba 
44 packages upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/61.0 MB of archives. After unpacking 8,928 kB will be 
used.
Do you want to continue? [Y/n/?] Writing extended state information...
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: warning: script 'K02resolvconf' missing LSB tags and overrides
insserv: warning: script 'K02dhcp' missing LSB tags and overrides
insserv: warning: script 'K02hotplug-net' missing LSB tags and overrides
insserv: warning: script 'K02mzscheme' missing LSB tags and overrides
insserv: warning: script 'K02nvidia-glx' missing LSB tags and overrides
insserv: warning: script 'S22ipmasq-kmod' missing LSB tags and overrides
insserv: warning: script 'S22hotplug' missing LSB tags and overrides
insserv: warning: script 'S22ipmasq' missing LSB tags and overrides
insserv: warning: script 'S22initrd-tools.sh' missing LSB tags and 
overrides
insserv: warning: script 'ipmasq-kmod' missing LSB tags and overrides
insserv: warning: script 'dhcp' missing LSB tags and overrides
insserv: warning: script 'hotplug' missing LSB tags and overrides
insserv: warning: script 'modutils' missing LSB tags and overrides
insserv: warning: script 'ipmasq' missing LSB tags and overrides
insserv: warning: script 'initrd-tools.sh' missing LSB tags and overrides
insserv: warning: script 'nvidia-glx' missing LSB tags and overrides
insserv: warning: script 'resolvconf' missing LSB tags and overrides
insserv: warning: script 'mzscheme' missing LSB tags and overrides
insserv: warning: script 'hotplug-net' missing LSB tags and overrides
insserv: There is a loop between service mediatomb and modutils if stopped
insserv:  loop involving service modutils at depth 2
insserv:  loop involving service mediatomb at depth 1
insserv: Stopping modutils depends on mediatomb and therefore on system 
facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 
1
Errors were encountered while processing:
 initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up samba (2:3.6.6-6+deb7u1) ...
insserv: warning: script 'K02resolvconf' missing LSB tags and overrides
insserv: warning: script 'K02dhcp' missing LSB tags and overrides
insserv: warning: script 'K02hotplug-net' missing LSB tags and overrides
insserv: warning: script 'K02mzscheme' missing LSB tags and overrides
insserv: warning: script 'K02nvidia-glx' missing LSB tags and overrides
insserv: warning: script 'S22ipmasq-kmod' missing LSB tags and overrides
insserv: warning: script 'S22hotplug' missing LSB tags and overrides
insserv: warning: script 'S22ipmasq' missing LSB tags and overrides
insserv: warning: script 'S22initrd-tools.sh' missing LSB tags and 
overrides
insserv: