** Description changed:

- When executing thoses commands, aptitude loops infinitely :
+ [Impact]
  
- aptitude clean && aptitude update && aptitude safe-upgrade -d -y
+ 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.
+ 
+ * 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
  ProcEnviron:
-  TERM=linux
-  PATH=(custom, no user)
-  LANG=fr_FR.UTF-8
-  SHELL=/bin/bash
+  TERM=linux
+  PATH=(custom, no user)
+  LANG=fr_FR.UTF-8
+  SHELL=/bin/bash
  SourcePackage: aptitude
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/975793

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/aptitude/+bug/975793/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to