'https://deb.nodesource.com/node_20.x nodistro InRelease'不支持架构'i386'

问题描述 投票:0回答:1

我使用 NodeSource 存储库安装 NodeJS,我按照 deb.nodesource.com(在主页上)上的说明进行操作,每次运行

sudo apt update
安装后,我都会在输出结束时收到此警告,并且 NodeJS 正在工作好的,所以我的问题是为什么显示此错误以及如何解决此问题?

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
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'

我的系统信息是: 操作系统:Ubuntu 22.04 处理器:AMD A6-7310 带 Readon R4 显卡

我搜索了解决方案并阅读了其他类似问题的答案,但它们具体说明了这些错误。

node.js linux ubuntu x86 apt
1个回答
1
投票

警告本身是相当无害的。它只是说节点存储库没有任何 32 位包。我怀疑在某个时候 32 位支持被添加到这个 Ubuntu 安装中。您可以通过查看来检查:

# dpkg --print-architecture
amd64

# dpkg --print-foreign-architectures

并查看是否设置了多拱形拱门。您可以通过调整 deb 行来强制任何给定的存储库只关心一种架构。因此,在您的情况下,编辑

/etc/apt/sources.list.d/nodesource.list
来阅读:

deb [signed-by=/etc/apt/keyrings/nodesource.gpg, arch=amd64] https://deb.nodesource.com/node_20.x nodistro main
© www.soinside.com 2019 - 2024. All rights reserved.