Bug#864412: apt: wrong error message when typo in command and --purge given
Package: apt
Version: 1.4.6
Severity: minor
tg@leee:~ $ sudo apt-get --purge idst-upgrade
E: Command line option --purge is not understood in combination with the other options
This is because at some point (I believe I had a related
bugreport) --purge was made to be an error instead of
silently ignored with things like “apt-get --purge clean”
(which still annoys me as I have to use ^W and backspace
twice to remove it from the command line, when it did no
harm before) so it’s now only available for a whitelisted
list of commands, and the commands are checked too late.
A less savvy user would be confused by this error message.
For comparison:
tg@leee:~ $ sudo apt-get idst-upgrade
E: Invalid operation idst-upgrade
-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 4.9.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages apt depends on:
ii adduser 3.115
ii debian-archive-keyring 2017.5
ii gpgv 2.1.18-8
ii init-system-helpers 1.48
ii libapt-pkg5.0 1.4.6
ii libc6 2.24-11
ii libgcc1 1:6.3.0-18
ii libstdc++6 6.3.0-18
Versions of packages apt recommends:
ii gnupg 2.1.18-8
ii gnupg1 1.4.21-4
ii gnupg2 2.1.18-8
Versions of packages apt suggests:
pn apt-doc <none>
pn aptitude | synaptic | wajig <none>
ii dpkg-dev 1.18.24
ii powermgmt-base 1.31+nmu1
ii python-apt 1.4.0~beta3
-- Configuration Files:
/etc/cron.daily/apt-compat changed [not included]
-- no debconf information
Reply to: