question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to update Node.js: Command failed: curl -sL https://deb.nodesource.com/setup_16.x | bash -

See original GitHub issue

Current Situation

Trying to upgrade Node.js to 16.x from 14.17.2. Have used hb-service before successfully but now it fails. See log.

Logs

pi@raspberrypi:~ $ sudo hb-service update-node
ℹ Updating Node.js from v14.17.2 to v16.13.1...
ℹ Updating from NodeSource...

## Installing the NodeSource Node.js 16.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 https://deb.nodesource.com/node_14.x buster InRelease                                      
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]                           
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]                   
Reading package lists... Done       
E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Error executing command, exiting
✖ Failed to update Node.js: Command failed: curl -sL https://deb.nodesource.com/setup_16.x | bash -

Configuration

n/a

Environment

  • OS: Raspbian GNU/Linux 10 \n \l
  • Software: Homebridge
  • Node: 14.17.2
  • npm: 8.3.0

Process Supervisor

hb-service

Additional Context

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
Cesco117commented, Dec 30, 2021

Solution found here :

First : allow release info change :

sudo apt-get update --allow-releaseinfo-change

Then you can update Node with :

sudo hb-service update-node

0reactions
github-actions[bot]commented, Feb 8, 2022

This issue has been closed as no further activity has occurred.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems trying to update Node.Js : r/homebridge - Reddit
Failed to update Node.js: Command failed: curl -sL https://deb.nodesource.com/setup_16.x | bash -. What can i be doing wrong?
Read more >
Ask Question - Stack Overflow
I guess you need to put the sudo in front of the bash command; try curl -fsSL https://deb.nodesource.com/setup_16.x | sudo bash.
Read more >
How to Easily Update Node.js to the Latest Version
In this article, you will learn how to quickly and easily update Node.js on different operating systems—macOS, Linux, and Windows.
Read more >
Trouble updating to newer Node.js - Raspberry Pi Forums
When I run the curl command (curl sL- https://deb.nodesource.com/setup_10.x | sudo bash -), I continue to get the same error. You will continue ......
Read more >
How do I install the latest version of node.js? - Ask Ubuntu
Per the Node.js website: # Using Debian/Ubuntu curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found