Make Microsoft Edge coexist with i386

Wednesday, February 1, 2023 · 1 minute · 128 words

On my workstation, I manage both amd64 and i386 architecture.

When I try to install Microsoft Edge on my Linux, after the apt update, I have this message:

The configured file "main/binary-i386/Packages" will not be taken into account
because the repository "https://packages.microsoft.com/repos/edge stable
InRelease" does not support the "i386" architecture

The solution

We must specify in the configuration of the package repository that it is an amd64 architecture, and thus we avoid that it tries to install i386 for edge, when there is none.

 1# import keys
 2sudo wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-edge.gpg
 3
 4# add Edge repo
 5echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-edge.gpg] https://packages.microsoft.com/repos/edge stable main' | sudo tee /etc/apt/sources.list.d/microsoft-edge.list
 6
 7# update
 8sudo apt update
 9
10# install
11sudo apt install microsoft-edge-stable -y