[Aptitude-devel] Bug#666130: aptitude: locks dpkg status while running APT::Update::Post-Invoke-Success

Mario 'BitKoenig' Holbe Mario.Holbe at TU-Ilmenau.DE
Wed Mar 28 22:53:10 UTC 2012


Package: aptitude                        
Version: 0.6.6-1

Hello,

thanks for fixing #476399. Unfortunately there seems to be a semantic
difference between apt and aptitude: While apt releases all locks before
running APT::Update::Post-Invoke-Success, aptitude doesn't.

I have an APT::Update::Post-Invoke-Success hook that runs sync-available.
This works well with apt but doesn't with aptitude:

# apt-get update
...
Merging available database in /tmp/apt-available.Z5Xd6H...done.
Replacing available packages info, using /tmp/apt-available.Z5Xd6H.
Information about 37373 packages was updated.
...
# aptitude update
...
98% [Working]Merging available database in /tmp/apt-available.gUAoEz...done.
dpkg: error: dpkg status database is locked by another process
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test x$SHELL = x/bin/sh -a x$USER = x && exec > /dev/null; test -x /usr/sbin/sync-available && /usr/sbin/sync-available'
E: Sub-process returned an error code

# 


Thanks for your work & regards
   Mario
-- 
The Encyclopedia Galactica, in its chapter on Love states that it is far
too complicated to define.
The Hitchhiker's Guide to the Galaxy has this to say on the subject of
love: Avoid, if at all possible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20120329/40347343/attachment.pgp>


More information about the Aptitude-devel mailing list