update-software-center crashed with OSError in rebuild_database(): [Errno 18] Invalid cross-device link

Bug #699898 reported by Bertrand Lorentz on 2011-01-07
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Undecided
Aaron Peachey

Bug Description

Binary package hint: software-center

I was using the daily natty ISO image (dated 2011-01-07) from a USB stick.
I ran "sudo apt-get update" and "sudo apt-get upgrade" and got this error during the upgrade process.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.9
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic x86_64
Architecture: amd64
Date: Fri Jan 7 16:21:23 2011
ExecutablePath: /usr/share/software-center/update-software-center
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110107)
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/update-software-center --triggered /usr/share/app-install/desktop
ProcEnviron:
 LANGUAGE=en_US.UTF-8:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_AG.utf8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/update-software-center', '--triggered', '/usr/share/app-install/desktop']
SourcePackage: software-center
Title: update-software-center crashed with OSError in rebuild_database(): [Errno 18] Invalid cross-device link
UserGroups:

Related branches

tags: removed: need-duplicate-check
visibility: private → public
Aaron Peachey (aaronp) wrote :

Confirmed as there are two duplicates, it's clearly able to be reproduced, if only on amd64.
The bug is unusual in that the exception relates to a situation where you are trying to rename across a filesystem boundary.
This may be a result of /var folder being mounted in a different partition to /usr.

In any event, I will attach a fix shortly which should prevent this from occurring.

Changed in software-center (Ubuntu):
status: New → Confirmed
assignee: nobody → Aaron Peachey (aaronp)
status: Confirmed → In Progress
Aaron Peachey (aaronp) wrote :

Branch attached for merging with fix to handle this situation without crashing.

Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 3.1.10

---------------
software-center (3.1.10) natty; urgency=low

  [ Michael Vogt ]
  * include full AUTHORS info into the about dialog,
    based on the lp:~adnane002/software-center/fix.632770
    branch (LP: #632770)
  * data/ui/SoftwareCenter.ui:
    - add translator_credits (LP: #632770), thanks to
      Adnane Belmadiaf
  * merged lp:~aaronp/software-center/fix-699898, many thanks
    to Aaron Peachey (LP: #699898)

  [ Kiwinote ]
  * softwarecenter/app.py:
    - don't crash on pressing backspace in the history pane (LP: #696639)
  * softwarecenter/backend/aptd.py:
    - play nicely after cancelling policykit dialog
  * softwarecenter/db/application.py:
    - display correct version number for installed packages (LP: #695026)
  * softwarecenter/distro/*.py:
    - fix broken translations (LP: #703610)

  [ Gary Lasker ]
  * softwarecenter/models/appstore.py,
    softwarecenter/backend/aptd.py,
    softwarecenter/models/appstore.py,
    softwarecenter/view/appdetailsview_gtk.py,
    softwarecenter/view/appdetailsview_webkit.py,
    softwarecenter/view/appview.py:
    - restore progress bar feedback when installing/removing software
      from within the applist view (LP: #701589)
    - clean up unused code
  * softwarecenter/backend/aptd.py:
    - attach the aptdaemon progress-changed listener earlier in the
      transaction to allow for more instant progress feedback in the UI
 -- Michael Vogt <email address hidden> Mon, 17 Jan 2011 13:46:48 +0100

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

Duplicates of this bug

Other bug subscribers