[Bug 1032250] Re: apt chooses wrong architecture if sources.list contains arch-qualified entries

David Kalnischkies 1032250 at bugs.launchpad.net
Thu Aug 2 15:47:10 UTC 2012


Smells like: http://anonscm.debian.org/loggerhead/apt/debian-sid/revision/2237
Am I right? This is in apt >= 0.9.7.2 in debian (wheezy) if you wanna test.

You haven't mentioned a version number, but i guess you are on the "newest" in ubuntu which is 0.9.7.1something.
The diff probably does not apply to apt <= 0.9.7 through as the code was moved. I am not sure, but i guess it doesn't effect earlier versions (at least on in the commandline parsing, the architecture wildcards in build-depends are a "problem" non-the-less).

-- 
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/1032250

Title:
  apt chooses wrong architecture if sources.list contains arch-qualified
  entries

Status in “apt” package in Ubuntu:
  New

Bug description:
  If both armel and armhf are given as arch qualifiers in sources.list,
  then apt tries to install the wrong architecture package:

  I ask directly for an amrhf package and apt tries (but fails) to
  install an armel one:

  $ sudo apt-get install zlib1g-dev:armhf
  ...
  The following packages have unmet dependencies:
   zlib1g-dev:armel : Depends: zlib1g:armel (= 1:1.2.7.dfsg-13) but it is not going to be installed
                      Depends: libc6-dev:armel but it is not going to be installed or
                               libc-dev:armel

  Sources.list looks like this:
  deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu quantal main universe
  deb [arch=armhf,armel] http://ports.ubuntu.com/ubuntu-ports quantal main universe
  deb-src  http://archive.ubuntu.com/ubuntu quantal main universe

  There are no :armel or :armhf packages installed.

  The ordering of the arch qualifiers in sources.list does not matter: this line produces the same output
  deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports quantal main universe

  change the line to 
  deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports quantal main universe
  and it works as expected.

  The apt sources info seems to be overriding the dpkg foreign-
  architecture info.

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




More information about the foundations-bugs mailing list