[Bug 975793] Re: 'aptitude safe-upgrade -d -y' enters infinite loop

lenios 975793 at bugs.launchpad.net
Fri Sep 21 10:18:56 UTC 2012

I had the bug and installed aptitude_0.6.6-1ubuntu2_amd64.deb. I'm
pleased to say it fixes the bug also for me.

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.

  'aptitude safe-upgrade -d -y' enters infinite loop

Status in aptitude:
  Fix Released
Status in “aptitude” package in Ubuntu:
  Fix Released
Status in “aptitude” source package in Precise:
  Fix Committed

Bug description:

  Users of aptitude can not download updates in advance with the
  intention of installing them later.  One common use case is using
  apt-cron to download all available updates at night then reviewing
  and installing a subset of them later.

  The problem does not occur for all users, but can be traced to a
  point where the download/install logic invokes dpkg even though it
  is supposed to only download packages.

  [Test Case]

  * Wait for package updates to be available:

    # aptitude clean && aptitude update
    Current status: 6 updates [+6].

  * Fetch the updates using -d (download only) and observe that
    after the download, aptitude loops (appears stuck) without
    ever exiting:

    # aptitude safe-upgrade -d -y
    Get: 5 http://fr.archive.ubuntu.com/ubuntu precise/main insserv i386 1.14.0-2.1ubuntu2 [50.1 kB]
    Get: 6 http://fr.archive.ubuntu.com/ubuntu precise/main iproute i386 20111117-1ubuntu2 [441 kB]
    Fetched 3574 kB in 0s (9562 kB/s)

  [Regression Potential]


  * Small patch touching only one file.

  * Some of the updated logic can be checked against similar code
    in apt/cmndline/apt-get.cc(InstallPackages).

  * Fixed in Debian sid since May with no regressions reported.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: aptitude 0.6.6-1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-22.35-generic-pae 3.2.14
  Uname: Linux 3.2.0-22-generic-pae i686
  ApportVersion: 2.0-0ubuntu4
  Architecture: i386
  Date: Sat Apr  7 10:36:46 2012
   PATH=(custom, no user)
  SourcePackage: aptitude
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list