Announcement

Collapse
No announcement yet.

dist-upgrade failing on systemd related packages

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    dist-upgrade failing on systemd related packages

    Stuck and can't go further.
    dist-upgrade, apt-get install -f, and dpkg --configure -a all failing to clear this problem


    root@Crynfyd:/# sudo dpkg --configure -a
    Setting up initscripts (2.88dsf-41ubuntu17) ...
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: warning: current stop runlevel(s) (5) of script `killprocs' overrides LSB defaults (empty).
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: warning: script 'showfsck' missing LSB tags and overrides
    insserv: warning: script 'K02showfsck' missing LSB tags and overrides
    insserv: script rc.local: service rc.local already provided!
    insserv: exiting now!
    update-rc.d: error: insserv rejected the script header
    dpkg: error processing package initscripts (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of upstart-bin:
    upstart-bin depends on initscripts; however:
    Package initscripts is not configured yet.

    dpkg: error processing package upstart-bin (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of systemd:
    systemd depends on initscripts (>= 2.88dsf-17); however:
    Package initscripts is not configured yet.

    dpkg: error processing package systemd (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of upstart:
    upstart depends on upstart-bin (= 1.13.1-0ubuntu3); however:
    Package upstart-bin is not configured yet.
    upstart depends on initscripts; however:
    Package initscripts is not configured yet.

    dpkg: error processing package upstart (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of friendly-recovery:
    friendly-recovery depends on upstart | systemd-sysv; however:
    Package upstart is not configured yet.
    Package systemd-sysv is not installed.

    dpkg: error processing package friendly-recovery (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
    libpam-systemd:amd64 depends on systemd (= 208-8ubuntu1); however:
    Package systemd is not configured yet.

    dpkg: error processing package libpam-systemd:amd64 (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    initscripts
    upstart-bin
    systemd
    upstart
    friendly-recovery
    libpam-systemd:amd64
    Last edited by doctordruidphd; Aug 26, 2014, 01:19 PM.
    We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

    #2
    This from a bug reported in 2009, however, it seems to be relevant:

    https://bugs.launchpad.net/ubuntu/+s...rv/+bug/467000
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Thanks for the tip, but the patch isn't working in this case.
      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

      Comment


        #4
        First thing I'd try is purging package showfsck
        "sudo apt-get purge showfsck"
        Last edited by kubicle; Aug 24, 2014, 12:40 PM.

        Comment


          #5
          Tried that, still no go. I removed showfsck, friendly-recovery, and even removed cron, and when I did, I got:

          ...
          Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
          Setting up initscripts (2.88dsf-41ubuntu17) ...
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: warning: current stop runlevel(s) (5) of script `killprocs' overrides LSB defaults (empty).
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: script rc.local: service rc.local already provided!
          insserv: exiting now!
          update-rc.d: error: insserv rejected the script header
          dpkg: error processing package initscripts (--configure):
          subprocess installed post-installation script returned error exit status 1
          dpkg: dependency problems prevent configuration of upstart-bin:
          upstart-bin depends on initscripts; however:
          Package initscripts is not configured yet.

          dpkg: error processing package upstart-bin (--configure):
          dependency problems - leaving unconfigured
          dpkg: dependency problems prevent configuration of upstart:
          upstart depends on upstart-bin (= 1.13.1-0ubuntu3); however:
          Package upstart-bin is not configured yet.
          upstart depends on initscripts; however:
          Package initscripts is not configured yet.

          dpkg: error processing package upstart (--configure):
          dependency problems - leaving unconfigured

          ...

          I wonder, is this because upstart has been abandoned and everything switched to systemd? Looks like there is an upstart package for installing that has been downloaded, so maybe not.
          We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

          Comment


            #6
            There seems to still be problems with your init.d scripts, could you post the output of these two commands:
            1. grep rc.local /etc/init.d/*
            2. ls -la /etc/init.d

            Originally posted by doctordruidphd View Post
            Tried that, still no go. I removed showfsck, friendly-recovery, and even removed cron, and when I did, I got:
            You'll probably want cron installed, but you can leave it uninstalled until you can get this fixed.

            Originally posted by doctordruidphd View Post
            I wonder, is this because upstart has been abandoned and everything switched to systemd? Looks like there is an upstart package for installing that has been downloaded, so maybe not.
            The migration to systemd isn't fully completed yet on Utopic.

            Comment


              #7
              Thanks for the info on systemd. So upstart isn't the problem.
              I did some more fooling around, and I am now thinking that removing (maybe temporarily) the relevant /etc/init.d scripts may fix it, or at least let it go through.

              Yes, rc.local is in /etc/init.d, and removing it let the dpkg --configure -a go through. I did some other beating up on the system so I will be restoring from backup and retry in the morning.
              Will get back then.
              Thanks.
              We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

              Comment


                #8
                Originally posted by doctordruidphd View Post
                Yes, rc.local is in /etc/init.d, and removing it let the dpkg --configure -a go through.
                /etc/init.d/rc.local comes with the initscripts package. I thought there might have been another script with rc.local in the provides section of it's lsb header, which was why I asked for the grep output.

                Well, at least you got over the immediate issue and got the upgrades through by temporarily removing rc.local init script.

                Originally posted by doctordruidphd View Post
                I did some other beating up on the system so I will be restoring from backup and retry in the morning.
                Will get back then.
                Sounds like a plan.

                Comment


                  #9
                  Haven't started the update process yet (I expect it will take several hours) but here are the outputs you wanted, now that I have a restored system:

                  root@Crynfyd:/# grep rc.local /etc/init.d/*
                  /etc/init.d/rc.local:# Provides: rc.local
                  /etc/init.d/rc.local:# Short-Description: Run /etc/rc.local if it exist
                  /etc/init.d/rc.local: if [ -x /etc/rc.local ]; then
                  /etc/init.d/rc.local: [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
                  /etc/init.d/rc.local: /etc/rc.local
                  /etc/init.d/rc.shutdown:# Provides: rc.local
                  /etc/init.d/rc.shutdown:# Short-Description: Run /etc/rc.local if it exist

                  root@Crynfyd:/# ls -la /etc/init.d
                  total 576
                  drwxr-xr-x 2 root root 4096 Aug 21 15:41 .
                  drwxr-xr-x 235 root root 16384 Aug 25 06:20 ..
                  -rwxr-xr-x 1 root root 1864 Dec 17 2012 acct
                  -rwxr-xr-x 1 root root 2243 Feb 19 2014 acpid
                  -rwxr-xr-x 1 root root 2014 Feb 19 2014 anacron
                  -rwxr-xr-x 1 root root 4596 Nov 29 2013 apparmor
                  -rwxr-xr-x 1 root root 2841 Jan 10 2014 apport
                  -rwxrwxr-x 1 root root 1071 Sep 8 2013 atd
                  -rwxr-xr-x 1 root root 3890 Jun 24 2012 atop
                  -rwxr-xr-x 1 root root 2401 Dec 30 2013 avahi-daemon
                  -rwxr-xr-x 1 root root 1322 Feb 8 2014 binfmt-support
                  -rwxr-xr-x 1 root root 4474 Dec 19 2013 bluetooth
                  -rwxr-xr-x 1 root root 2125 Jun 17 2013 brltty
                  -rwxr-xr-x 1 root root 9236 Feb 12 2014 clamav-daemon
                  -rwxr-xr-x 1 root root 8525 Feb 12 2014 clamav-freshclam
                  -rwxr-xr-x 1 root root 1919 Jan 18 2011 console-setup
                  lrwxrwxrwx 1 root root 21 Feb 25 15:06 cron -> /lib/init/upstart-job
                  -rwxr-xr-x 1 root root 938 Nov 1 2013 cryptdisks
                  -rwxr-xr-x 1 root root 896 Nov 1 2013 cryptdisks-early
                  -rwxr-xr-x 1 root root 3640 Jan 19 2014 cryptmount
                  -rwxr-xr-x 1 root root 3184 Feb 18 2014 cups
                  -rwxr-xr-x 1 root root 1961 Mar 12 13:06 cups-browsed
                  -rwxr-xr-x 1 root root 2784 May 20 2010 darkstat
                  -rwxr-xr-x 1 root root 2832 Nov 11 2013 dbus
                  -rwxr-xr-x 1 root root 4390 May 9 2013 dictd
                  -rwxr-xr-x 1 root root 1703 Aug 6 2013 dirmngr
                  -rwxr-xr-x 1 root root 1217 Mar 7 2013 dns-clean
                  -rwxr-xr-x 1 root root 1902 Oct 28 2012 etc-setserial
                  -rwxr-xr-x 1 root root 1156 Feb 28 04:13 fam
                  -rwxr-xr-x 1 root root 1553 Jan 15 2014 fancontrol.dpkg-bak
                  lrwxrwxrwx 1 root root 21 Feb 25 15:06 friendly-recovery -> /lib/init/upstart-job
                  -rwxr-xr-x 1 root root 3265 Nov 24 2013 glances
                  -rwxr-xr-x 1 root root 2574 Jun 26 2013 gpm
                  -rwxr-xr-x 1 root root 3997 Oct 21 2013 gpsd
                  -rwxr-xr-x 1 root root 1105 Nov 27 2013 grub-common
                  -rwxr-xr-x 1 root root 1329 Dec 2 2013 halt
                  -rwxr-xr-x 1 root root 3060 Oct 28 2012 hddtemp
                  -rwxr-xr-x 1 root root 2914 Jun 27 2013 hyperestraier
                  -rwxr-xr-x 1 root root 2661 Oct 24 2013 ipmievd
                  -rwxr-xr-x 1 root root 1864 Nov 12 2012 irqbalance
                  -rwxr-xr-x 1 root root 3096 Jul 17 2012 kerneloops
                  -rwxr-xr-x 1 root root 1293 Dec 2 2013 killprocs
                  -rwxr-xr-x 1 root root 1990 Jan 22 2013 kmod
                  -rw-r--r-- 1 root root 0 Jan 21 2014 .legacy-bootordering
                  -rwxr-xr-x 1 root root 3431 Aug 21 2013 lightdm
                  -rwxr-xr-x 1 root root 8007 Mar 16 04:35 lirc
                  -rwxr-xr-x 1 root root 869 Jan 15 2014 lm-sensors
                  -rwxr-xr-x 1 root root 2083 Dec 2 2013 logkeys
                  -rwxr-xr-x 1 root root 2224 Nov 1 2013 lsh-server
                  -rwxr-xr-x 1 root root 2379 Oct 30 2013 mgetty-fax
                  -rwxr-xr-x 1 root root 4500 Apr 28 13:33 minidlna
                  -rwxr-xr-x 1 root root 2664 Nov 16 2013 monit
                  -rwxr-xr-x 1 root root 2410 Feb 12 2012 motion
                  -rwxr-xr-x 1 root root 5491 Feb 19 2014 mysql
                  -rwxr-xr-x 1 root root 1816 Jan 6 2014 netdiag
                  -rwxr-xr-x 1 root root 4479 Mar 20 14:17 networking
                  -rwxr-xr-x 1 root root 1948 Dec 27 2013 nmbd
                  -rwxr-xr-x 1 root root 4527 Sep 12 2013 ntop
                  -rwxr-xr-x 1 root root 1292 Dec 2 2013 ondemand
                  -rwxr-xr-x 1 root root 2443 Aug 22 2012 openbsd-inetd
                  -rwxr-xr-x 1 root root 13390 Jun 10 10:04 openipmi
                  -rwxr-xr-x 1 root root 2522 Oct 10 2013 osspd
                  -rwxr-xr-x 1 root root 7507 Feb 11 2014 postfix
                  -rwxr-xr-x 1 root root 1407 May 10 2013 postgresql
                  -rwxr-xr-x 1 root root 561 Jan 22 2013 pppd-dns
                  -rwxr-xr-x 1 root root 1192 May 27 2013 procps
                  -rwxr-xr-x 1 root root 4415 Jan 6 2013 psad
                  -rwxr-xr-x 1 root root 2205 Mar 10 2010 ps-watcher
                  -rwxr-xr-x 1 root root 2182 Dec 19 2013 pulseaudio
                  -rwxr-xr-x 1 root root 3092 Dec 27 2012 quota
                  -rwxr-xr-x 1 root root 1959 Dec 27 2012 quotarpc
                  -rwxr-xr-x 1 root root 6120 Mar 12 18:33 rc
                  -rwxr-xr-x 1 root root 782 Dec 2 2013 rc.local
                  -rwxr-xr-x 1 root root 117 Mar 12 18:33 rcS
                  -rwxr-xr-x 1 root root 795 Apr 15 15:27 rc.shutdown
                  -rw-r--r-- 1 root root 2427 Mar 12 18:33 README
                  -rwxr-xr-x 1 root root 639 Dec 2 2013 reboot
                  -rwxr-xr-x 1 root root 2918 Jun 13 06:05 resolvconf
                  -rwxr-xr-x 1 root root 2512 Jan 13 2014 rpcbind
                  -rwxr-xr-x 1 root root 4395 Nov 7 2013 rsync
                  -rwxr-xr-x 1 root root 2913 Dec 4 2013 rsyslog
                  -rwxr-xr-x 1 root root 1304 Dec 27 2013 samba
                  -rwxr-xr-x 1 root root 2299 Dec 27 2013 samba-ad-dc
                  -rwxr-xr-x 1 root root 2344 Nov 5 2013 saned
                  -rwxr-xr-x 1 root root 10536 Oct 6 2013 saslauthd
                  -rwxr-xr-x 1 root root 3060 Jan 4 2014 schroot
                  -rwxr-xr-x 1 root root 1226 Jul 22 2013 screen-cleanup
                  -rwxr-xr-x 1 root root 3920 Dec 2 2013 sendsigs
                  -rwxr-xr-x 1 root root 5152 Oct 28 2012 setserial
                  -rwxr-xr-x 1 root root 790 Nov 23 2003 showfsck
                  -rwxr-xr-x 1 root root 590 Dec 2 2013 single
                  -rw-r--r-- 1 root root 4290 Mar 12 18:33 skeleton
                  -rwxr-xr-x 1 root root 3505 Sep 5 2013 smartmontools
                  -rwxr-xr-x 1 root root 1930 Dec 27 2013 smbd
                  -rwxr-xr-x 1 root root 12844 Oct 22 2013 snort
                  -rwxr-xr-x 1 root root 4077 Feb 14 2014 ssh
                  -rwxr-xr-x 1 root root 4553 Dec 21 2011 sshguard
                  -rwxr-xr-x 1 root root 3380 Nov 14 2013 stunnel4
                  -rwxr-xr-x 1 root root 731 Oct 22 2013 sudo
                  -rwxr-xr-x 1 root root 2522 May 21 2010 timidity
                  -rwxr-xr-x 1 root root 6035 Dec 26 2013 tor
                  -rwxr-xr-x 1 root root 6173 Nov 6 2013 udev
                  -rwxr-xr-x 1 root root 2721 Dec 2 2013 umountfs
                  -rwxr-xr-x 1 root root 2260 Dec 2 2013 umountnfs.sh
                  -rwxr-xr-x 1 root root 1872 Dec 2 2013 umountroot
                  -rwxr-xr-x 1 root root 1361 Dec 6 2013 unattended-upgrades
                  -rwxr-xr-x 1 root root 3111 Dec 2 2013 urandom
                  -rwxr-xr-x 1 root root 6138 Feb 3 2014 virtualbox
                  -rwxr-xr-x 1 root root 2146 Feb 3 2014 virtualbox-guest-utils
                  -rwxr-xr-x 1 root root 1225 Feb 3 2014 virtualbox-guest-x11
                  -rwxr-xr-x 1 root root 1588 May 28 2013 vnstat
                  -rwxr-xr-x 1 root root 1665 Dec 27 2013 winbind
                  -rwxr-xr-x 1 root root 2666 Mar 22 2012 x11-common
                  -rwxr-xr-x 1 root root 1433 Apr 2 2008 xtell
                  We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                  Comment


                    #10
                    Originally posted by doctordruidphd View Post
                    /etc/init.d/rc.local:# Provides: rc.local
                    /etc/init.d/rc.shutdown:# Provides: rc.local
                    That is/was probably the problem, you have two init scripts providing rc.local (which was what insserv was complaining about)

                    Where did you get rc.shutdown (there is no package at least on utopic that installs that)?
                    Is it a script you have created yourself (possibly by copying rc.local) to run at shutdown?

                    It if it's a script you need, I'd suggest editing it by changing the #Provides header to:
                    /etc/init.d/rc.shutdown:# Provides: rc.shutdown
                    (If it's copied from rc.local, it might make sense to edit other parts of the LSB headers)

                    Comment


                      #11
                      [solved]

                      Not sure where I "got" rc.shutdown, I might have done that myself. In any event that wasn't the problem.
                      What I did was make a backup of /etc/init.d, then delete the scripts for cron, rc.local, showfsck and friendly-recovery, which were the ones being complained about. After a bunch of the usual install-- -f's and --force-overwrites, the upgrade went through. I still have to check on a few things and do the postgresql upgrade, but at least it started and so far everything appears to be running.

                      I notice that the upgrade process did not replace the init.d scripts for showfsck, rc.local or friendly-recovery, so I will have to check whether they got incorporated elsewhere, or I need to copy them back.

                      Thanks for your help on this.

                      Edit: I notice the missing scripts are showing up in sysv-rc-conf, so they must be starting from somewhere else. Still investigating.

                      Edit further: I replaced the init.d scripts for showfsck, friendly-recovery and rc.local. When it tried to do an update.rc, insserv produced errors for all of them, saying "service already provided." Removing the scripts fixed the problem; but WHERE is the service being provided, if not from init.d? So far I haven't found it. systemd?
                      Last edited by doctordruidphd; Aug 25, 2014, 01:12 PM.
                      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                      Comment


                        #12
                        Originally posted by doctordruidphd View Post
                        Not sure where I "got" rc.shutdown, I might have done that myself. In any event that wasn't the problem.
                        Are you sure about that, I thought you said you got the upgrade through after you removed rc.local (leaving you with just one script that "provided" rc.local...you probably could have removed rc.shutdown for the same result.

                        Originally posted by doctordruidphd View Post
                        What I did was make a backup of /etc/init.d, then delete the scripts for cron, rc.local, showfsck and friendly-recovery, which were the ones being complained about.
                        As a general rule you shouldn't manually delete the init.d scripts that are part of a package (well, in case of emergency like recovering from a halted upgrade it can be useful). It's only a temporary solution at best. Also see below.

                        Originally posted by doctordruidphd View Post
                        Edit: I notice the missing scripts are showing up in sysv-rc-conf, so they must be starting from somewhere else. Still investigating.
                        You probably didn't remove the symlinks in /etc/rcX.d directories that actually run the initscripts for each runlevel, this is one of the reasons (not the only one) manually deleting init.d scripts is troublesome (there is a cli tool for managing the symlinks, update-rc.d)

                        The whole init process is in a bit of a flux at the moment, so I really can't tell what is going on in your machine...I've had no problems with upgrades, and I haven't needed to remove cron or any init scripts.

                        Comment


                          #13
                          As a general rule you shouldn't manually delete the init.d scripts that are part of a package (well, in case of emergency like recovering from a halted upgrade it can be useful). It's only a temporary solution at best. Also see below.
                          Yes, well, as you said, recovering from a stalled upgrade ...

                          I notice that the upgrade reinstalled the cron script; the old one was a symlink to upstart-job, the new one is an actual script.

                          I suppose the same functionality for the non-working scripts can be added with update-rc.d, or sysv-rc-conf, a sort of gui version of the same thing. In any event installing the new packages in the upgrade did not install new scripts for the others that were removed, so there must be a reason for not having them.

                          Edit: looks like rc.local and friendly-recovery are being run by systemd, as they are in /lib/systemd/system. showfsck does not appear to be there, and according to dpkg-query, it is supposed to install an /etc/init.d script, so something removed it. Well it's more of a convenience than a necessity I suppose.

                          PS - I haven't used this board much since the switch -- is there a simple way to mark a thread solved, or just by editing the original title? Don't see anything under thread tools.
                          Last edited by doctordruidphd; Aug 25, 2014, 03:54 PM.
                          We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                          Comment


                            #14
                            Originally posted by doctordruidphd View Post
                            I suppose the same functionality for the non-working scripts can be added with update-rc.d, or sysv-rc-conf, a sort of gui version of the same thing.
                            These only manage the /etc/rc{runlevel}.d/* symlinks for the init scripts, not the init scripts (in /etc/init.d/*) themselves. if you remove the init scripts these tools won't put them back (and the runlevel symlinks are left dangling and do nothing, even if they are showing in sysv-rc-conf).

                            I haven't really checked whether any of the initscripts are actually obsolete (they very well could be, the current situation with basically three different concurrent init systems is a tad confusing), but the "initscripts" package should still install /etc/init.d/rc.local, for example (if you reinstall the package does it reappear or not?).

                            At least on my end, with:
                            dpkg-query -f='${Conffiles}\n' -W initscripts
                            /etc/init.d/rc.local is not marked "obsolete"
                            (but there are a few obsolete conffiles in the upstart package)

                            Originally posted by doctordruidphd View Post
                            Is there a simple way to mark a thread solved, or just by editing the original title? Don't see anything under thread tools.
                            I seem to recall it was on the thread tools, but I haven't used it much

                            Comment


                              #15
                              This is interesting:

                              1. greenman@Crynfyd:~$ dpkg-query --listfiles initscripts | grep local
                              /etc/init.d/rc.local

                              2. Then sudo apt-get install --reinstall initscripts (goes OK).

                              3. greenman@Crynfyd:/etc/init.d$ ls r*
                              rc rcS rc.shutdown reboot resolvconf rpcbind rsync rsyslog



                              Same deal with showfsck.
                              We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                              Comment

                              Working...
                              X