'aptitude safe-upgrade -d -y' enters infinite loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptitude |
Fix Released
|
Unknown
|
|||
aptitude (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
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://
Get: 6 http://
Fetched 3574 kB in 0s (9562 kB/s)
[Regression Potential]
Small.
* Small patch touching only one file.
* Some of the updated logic can be checked against similar code
in apt/cmndline/
* Fixed in Debian sid since May with no regressions reported.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: aptitude 0.6.6-1ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-22-
ApportVersion: 2.0-0ubuntu4
Architecture: i386
Date: Sat Apr 7 10:36:46 2012
ProcEnviron:
TERM=linux
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: aptitude
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in aptitude: | |
status: | Unknown → New |
Changed in aptitude: | |
status: | New → Fix Committed |
Changed in aptitude: | |
status: | Fix Committed → Fix Released |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Provide log of output from safe-upgrade, perhaps also your apt/aptitude conf files.