Ubuntu repo update warns about skipping i386 packages on amd64

A
  • 13 Jul '23
In Ubuntu 22.04 (amd64), 'apt update' reports the following:

N:

Skipping acquire of configured file 'nginx/binary-i386/Packages'
as repository '
http://nginx.org/packages/u
buntu jammy InRelease'
doesn't support architecture 'i386'

To add the repo, I followed the directions at
http://nginx.org/en/linux_packages.html#Ubuntu
.

I realize it's only a warning and likely can be safely ignored,
at least on amd64 machines. If so, perhaps it can be suppressed
based on the architecture – unless this has to do with the local
apt config, in which case what are the relevant groups/options/values?

--
aslamK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230713/9c32ec6a/attachment.htm>
K
  • 14 Jul '23
Hi aslamK!

On 13/07/2023 1:26 PM, aslamK wrote:
> In Ubuntu 22.04 (amd64), 'apt update' reports the following: N: 
> Skipping acquire of configured file 'nginx/binary-i386/Packages' as 
> repository 'http://nginx.org/packages/ubuntu jammy InRelease' doesn't 
> support architecture 'i386' To add the repo, I followed the directions 
> at http://nginx.org/en/linux_packages.html#Ubuntu. I realize it's only 
> a warning and likely can be safely ignored, at least on amd64 
> machines. If so, perhaps it can be suppressed based on the 
> architecture – unless this has to do with the local apt config, in 
> which case what are the relevant groups/options/values?

Looks like you have a foreign dpkg architecture enabled (i386) on an 
amd64 host.  You may check it with `dpkg --print-foreign-architectures`.

If that's true, you can add arch=amd64 to sources.d/nginx.list options, 
so it will look similar to:

deb [arch=amd64 signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] 
http://nginx.org/packages/ubuntu jammy nginx

Have a good one,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230713/e59f2044/attachment.htm>