update-software-center crashed with OSError in rebuild_database(): [Errno 18] Invalid cross-device link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
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
ProcVersionSign
Uname: Linux 2.6.37-12-generic x86_64
Architecture: amd64
Date: Fri Jan 7 16:21:23 2011
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110107)
PackageArchitec
ProcCmdline: /usr/bin/python /usr/sbin/
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=en_US.UTF-8
LC_MESSAGES=
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: software-center
Title: update-
UserGroups:
Related branches
- Michael Vogt: Approve
-
Diff: 28 lines (+15/-6)1 file modifiedsoftwarecenter/db/update.py (+15/-6)
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
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.