"apt-get -s --print-uris update" does not work on Tahr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Tahr:
$ apt-get -s --print-uris update
E: Command line option 's' [from -s] is not known.
On saucy (expected result)
$ apt-get -s --print-uris update
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
...
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apt 1.0.1ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Apr 16 11:08:04 2014
InstallationDate: Installed on 2014-04-11 (4 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Daily amd64 (20140411)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
Well, this is intended behavior as our commandline parser got stricter and allows/forbids options based on the subcommands (like update) instead of accepting and possibly silently ignoring all options for every subcommand confusing the hell out of users and developers alike.
Simulation (-s) is e.g. a option which had no effect for "update". And it has also semantically no effect as "--print-uris" already expresses the wish to do 'nothing'.
So, if this is just muscle memory, it might be painful, but I would like to ask you to retrain yourself. After all: Less typing for the same effect! ;)
If you happen to use that in a script, changing would be a good idea here, too, as said, in this case the behavior does not change at all, so you can remove it and still support any apt version as before.
In the (unlikely) even this is a very very important application hard-depending on this which can't be fixed easily, please reopen the bug and we will figure something out as a temporary workaround.