race in lock checking code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
software-center (Ubuntu) |
Fix Released
|
High
|
Zygmunt Krynicki |
Bug Description
Binary package hint: software-center
If there is another apt operation running (was doing sudo apt-get install mysql-server from a terminal window), the ubuntu software center will report an unknown error because of the failed lock:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
end=
File "/usr/lib/
res = self._fetchArch
File "/usr/lib/
raise LockFailedExcep
LockFailedExcep
ProblemType: Bug
Architecture: amd64
Date: Sun Sep 27 17:31:39 2009
DistroRelease: Ubuntu 9.10
Package: software-center 0.4.0
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: software-center
Uname: Linux 2.6.31-11-generic x86_64
summary: |
- "An uknown error" is reported when apt-daemon fails to acquire the apt + "An unknown error" is reported when apt-daemon fails to acquire the apt lock |
Changed in software-center (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- "An unknown error" is reported when apt-daemon fails to acquire the apt - lock + race in lock checking code |
Changed in aptdaemon (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in software-center (Ubuntu): | |
assignee: | nobody → Zygmunt Krynicki (zkrynicki) |
I can confirm this error.
Seems to be some kind of race condition.
This is how I reproduced it:
1. apt-get install wine (I have chosen this because pulling the library packages should take some time)
2. Open the Ubuntu Software Store and choose to install some application (I took amule). It should be queued in the list telling that it is waiting for another process to finish (apt-get).
3. When the download of the packages for the wine installation has finished the error occured in Ubuntu Software Store.
4. At the same time dpkg failed in the terminal (the wine installation) with:
dpkg: Status database section is locked by another process. (Translated from german).