0

I followed a fix for another issue but now the reboot and shutdown executables are missing. I have tried

sudo apt-get install --reinstall upstart

But I get this line at the end

/var/lib/dpkg/info/upstart.postinst: 38: 
/var/lib/dpkg/info/upstart.postinst: telinit: not found

And the executables are still missing.

This is the output of /bin/sh -e -x /var/lib/dpkg/info/upstart.postinst

+ ischroot
+ initctl+ tr -d )
 version
+ awk {print $3}
+ UPSTART_VERSION_RUNNING=1.12.1
+ dpkg --compare-versions 1.12.1 ge 1.9
+ telinit u
/var/lib/dpkg/info/upstart.postinst: 38: 
/var/lib/dpkg/info/upstart.postinst: te           linit: not found
+ :
+ [  = configure ]
+ dpkg-maintscript-helper rm_conffile /etc/init/upstart-dbus-bridge.conf 
1.9.1-0           ubuntu4 --
dpkg-maintscript-helper: error: couldn't identify the package

ran sudo apt-get install --reinstall systemd-sysv upstart and got the following warning in the output

WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
/run/lvm/lvmetad.socket: connect failed: No such file or directory

then had kernel panic when starting the machine including the line

Target filesystem doesn't have requested /sbin/init.

managed to get to login by choosing 3.13.0.65 (upstart)

at login I am shown this message

[24.187631] system-logind[1553]: Failed to start user service, ignoring: Unknown unit: user@1000.service

I cannot connect remotely to the machine, nor to the plex server running on it

1 Answers1

0

You seem to need to reinstall systemd-sysv which provides telinit. Additional steps may be necessary if other errors are revealed, if so update your question.
Run the following command to reinstall both:

sudo apt-get install --reinstall systemd-sysv upstart

You can find what package supplies telinit by running dpkg with the search flag, see How do I find the package that provides a file?

dpkg -S telinit
systemd-sysv: /sbin/telinit
systemd-sysv: /usr/share/man/man8/telinit.8.gz
upstart: /lib/sysvinit/telinit
J. Starnes
  • 1,969