apt-cache rdepends returns cryptic error message

Bug #647045 reported by Marc Deslauriers
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Medium
Unassigned
Maverick
Won't Fix
Medium
Unassigned
Natty
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apt

apt-cache rdepends with a non-existing package now returns a cryptic error message in maverick:

mdeslaur@mdlinux:~$ apt-cache rdepends blahblah
E: Handler silently failed

The same query in lucid used to return a much saner error:

mdeslaur@mdlinux:~$ apt-cache rdepends blahblah
W: Unable to locate package blahblah

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.3ubuntu5
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Fri Sep 24 14:07:09 2010
EcryptfsInUse: Yes
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: apt

== Regression details ==
Discovered in version: apt 0.8.3ubuntu7
Last known good version: apt 0.7.25.3ubuntu9.3

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
summary: - apt-cache rdepends returns cryptic error message
+ [maverick] apt-cache rdepends returns cryptic error message
Revision history for this message
Steve Beattie (sbeattie) wrote : Re: [maverick] apt-cache rdepends returns cryptic error message

Confirming, I'm seeing this regression in behavior for apt-cache rdepends on maverick vs. lucid as well.

Changed in apt (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
tags: added: regression-potential
tags: added: regression-release
removed: regression-potential
description: updated
summary: - [maverick] apt-cache rdepends returns cryptic error message
+ apt-cache rdepends returns cryptic error message
Revision history for this message
Arvind S Raj (arvindsraj-deactivatedaccount) wrote :

Not just apt-cache rdepends, even depends returns the same error. Perhaps the error returned by other options i.e.
                 N: Unable to locate package <package name>
could be printed instead.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Fixed in revision 2054 of debian-sid, must be merged.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.8.10ubuntu1

---------------
apt (0.8.10ubuntu1) natty; urgency=low

  [ Julian Andres Klode ]
  * cmdline/apt-cache.cc: Create an error for apt-cache depends
    if packages could not found (LP: #647045)

  [ Michael Vogt ]
  * merged from debian-sid

apt (0.8.10) unstable; urgency=low

  [ Programs translations ]
  * Czech by Miroslav Kure. Closes: #605107

  [ Martin Pitt ]
  * test/integration/test-compressed-indexes, test/test-indexes.sh:
    - Explicitly disable compressed indexes at the start. This ensures that we
      will actually test uncompressed indexes regardless of the internal
      default value of Acquire::GzipIndexes.

  [ David Kalnischkies ]
  * apt-pkg/algorithms.cc:
    - mark all installed packages first without auto installation in
      a dist-upgrade to prefer upgrading packages instead of installing
      new packages in versioned or-groups (Closes: #605394)
 -- Michael Vogt <email address hidden> Tue, 07 Dec 2010 15:53:49 +0100

Changed in apt (Ubuntu Natty):
status: Confirmed → Fix Released
Changed in apt (Ubuntu Maverick):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.