Debian Bug report logs - #478961
apt/aptitude finer grained locking

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Michal Suchanek <[email protected]>

Date: Thu, 1 May 2008 22:42:02 UTC

Severity: wishlist

Found in version apt/0.7.11

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], APT Development Team <[email protected]>:
Bug#478961; Package apt. (full text, mbox, link).


Acknowledgement sent to Michal Suchanek <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], APT Development Team <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Michal Suchanek <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: apt/aptitude finer grained locking
Date: Fri, 02 May 2008 00:40:49 +0200
Package: apt
Version: 0.7.11
Severity: wishlist


Hello

The apt/aptitude tools only implement one global lock, it is not
possible to do multiple operations in parallel even if they are clearly
independent.

While package installation is performed by dpkg and there can be only
one dpkg running because of the format of the database it should be
possible to do parallel downloads.

Unless the apt design is very weird it should be possible to lock only
the single file that is currently being downloaded. That way one could
install a new package during dist-upgrade for example.

Of course, the new package could break the longer task but the download
is not wasted, and re-running the long task should correct the problem
quickly.

Some minor bits that could improve usability in such cases: 
 - warn that another apt is already running, and require a confirmation
   to run another instance
 - do not stop when it is not possible to get dpkg lock, wait for it 

Thanks

Michal


-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2007.07.31       GnuPG archive keys of the Debian a
ii  libc6                   2.7-6            GNU C Library: Shared libraries
ii  libgcc1                 1:4.3-20080202-1 GCC support library
ii  libstdc++6              4.3-20080202-1   The GNU Standard C++ Library v3

apt recommends no packages.

-- debconf-show failed




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 13:30:04 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.