Karmic upgrade silently exits if /home does not exist

Bug #463506 reported by Ken Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: update-manager

I'm using /usr/local/home instead of /home because of my site's autofs policy. I didn't have /home mounted when upgrading, so I didn't have a /home directory. The Karmic installer exited silently, and I found this trace when I ran update-manager from the command line:

extracting 'karmic.tar.gz'
authenticate 'karmic.tar.gz' against 'karmic.tar.gz.gpg'
/var/lib/python-support/python2.6/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters
  super(Connection, self).__init__(*args, **kwargs)
Traceback (most recent call last):
  File "/tmp/tmpNvswLM/karmic", line 7, in <module>
    sys.exit(main())
  File "/tmp/tmpNvswLM/DistUpgradeMain.py", line 132, in main
    if app.run():
  File "/tmp/tmpNvswLM/DistUpgradeController.py", line 1590, in run
    return self.fullUpgrade()
  File "/tmp/tmpNvswLM/DistUpgradeController.py", line 1552, in fullUpgrade
    if not self.askDistUpgrade():
  File "/tmp/tmpNvswLM/DistUpgradeController.py", line 893, in askDistUpgrade
    if not self._checkFreeSpace():
  File "/tmp/tmpNvswLM/DistUpgradeController.py", line 844, in _checkFreeSpace
    self.cache.checkFreeSpace()
  File "/tmp/tmpNvswLM/DistUpgradeCache.py", line 1006, in checkFreeSpace
    st = os.statvfs(d)
OSError: [Errno 2] No such file or directory: '/home'

It should display an error message instead of exiting silently.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: update-manager 1:0.111.9
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
Uname: Linux 2.6.28-16-server i686

Revision history for this message
Ken Collins (ken-confirmative) wrote :
Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
milestone: none → lucid-alpha-1
assignee: nobody → Michael Vogt (mvo)
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Lucid):
milestone: lucid-alpha-1 → lucid-alpha-2
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Lucid):
milestone: lucid-alpha-2 → lucid-alpha-3
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Lucid):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.132.1

---------------
update-manager (1:0.132.1) lucid; urgency=low

  * rename update-manager-support-status to ubuntu-support-status
  * check-new-release-gtk:
    - add gtk tool for release notification that is designed to be
      run from update-notifier (desktop-lucid-update-upgrade-requirements)
  * DistUpgrade/DistUpgradeCache.py:
    - fix crash in cleanup code
    - fix crash when /home is missing (LP: #463506)
    - fix component inconsitency detection debug output
  * DistUpgrade/DistUpgradeViewGtk.py:
    - remove old code that moved to python-apt
  * DistUpgrade/DistUpgradeController.py:
    - if universe is not enabled, explain that the demoted packages
      will be suggested for removal in the cleanup stage
  * UpdateManager/Core/MetaRelease.py:
    - fix urlopen() crash on hardy->lucid cdrom upgrades
 -- Michael Vogt <email address hidden> Thu, 25 Feb 2010 21:54:57 +0100

Changed in update-manager (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.