2016-04-01 05:24:16,340: Installing services...
2016-04-01 05:24:16,340: Installing service 'vsmserver'...
2016-04-01 05:24:16,467: Output (stderr):
2016-04-01 05:24:16,467: Missing should-start facility vsmagent (ignored)
2016-04-01 05:24:16,467: Traceback (most recent call last):
2016-04-01 05:24:16,468: File "/usr/lib/lsb/install_initd", line 102, in <module>
2016-04-01 05:24:16,468: initdutils.save_depends(depends)
2016-04-01 05:24:16,468: File "/usr/lib/lsb/initdutils.py", line 141, in save_depends
2016-04-01 05:24:16,468: fh = open(DEPENDS, 'w')
2016-04-01 05:24:16,468: FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/lsb/depends'
2016-04-01 05:24:16,468: Failed to install service 'vsmserver'
Create an upstream bug report now, but then move this bug.
Ubuntu is soo much fun. When install_initd crashes, a GUI dialog pops up and asks if I want to report this problem. I click yes, and is informed about the fact that this problem has already been reported, and that I should see the details in the web browser. Which then opens up with:
"Lost something? This page does not exist"
Then, I take the bug number from the URL and manually enter into https://launchpad.net. Clicks on the first hit, then I get:
Sorry, something just went wrong in Launchpad.
We’ve recorded what happened, and we’ll fix it as soon as possible. Apologies for the inconvenience.
Trying again in a couple of minutes might work.
(Error ID: OOPS-303659b30fc3d80ce05c8712288a01c0)
Another interesting thing: On 14.04, /var/lib/lsb/depends exists but is not owned by any package:
dpkg-query -S /var/lib/lsb/depends
dpkg-query: no path found matching pattern /var/lib/lsb/depends
It's also empty. This seems to be an output directory, owned by lsb-core:
dpkg-query -S /var/lib/lsb
In any case, this seems to be an workaround:
mkdir -p /var/lib/lsb
Verified working fine now.
Even though this bug is fixed, it might not be enough to install services on for instance Ubuntu 16.04. See bug 5946.