Apt and RPMdb locking

Panu Matilainen pmatilai at laiskiainen.org
Fri Jun 2 23:41:45 PDT 2006


On Fri, 2 Jun 2006, Dag Wieers wrote:

> Hi,
>
> Because of the mess with the proxy configuration I noticed something else
> that bit me before and possibly could be improved.
>
> Sometimes I see apt 'hang' after downloading/verifying the sources and
> before Reading the package lists. In fact, most of the times this was
> because there was a stale apt process running (or suspended) because of
> some other problem, but apt does not say so. So it sits there and you
> wonder whether something is wrong or it is having a slow day :)
>
> It would be nice that when it is sitting there because something else has
> a lock on the RPMdb (or because there is some sort of Apt locking going
> on) it could as well say that.

Rpmdb locks are like that :-/ I dunno if rpmlib has some sort of API for 
checking existing locks before attempting to grab a new one (directly 
mucking with berkeley db files not counting), might be worth checking of 
course.

 	- Panu -



More information about the Apt-Rpm mailing list