Make Microsoft Edge coexist with i386

Wednesday, February 1, 2023 · 1 minute · 125 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 " 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.

# import keys
sudo wget -O- | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-edge.gpg

# add Edge repo
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-edge.gpg] stable main' | sudo tee /etc/apt/sources.list.d/microsoft-edge.list

# update
sudo apt update

# install
sudo apt install microsoft-edge-stable -y