[Bug 1075260] Re: no error or warning shown when "dpkg --print-foreign-architectures" fails (e.g. with invalid DPkg::options)

David Kalnischkies 1075260 at bugs.launchpad.net
Tue Nov 6 15:26:19 UTC 2012


The code isn't throwing errors as it doesn't know if dpkg supports this
option and therefore it is a perfectly fine case to get a non-zero exit
here. At the time the code was written there was simple no way of
detecting it, now there is dpkg --assert-multi-arch but that isn't
supported by all dpkg's which support --print-foreign-architectures, so
we just don't bother to try for now as it introduces more problems than
it solves.

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

Title:
  no error or warning shown when "dpkg --print-foreign-architectures"
  fails (e.g. with invalid DPkg::options)

Status in “apt” package in Ubuntu:
  New
Status in “aptitude” package in Ubuntu:
  Invalid

Bug description:
  1) Release: Precise

  2) aptitude 0.6.6-1ubuntu1
       and apt 0.8.16~exp12ubuntu10.5 -- not sure what the protocol is for this or if the bug is at a common dependency.

  3) Command run: aptitude -o 'Dpkg::Options::="--force-confdef"' update
  Command produces identical output as aptitude update with respect to amd64 and i386 or an error message detailing that the argument passed is invalid due to the extra set of quotations.

  -- A separate system runs the above command, and it fails to allow us
  to install 32bit libraries as needed for our systems.

  4) Command only downloads the package lists for the main architecture
  of the system.

  Reproduction:

      aptitude clean
      aptitude -o 'Dpkg::Options::="anyoptioninquotes"' update | grep i386

  There should be no results whereas:

      aptitude clean
      aptitude update | grep i386 

  Lists the i386 repositories being hit.

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




More information about the foundations-bugs mailing list