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

Wookey wookey at wookware.org
Thu Aug 2 15:29:44 UTC 2012


Public bug reported:

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.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: multiarch

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