Comment 28 for bug 1045285

Revision history for this message
Marius Gedminas (mgedmin) wrote : Re: lucid upgrade to precise fails

As far as I can tell, this bug happens in lxdm's postinst script, in this bit:

      DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)

when 'which' fails to find the default display manager (lightdm in your case), it returns with a non-zero return code, which stops the postinst script from executing because of the 'set -e' at the top.

I think the fix would be to modify lightdm's postinst to do

      DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null || true)