Re: [Bug 1255806] Re: apt-get --purge -yf build-dep hello, fails with E: Command line option ‘f’ [from -yf] is not known.

Dmitrijs Ledkovs launchpad at surgut.co.uk
Thu Nov 28 17:18:46 UTC 2013


On 28 November 2013 16:29, Michael Vogt <michaelvogt at imap.cc> wrote:
> Hey  Dmitrijs,
>
> thanks for your bugreport. The "-f" flag means "--fix-broken" and is not
> used by apt the context of build-dep. This is why its complaining. If it
> breaks sbuild we can add it back, but note that it does not have any
> effect AFAICT (looking at the apt source).
>

Above is actually a regression, which causes sbuild to fail when using
AptResolver when cross-compiling. I don't know if "-f" actually does
anything when above command is invoked.

As per manpage all options apply to all sub-commands, and there are no
per sub-command options/restrictions. ( [-asqdyfmubV] )

specifically, why is "-f" rejected yet at the same time:
    apt-get -oAPT::Get::Fix-Broken=true --purge -y build-dep hello
is accepted?

Similarly "--purge" had to be unbroken, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720597

Removing options, breaks compatibility, thus shouldn't be done in a
point release of such a core utility which is used in scripts.

Regards,

Dmitrijs.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1255806

Title:
  apt-get --purge -yf build-dep hello, fails with E: Command line option
  ‘f’ [from -yf] is not known.

Status in “apt” package in Ubuntu:
  Confirmed

Bug description:
  apt-get --purge -yf build-dep hello, fails with E: Command line option
  ‘f’ [from -yf] is not known.

  this thus breaks sbuild cross-builds. another regression ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1255806/+subscriptions



More information about the foundations-bugs mailing list