Bug#553598: [CRASH] Uncaught exception LockFailedException in /usr/lib/python2.5/site-packages/apt/cache.py:234
Package: python-apt
Version: 0.7.13.3
Severity: normal
File: /usr/lib/python2.5/site-packages/apt/cache.py
It crashes if apt-db is already locked.
To reproduce it, "apt-get dist-upgrade" or whatever method to lock db and leaving it locked, launch update-manager.
*** /tmp/update-manager-bug_IUWkK
The information below has been automatically generated.
Please do not remove this from your bug report.
- Exception Type: <class 'apt.cache.LockFailedException'>
- Exception Value: LockFailedException('Failed to lock /var/cache/apt/archives/lock',)
- Exception Origin: <BugHandler.Thread(PythonAptCommit, started)>
- Exception Traceback:
File "/usr/lib/pymodules/python2.5/UpdateManager/BugHandler.py", line 89, in run
threading.Thread.run(self, *args, **kwargs)
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/pymodules/python2.5/UpdateManager/Backend/PythonApt.py", line 828, in thread_helper
installProgress=install_helper)
File "/usr/lib/python2.5/site-packages/apt/cache.py", line 318, in commit
res = self._fetchArchives(fetcher, pm)
File "/usr/lib/python2.5/site-packages/apt/cache.py", line 234, in _fetchArchives
raise LockFailedException("Failed to lock %s" % lockfile)
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-2-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-apt depends on:
ii apt [libapt-pkg-libc6.9-6-4.8 0.7.23.1 Advanced front-end for dpkg
ii apt-utils [libapt-inst-libc6. 0.7.23.1 APT utility programs
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libgcc1 1:4.4.1-4 GCC support library
ii libstdc++6 4.4.1-4 The GNU Standard C++ Library v3
ii lsb-release 3.2-23 Linux Standard Base version report
ii python 2.5.4-2 An interactive high-level object-o
ii python-central 0.6.11 register and build utility for Pyt
Versions of packages python-apt recommends:
ii iso-codes 3.11-1 ISO language, territory, currency,
ii libjs-jquery 1.3.3-2 JavaScript library for dynamic web
Versions of packages python-apt suggests:
pn python-apt-dbg <none> (no description available)
ii python-gtk2 2.16.0-1 Python bindings for the GTK+ widge
ii python-vte 1:0.22.2-2 Python bindings for the VTE widget
Reply to: