Error when updating through apt with i386 architecture(Ubuntu)

When doing sudo apt update && sudo apt upgrade, I get the following error:

N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/ubuntu noble InRelease' doesn't support architecture 'i386'

I suppose removing stable/binary-i386/Packages would stop this from happening, however, is this okay to do? How could I remove it?

Thank you!

2 Likes

I quote the documentation:

To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
…
Docker Engine for Ubuntu is compatible with x86_64 (or amd64), armhf, arm64, s390x, and ppc64le (ppc64el) architectures.

There is no i386 support, and not because you are using the stable channel.

1 Like

Did you accidentally install the i386 version of the os?

It seems, in ancient times people were able to build their own i386 builds of docker, but it requires docker running on a x86_64 system to build a 32 bit version. I doubt it’s worth the effort, as only a fraction of the images will support i386 architecture.

You could check if your system has a cpu that supports the x86_64 architecture:: grep "model name" /proc/cpuinfo | uniq

I have a modern laptop (AMD Ryzen 7 5800U with Radeon Graphics) which does support x86_64. I’ve used docker desktop for a project recently and it has worked smoothly. I followed de Docker Desktop install on Ubuntu guide, I haven’t messed around with different architectures or building my own (to be honest, I’m very new to coding and such lol, I didn’t even know what i386 was previous to this), so I’m not sure what I could’ve done to get this error.

It doesn’t seem like it’s causing an error when running Docker, apparently it’s just an annoying message.

Please share the output of uname -a and sudo grep "i386" -r /etc/apt
There must be reason why there is a reference to an i386 repo.

Update: post in stock exchange looks like something that might be relevant for you: https://askubuntu.com/a/741411

1 Like
uname -a

Linux HP-Adri 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

sudo grep "i386" -r /etc/apt

`/etc/apt/sources.list.d/steam-stable.list:deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] htt\ps://repo.steampowered.com/steam/ stable steam
/etc/apt/sources.list.d/steam-stable.list:deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] ht\tps://repo.steampowered.com/steam/ stable steam

/etc/apt/sources.list.d/steam-beta.list:#deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] htt\ps://repo.steampowered.com/steam/ beta steam
/etc/apt/sources.list.d/steam-beta.list:#deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] ht\tps://repo.steampowered.com/steam/ beta steam`

(added \ in links to break them, since I cannot post more than 2 links in one post as a new user)

Thank you, I will check out the post you shared

1 Like

Your kernel is fine. It is a x86_64 kernel (otherwise Docker Desktop wouldn’t run either).

Though, it kooks like your system is generally looking for i386 repos. This is not a default behavior of Ubuntu Noble. Probably related to something Steam requires?

Does /etc/apt/sources.list.d/docker.list look like this on your system?

deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu   noble stable
2 Likes

The /etc/apt/sources.list.d/docker.list file doesn’t exist on my computer, but I went inside /etc/apt/sources.list.d/ and I have found a file called docker.sources, which looks like this inside:

Types: deb
URIs: ht\tps://download.docker.com/linux/ubuntu
Suites: noble
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc

Right, yours is in the new format. Mine is still in the old format.

Following the post you shared it seems I have fixed it by adding the line Architectures: amd64 to the file.

→ Added Architectures: amd64 at the bottom of /etc/apt/sources.list.d/docker.sources

Thank you very much for your help, and sorry for the hassle :sweat_smile:.

2 Likes

Finally… a solution… :slight_smile: thanks..