[Bug 1045285] Re: lucid upgrade to precise fails

Marius Gedminas marius at gedmin.as
Wed Sep 5 11:08:31 UTC 2012


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)


** Also affects: lxdm (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1045285

Title:
  lucid upgrade to precise fails

Status in “lxdm” package in Ubuntu:
  New
Status in “update-manager” package in Ubuntu:
  New

Bug description:
  I tried to upgrade a machine from 10.04 to 12.04. It failed with
  symptoms similar to those described in

  https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740

  but following guidance there, I am opening my own report to avoid
  mixing symptoms of possibly different bugs. I'm new to the whole
  launchpad process so please be gentle. I tried to use ubuntu-bug to
  report the bug, but it failed, so I'm reporting manually:

  $ ubuntu-bug update-manager
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 15, in <module>
      from apport import unicode_gettext as _
    File "/usr/lib/python2.6/dist-packages/apport/__init__.py", line 1, in <module>
      from apport.report import Report
    File "/usr/lib/python2.6/dist-packages/apport/report.py", line 18, in <module>    from problem_report import ProblemReport
  ImportError: No module named problem_report

  More in the next post if this works ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxdm/+bug/1045285/+subscriptions




More information about the foundations-bugs mailing list