Debian Bug report logs - #816437
apt displays “Command line option is not understood” when the subcommand is wrong

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: nicoo <[email protected]>

Date: Tue, 1 Mar 2016 20:27:02 UTC

Severity: minor

Found in version apt/1.2.3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], APT Development Team <[email protected]>:
Bug#816437; Package apt. (Tue, 01 Mar 2016 20:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to [email protected]:
New Bug report received and forwarded. Copy sent to APT Development Team <[email protected]>. (Tue, 01 Mar 2016 20:27:06 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: [email protected]
To: Debian Bug Tracking System <[email protected]>
Subject: apt displays “Command line option is not understood” when the subcommand is wrong
Date: Tue, 01 Mar 2016 21:23:31 +0100
Package: apt
Version: 1.2.3
Severity: minor

Dear Maintainer,


When apt(8) is involed with a non-existing subcommand and an option,
  an error is reported about the option rather than about the subcommand:

> % apt lits --upgradable
> E: Command line option --upgradable is not understood in combination with the other options


Would it be posible, instead, to report first errors about
  non-existing subcommands?


Best,

  nicoo

-- Package-specific info:

-- /etc/apt/preferences --

Package: *
Pin: release n=stretch
Pin-Priority: 900

-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt depends on:
ii  adduser                 3.113+nmu3
ii  debian-archive-keyring  2014.3
ii  gnupg                   1.4.20-4
ii  gnupg2                  2.1.11-5
ii  gpgv                    1.4.20-4
ii  libapt-pkg5.0           1.2.3
ii  libc6                   2.21-9
ii  libgcc1                 1:5.3.1-8
ii  libstdc++6              5.3.1-8

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.7.5-3
ii  dpkg-dev    1.18.4
ii  python-apt  1.1.0~beta1

-- no debconf information



Changed Bug submitter to 'Nicolas Braud-Santoni <[email protected]>' from '[email protected]'. Request was from Nicolas Braud-Santoni <[email protected]> to [email protected]. (Thu, 15 Nov 2018 18:12:38 GMT) (full text, mbox, link).


Changed Bug submitter to 'nicoo <[email protected]>' from 'Nicolas Braud-Santoni <[email protected]>'. Request was from nicoo <[email protected]> to [email protected]. (Tue, 29 Aug 2023 16:15:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 07:42:27 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.