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

4bbkushb  于 5个月前  发布在  Linux
关注(0)|答案(1)|浏览(95)

我使用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 with Readon R4 Graphics
我搜索解决方案,并阅读其他类似问题的答案,但他们对这些错误的具体。

2skhul33

2skhul331#

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

# dpkg --print-architecture
amd64

字符串

# dpkg --print-foreign-architectures


并查看是否设置了任何多拱拱。您可以通过调整deb行来强制任何给定的repo只关心一个架构。因此,在您的情况下,编辑/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

相关问题