Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Node.js 20 apt update error #1741

Closed
Hanro50 opened this issue Dec 30, 2023 · 1 comment
Closed

[ERROR] Node.js 20 apt update error #1741

Hanro50 opened this issue Dec 30, 2023 · 1 comment
Labels

Comments

@Hanro50
Copy link

Hanro50 commented Dec 30, 2023

Describe your bug
On an amd64 system with i386 packages enabled. You will get the following warning when searching for updates

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'

Distribution Information:

  • OS: LMDE
  • Version 6

Node Version:

  • Node: v20.x

To Reproduce
Steps to reproduce the behavior:

  1. run sudo dpkg --add-architecture i386
  2. Follow the instructions for Ubuntu or Debian
  3. run sudo apt update

Expected behavior
I don't expect this error message to be there

Additional context
You can fix this bug by changing
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
to
deb [arch=amd64 signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main

Edit: Potential fix
Change this line in the documentation

echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

to

echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
@Hanro50 Hanro50 added the bug label Dec 30, 2023
@JesusPaz
Copy link
Contributor

JesusPaz commented Jan 2, 2024

Thanks for your contribution, this issue is resolved by #1739

@JesusPaz JesusPaz closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants