Using Ubuntu 22.04. I have added nodejs
repo following their official manual. However, when I do sudo apt update
, I am getting:
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://deb.nodesource.com/node_20.x nodistro InRelease' doesn't support architecture 'i386'
I did some research and to fix this, I have to add [arch=amd64]
option to /etc/apt/sources.list.d/nodesource.list
. However, when I open the file, the source already has an option:
[signed-by=/etc/apt/keyrings/nodesource.gpg]
How to use multiple options values in apt
's sources.list
?
I have tried separating them with ,
(comma), but this doesn't work:
deb [arch=amd64,signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
There are two formats that allow you to add multiple options to
apt
sources: the one-line style format, which uses.list
files in/etc/apt/sources.list.d
, and the DEB822 style format, which uses.sources
files in/etc/apt/sources.list.d
. The one-line style format is currently used, but the DEB822 style format is planned to gradually become the default. The usage of each format is described below..list
- One-line style formatAccording to the
sources.list(5)
manpage the options have to be separated with spaces when using the one-line style format:/etc/apt/sources.list.d/nodesource.list
should look like this:.sources
- DEB822 style formatAccording to the
sources.list(5)
manpage, if you are using the DEB822 format, options are set the same way as the the other fields./etc/apt/sources.list.d/nodesource.sources
should look like this:Related: