I try to add 32 bit (i386) architecture to my Debian Bullseye using :

 sudo dpkg --add-architecture i386

But it gives me no error or no success message. When I used

 sudo dpkg --print-architecture

still gives only am64

I have read add 32 bit architecture question and answer for Ubuntu. Command

 ls /etc/dpkg/dpkg.cfg.d/

gives :


When I looked inside the file it writes :

post-invoke=if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkg-config-dpkghook; then /usr/share/pkg-config-dpkghook update; fi

So I checked that whether there is a file named pkg-config-dpkghook in /usr/share/ but no, there is no such file there.

Do I have to replace the filename with multiarch , if not what should I do?

  • You (unintentionally?) made your question much less clear with that recent edit. I've rolled it back to a point where it's answerable.
    – Jeff Schaller
    Mar 27, 2022 at 16:58

1 Answer 1

dpkg --print-architecture

displays your system’s primary architecture.

To see any additional architectures configured on the system, you need to run

dpkg --print-foreign-architectures

This should show i386 in your case.

  • 1
    It means the i386 architecture is enabled, which is a reasonable proxy for 32-bit support being enabled. You’ll need to install i386 libraries if you want to actually run i386 binaries. Oct 27, 2021 at 10:27

You must log in to answer this question.