apt info "please use the '-a' switch"

Bug #1843812 reported by Moses Moore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Low
Julian Andres Klode

Bug Description

When getting info about a package, I see a notice asking me to "Please use the '-a' switch", but the apt program does not accept an '-a' switch.

Steps to reproduce:
$ apt info docker.io
...
N: There is 1 additional record. Please use the '-a' switch to see it
$ apt -a info docker.io
$ apt info -a docker.io
$ apt info docker.io -a

Expected outcome:
same output as `apt info docker.io` but with the 1 additional record.

Seen outcome:
E: Command line option 'a' [from -a] is not understood in combination with the other options.

Also seen:
`apt info $pkg` gives the same output as `apt show $pkg` including the Notice message, but where `apt info -a $pkg` fails, `apt show -a $pkg` succeeds.

Workaround:
Use `apt show -a $pkg` instead.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: apt 1.8.1
ProcVersionSignature: Ubuntu 5.0.0-23.24-generic 5.0.15
Uname: Linux 5.0.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Sep 12 14:16:09 2019
InstallationDate: Installed on 2018-10-30 (316 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: apt
UpgradeStatus: Upgraded to disco on 2019-04-18 (147 days ago)
modified.conffile..etc.logrotate.d.apport: [modified]
modified.conffile..etc.logrotate.d.apt: [modified]
mtime.conffile..etc.logrotate.d.apport: 2018-12-13T12:13:33.355709
mtime.conffile..etc.logrotate.d.apt: 2018-12-13T12:13:41.355709

Revision history for this message
Moses Moore (moses-ubuntu) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Thanks for your bug report. It seems I did not add all switches from the show command to the info alias when adding it.

Changed in apt (Ubuntu):
assignee: nobody → Julian Andres Klode (juliank)
status: New → Triaged
importance: Undecided → Low
tags: added: id-5d7aa5d50ab4905dcdc54c44
Changed in apt (Ubuntu):
status: Triaged → In Progress
Changed in apt (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 1.9.5

---------------
apt (1.9.5) experimental; urgency=medium

  [ Julian Andres Klode ]
  * Parse 'show' arguments for the 'info' alias as well (LP: #1843812)
  * patterns: Add base class for regular expression matching
  * patterns: Add ?version
  * patterns: Add ?source-name and ?source-version
  * patterns: Add ?archive
  * patterns: Add ?origin
  * patterns: Add ?any-version
  * patterns: Implement ?narrow(...), as ?any-version(?and(...))
  * patterns: Add ?all-versions
  * patterns: Add ?section
  * netrc: Restrict auth.conf entries to https by default (Closes: #945911)

  [ Anatoly Borodin ]
  * README.md: fix dead anonscm link

  [ Алексей Шилин ]
  * Search in all available description translations (Closes: #490000)
  * strutl: Add APT::String::DisplayLength() function
  * Fix progress bar width for multibyte charsets

  [ Chris Leick ]
  * German manpage translation update

  [ David Kalnischkies ]
  * Use correct filename on IMS-hit reverify for indices
  * Remove failed trusted signature instead of index on IMS hit

  [ Anthony Papillon ]
  * Fix a mistake in man french translation

 -- Julian Andres Klode <email address hidden> Mon, 02 Dec 2019 18:17:56 +0100

Changed in apt (Ubuntu):
status: Fix Committed → Fix Released
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.