Failed to update Node.js: Command failed: curl -sL https://deb.nodesource.com/setup_16.x | bash -
See original GitHub issueCurrent 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:
- Created 2 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
This issue has been closed as no further activity has occurred.