[Aptitude-devel] Bug#933335: dpkg: error: dpkg frontend lock is locked by another process

Julian Andres Klode jak at debian.org
Sun Dec 28 16:45:24 GMT 2025


Control: tag -1 patch

On Mon, Jul 29, 2019 at 06:55:54PM +0200, Guillem Jover wrote:
> Control: reassign -1 aptitude
> Control: severity -1 important
> Control: retitle -1 aptitude: Please add support for dpkg frontend lock
> 
> Hi!
> 
> On Mon, 2019-07-29 at 13:47:05 +0200, Vincent Lefevre wrote:
> > Package: dpkg
> > Version: 1.19.7
> > Severity: serious
> 
> > I wanted to upgrade with aptitude, but it failed with the error
> > "dpkg: error: dpkg frontend lock is locked by another process".
> 

Please find attached a patch for aptitude that reworks the locking
logic to keep the frontend lock once acquired and only release the
inner lock; adjusting the manual dpkg --set-selections call as well
to adhere to the protocol of passing DPKG_FRONTEND_LOCKED as needed.

I've done some testing with the remove command in text mode and
curses UI, and it seems to do the right thing, but please do some
more testing.

Thanks!

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-frontend-locking.patch
Type: text/x-diff
Size: 3948 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/aptitude-devel/attachments/20251228/c932b5e8/attachment.patch>


More information about the Aptitude-devel mailing list