2

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?

1 Answer 1

3

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.

5
  • 1
    Yes I did sudo dpkg --add-architecture i386, didn't know I don't need to add into sources.list as well, thanks. Commented Jan 24, 2024 at 13:38
  • 1
    But I would appreciate to know, if I didn't, would I need to modify all lines then? Commented Jan 24, 2024 at 13:40
  • 1
    @metablaster typically you need to use the architecture option in your sources if you want something other than what dpkg expects (e.g., only a specific architecture, or specific set of architectures, for a specific repo) Commented Jan 24, 2024 at 13:40
  • 1
    @metablaster I have added a link to the debian wiki. Commented Jan 24, 2024 at 13:47
  • 1
    I have read it, thanks! is also says Arch-qualifying deb-src lines doesn't make any sense, good to know! Commented Jan 24, 2024 at 13:51

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.