[Aptitude-devel] Basic multiarch support

Daniel Hartwig mandyke at gmail.com
Thu Feb 23 20:20:51 UTC 2012

I have started to implement basic multiarch support for aptitude.

This is mainly to use arch-qualified names (e.g. "apt:amd64") of
foreign architecture packages where appropriate to distinguish them
from native packages.  Architecture is also shown on the pkg info view
and "aptitude show".

Pushing these changes to master as they have no effect on
non-multiarch systems and are supported by current versions of apt in

You can see the architecture of each package and have some chance to
install foreign packages and manually fix broken dependencies.

More screens and commands will have their output converted in the next few days.

Remaining issues (which I won't yet touch):

- resolver does not handle m-a
- no search for arch
- no grouping by arch
- command-line search, why, etc. not working
- foreign arch packages always appear as "new"

Some samples:

-- aptitude install apt:amd64/experimental -D
The following NEW packages will be installed:
  apt:amd64{b} (D: debian-archive-keyring:amd64, D: gnupg:amd64, C: apt)
  gcc-4.6-base:amd64{a} (D: libgcc1:amd64, D: libstdc++6:amd64)
  libapt-pkg4.12:amd64{a} (D: apt:amd64)
  libc6:amd64{a} (D: apt:amd64, D: libapt-pkg4.12:amd64, D:
libgcc1:amd64, D: libstdc++6:amd64, D: zlib1g:amd64, R: initscripts,
R: libc-bin, R: tzdata)
  libgcc1:amd64{a} (D: apt:amd64, D: libapt-pkg4.12:amd64, D:
libc6:amd64, D: libstdc++6:amd64)
  libstdc++6:amd64{a} (D: apt:amd64, D: libapt-pkg4.12:amd64)
  zlib1g:amd64{a} (D: apt:amd64, D: libapt-pkg4.12:amd64)
0 packages upgraded, 7 newly installed, 0 to remove and 6 not upgraded.
Need to get 6,924 kB/7,105 kB of archives. After unpacking 17.7 MB will be used.
The following packages have unmet dependencies:
 apt:amd64 : Depends: debian-archive-keyring:amd64 which is a virtual package.
             Depends: gnupg:amd64 but it is not going to be installed.
             Conflicts: apt but is installed.
 apt : Conflicts: apt:amd64 but 0.8.16~exp12 is to be installed.

-- package list
aptitude 0.6.5
  --\ admin (1655)
    --\ main (1655)
p     aboot-base                                           <none>     1.0~pre200
p     aboot-cross:amd64                                    <none>     1.0~pre200
p     aboot-cross                                          <none>     1.0~pre200
p     abootimg:amd64                                       <none>     0.6-1
p     abootimg                                             <none>     0.6-1
p     accountsservice:amd64                                <none>     0.6.15-4
p     accountsservice                                      <none>     0.6.15-4

More information about the Aptitude-devel mailing list