[Maverick Alpha 1] An unhandlable error occured in aptdaemon

Bug #589273 reported by Sergio Santoro
This bug report is a duplicate of:  Bug #628061: Should acquire a lock on the lists. Edit Remove
58
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Confirmed
Undecided
Unassigned

Bug Description

I tried to install further languages in Maverick Alpha 1 but in package "aptdaemon" occured an error:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 162, in _process_transaction
    self.update_cache()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 482, in update_cache
    self._cache.update(progress)
  File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 322, in update
    raise LockFailedException("Failed to lock %s" % lockfile)
LockFailedException: Failed to lock /var/lib/apt/lists/lock

I'm using "Ubuntu Desktop amd64 (20100602.2)"

Tags: iso-testing
Revision history for this message
Sergio Santoro (tauer92) wrote :
tags: added: iso-testing
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

It seems that you have missed to copy the last and most interesting lines of the error message.

Please do so, if the error appears again

Changed in aptdaemon:
status: New → Incomplete
Revision history for this message
Anish (anishmangal2002) wrote :

This is happening with my ubuntu-maverick-alpha1 install too. This is the exact transcript of the exception I am getting is pasted below

======================================

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 162, in _process_transaction
    self.update_cache()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 482, in update_cache
    self._cache.update(progress)
  File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 322, in update
    raise LockFailedException("Failed to lock %s" % lockfile)
LockFailedException: Failed to lock /var/lib/apt/lists/lock

======================================

Sergio Santoro (tauer92)
summary: - An unhandlable error occured in aptdaemon with the Maverick Alpha 1
+ [Maverick Alpha 1] An unhandlable error occured in aptdaemon
Revision history for this message
Anish (anishmangal2002) wrote :

I have edited the bug description to include the last few erroneous lines.

description: updated
Changed in aptdaemon:
status: Incomplete → New
Revision history for this message
Christopher (soft-kristal) wrote :

I received this message with this morning's updates.

An unhandlable error occured

There seems to be a programming error in aptdaemon, the software that allows you to install/remove software and to perform other package management related tasks. Please report this error at http://launchpad.net/aptdaemon/+filebug and retry.

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 171, in _process_transaction
    self.commit_packages(*self.trans.packages)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 218, in commit_packages
    self._commit_changes()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 660, in _commit_changes
    self._cache.commit(fetch_progress, inst_progress)
  File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 409, in commit
    res = self.install_archives(pm, install_progress)
  File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 376, in install_archives
    install_progress.finish_update()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/progress.py", line 260, in finish_update
    lock.system.acquire()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/lock.py", line 102, in acquire
    self.fd = get_lock_fd(self.path)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/lock.py", line 89, in get_lock_fd
    raise LockFailedError(lock_path, process)
LockFailedError

Changed in aptdaemon:
status: New → Confirmed
Revision history for this message
Virgil Brummond (uraharakisuke153) wrote :

Same problem here, testing on Virtualbox with Maverick Daily:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 163, in _process_transaction
    self.update_cache(**self.trans.kwargs)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 589, in update_cache
    self._cache.update(progress, sources_list=sources_list)
  File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 343, in update
    raise LockFailedException("Failed to lock %s" % lockfile)
LockFailedException: Failed to lock /var/lib/apt/lists/lock

Revision history for this message
Virgil Brummond (uraharakisuke153) wrote :

Rebooted, had some problems with mounting /tmp said plymouth and ran checks and rebooted again. (Not sure if this is related). Booted to recovery mode, ran latest updates. Update manager works fine here.

Revision history for this message
Tom (tsly) wrote :

hi! Sorry for my bad english... I developp application pytomtom and provided pytomtom.deb for lucid. unfortunately this package failed to be installed on maverick with ubuntu software center.

- first, i installed gdebi and it works fine !!!

- after this , i try to install it with ubuntu software center. It's seems to be the same bug...

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 768, in simulate
    return self._simulate_helper(trans, status_path)
  File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 851, in _simulate_helper
    size = int(deb["Installed-Size"]) * 1024
ValueError: invalid literal for int() with base 10: '243.1'

When i build this deb, in my "control-install" was notified: "Installed-Size: 243.1"
I deleted this ligne and it's works fine ! I could have installed my application on maverick with ubuntu software center. But bug has no desappear... i just have deleted information about size.

Hope this will help someone...

Changed in aptdaemon:
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Revision history for this message
Rick St. George (rickstgeorge1) wrote :

This is what i get ....

Media change: please insert the disc labeled
 'Ubuntu-Studio 10.10 _Maverick Meerkat_ - Release i386 (20101008)'
in the drive '/cdrom/' and press enter

But CDRom is not recognized.
Now I'm really screwed.

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.