Specifying architecture in apt sources list

aptdebian

I had to add i386 architecture to apt sources list to be able to install 32 bit package required for gaming.

My sources.list now look like this:

deb [arch=amd64,i386] https://deb.debian.org/debian/ bookworm main non-free contrib non-free-firmware
deb-src [arch=amd64,i386] https://deb.debian.org/debian/ bookworm main non-free contrib non-free-firmware
    
deb https://security.debian.org/debian-security bookworm-security main non-free contrib non-free-firmware
deb-src https://security.debian.org/debian-security bookworm-security main non-free contrib non-free-firmware
        
deb https://deb.debian.org/debian/ bookworm-updates main non-free contrib non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-updates main non-free contrib non-free-firmware

To install the package adding i386 was required only for first line, but I'm not sure if I should add the arch to all lines?

For instance if I don't does this mean that the package won't be updated when using apt update?

Best Answer

On debian, if you have enabled multiarch using sudo dpkg --add-architecture i386, you don't need to set the arch= in your sources.list.

Setting up apt sources. explained on Debian Wiki.

Related Question