# Another machine won't update NR when I run the command

**URL:** https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997
**Category:** General
**Created:** [1 September 2019 11:12 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997 "2019-09-01T11:12:40Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [1 September 2019 11:12 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/1 "2019-09-01T11:12:40Z")

</div>

This is another machine - than the other thread I have.

Another machine is/was/still is giving me grief.

It isn't coming online when it boots.

So I try to look at the NR edit screen. Won't load.

SSH into it and it showed as `dead`.

I decided as it was/is being problematic, I should run the update command and see if it fixes the problem.

Alas, no.

This is what happens:

```auto
Running Node-RED update for user pi at /home/pi on raspbian\n

This can take 20-30 minutes on the slower Pi versions - please wait.

  Stop Node-RED ✔
  Remove old version of Node-RED ✔
  Remove old version of Node.js ✔
  Install Node.js LTS ✘ Failed to install Node.js - Exit
  Clean npm cache                     
  Install Node-RED core               
  Move global nodes to local          
  Install extra Pi nodes              
  Npm rebuild existing nodes          
  Add shortcut commands               
  Update systemd script               
                                      

Any errors will be logged to /var/log/nodered-install.log

pi@PIFACE:~/.node-red $ 

```

Not my week.

The command I used:  
`bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)`

Run from `~/.node-red` and no `sudo`.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [1 September 2019 12:59 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/2 "2019-09-01T12:59:14Z")

</div>

> [@Trying\_to\_learn](#):
>
> Any errors will be logged to /var/log/nodered-install.log

and whats does the install log contain ?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [1 September 2019 21:14 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/3 "2019-09-01T21:14:42Z")

</div>

> [@dceejay](#):
>
> /var/log/nodered-install.log

This is the last of a few attempts done on that day.  
Do you want all of the ones from Saturday?

```auto
***************************************

Started : Sunday 1 September 21:53:33 AEST 2019
Running for user pi at /home/pi
Found global nodes: :

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libc-ares2 libjs-node-uuid
  libv8-3.14-dev libv8-3.14.5 openbsd-inetd pix-icons pix-plym-splash
  pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Now install nodejs
Updating nodejs v0
Not using nodesource.list

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
Package 'nodejs' is not installed, so not removed
Package 'nodejs-legacy' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libc-ares2 libjs-node-uuid
  libv8-3.14-dev libv8-3.14.5 openbsd-inetd pix-icons pix-plym-splash
  pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove node which isn't installed
E: Command line option 'y' [from -y] is not known.
Grab the LTS bundle

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Hit http://linux.teamviewer.com stable InRelease
Ign http://mirrors.digitalocean.com jessie-backports InRelease
Hit http://linux.teamviewer.com preview InRelease
Ign http://mirrors.digitalocean.com jessie-backports Release.gpg
Get:1 http://linux.teamviewer.com stable/main armhf Packages [2,705 B]
Get:2 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Ign http://mirrors.digitalocean.com jessie-backports Release
Get:3 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Hit http://q4os.org q4os-rpi-firefox-cn InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Get:4 http://apt.rb24.com jessie InRelease [3,808 B]
Ign http://repo.mosquitto.org jessie InRelease
Get:5 http://repo.mosquitto.org jessie/main armhf Packages [23.1 kB]
Ign http://apt.rb24.com jessie InRelease
Get:6 https://dl.bintray.com stable InRelease
Ign https://dl.bintray.com stable InRelease
Hit http://q4os.org q4os-rpi-firefox-cn/main armhf Packages
Get:7 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,539 kB]
Get:8 https://dl.bintray.com stable Release.gpg
Ign https://dl.bintray.com stable Release.gpg
Get:9 https://dl.bintray.com stable Release
Ign https://dl.bintray.com stable Release
Get:10 https://dl.bintray.com stable/etcher armhf Packages
Err http://mirrors.digitalocean.com jessie-backports/main armhf Packages
  404 Not Found [IP: 104.24.116.209 80]
Get:11 https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://mirrors.digitalocean.com jessie-backports/main Translation-en_AU
Ign http://mirrors.digitalocean.com jessie-backports/main Translation-en
Get:12 https://dl.bintray.com stable/etcher Translation-en
Get:13 http://linux.teamviewer.com preview/main armhf Packages [2,238 B]
Get:14 https://dl.bintray.com stable/etcher armhf Packages
Get:15 https://dl.bintray.com stable/etcher Translation-en_AU
Get:16 https://dl.bintray.com stable/etcher Translation-en
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:17 https://dl.bintray.com stable/etcher armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:18 https://dl.bintray.com stable/etcher Translation-en_AU
Get:19 https://dl.bintray.com stable/etcher Translation-en
Get:20 https://dl.bintray.com stable/etcher armhf Packages
Ign http://repo.mosquitto.org jessie/main Translation-en_AU
Get:21 https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://repo.mosquitto.org jessie/main Translation-en
Get:22 https://dl.bintray.com stable/etcher Translation-en
Ign http://q4os.org q4os-rpi-firefox-cn/main Translation-en_AU
Get:23 https://dl.bintray.com stable/etcher armhf Packages
Err https://dl.bintray.com stable/etcher armhf Packages
  HttpError404
Get:24 https://dl.bintray.com stable/etcher Translation-en_AU
Ign https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://q4os.org q4os-rpi-firefox-cn/main Translation-en
Get:25 https://dl.bintray.com stable/etcher Translation-en
Ign https://dl.bintray.com stable/etcher Translation-en
Hit http://apt.rb24.com jessie/main armhf Packages
Ign http://apt.rb24.com jessie/main Translation-en_AU
Ign http://archive.raspberrypi.org jessie/main Translation-en_AU
Ign http://apt.rb24.com jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_AU
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://linux.teamviewer.com stable/main Translation-en_AU
Ign http://linux.teamviewer.com stable/main Translation-en
Ign http://linux.teamviewer.com preview/main Translation-en_AU
Ign http://linux.teamviewer.com preview/main Translation-en
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,573 kB in 60s (157 kB/s)
W: GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477
W: GPG error: http://apt.rb24.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F2A8428D3C354953
W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/jessie-backports/main/binary-armhf/Packages 404 Not Found [IP: 104.24.116.209 80]

W: Failed to fetch https://dl.bintray.com/resin-io/debian/dists/stable/etcher/binary-armhf/Packages HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead.

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libc-ares2 libjs-node-uuid
  libv8-3.14-dev libv8-3.14.5 openbsd-inetd pix-icons pix-plym-splash
  pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

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

## Populating apt-get cache...

+ apt-get update
Hit http://linux.teamviewer.com stable InRelease
Hit http://linux.teamviewer.com preview InRelease
Ign http://mirrors.digitalocean.com jessie-backports InRelease
Ign http://mirrors.digitalocean.com jessie-backports Release.gpg
Get:1 http://linux.teamviewer.com stable/main armhf Packages [2,705 B]
Ign http://mirrors.digitalocean.com jessie-backports Release
Hit http://archive.raspberrypi.org jessie InRelease
Get:2 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Get:3 http://apt.rb24.com jessie InRelease [3,808 B]
Hit http://q4os.org q4os-rpi-firefox-cn InRelease
Ign http://repo.mosquitto.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie InRelease
Ign http://apt.rb24.com jessie InRelease
Get:4 http://repo.mosquitto.org jessie/main armhf Packages [23.1 kB]
Get:5 https://dl.bintray.com stable InRelease
Ign https://dl.bintray.com stable InRelease
Get:6 https://dl.bintray.com stable Release.gpg
Hit http://q4os.org q4os-rpi-firefox-cn/main armhf Packages
Ign https://dl.bintray.com stable Release.gpg
Get:7 https://dl.bintray.com stable Release
Ign https://dl.bintray.com stable Release
Get:8 https://dl.bintray.com stable/etcher armhf Packages
Err http://mirrors.digitalocean.com jessie-backports/main armhf Packages
  404 Not Found [IP: 104.24.117.209 80]
Get:9 https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://mirrors.digitalocean.com jessie-backports/main Translation-en_AU
Get:10 http://linux.teamviewer.com preview/main armhf Packages [2,238 B]
Ign http://mirrors.digitalocean.com jessie-backports/main Translation-en
Get:11 https://dl.bintray.com stable/etcher Translation-en
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:12 https://dl.bintray.com stable/etcher armhf Packages
Get:13 https://dl.bintray.com stable/etcher Translation-en_AU
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:14 https://dl.bintray.com stable/etcher Translation-en
Get:15 https://dl.bintray.com stable/etcher armhf Packages
Get:16 https://dl.bintray.com stable/etcher Translation-en_AU
Get:17 https://dl.bintray.com stable/etcher Translation-en
Get:18 https://dl.bintray.com stable/etcher armhf Packages
Get:19 https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://repo.mosquitto.org jessie/main Translation-en_AU
Get:20 https://dl.bintray.com stable/etcher Translation-en
Ign http://repo.mosquitto.org jessie/main Translation-en
Ign http://q4os.org q4os-rpi-firefox-cn/main Translation-en_AU
Get:21 https://dl.bintray.com stable/etcher armhf Packages
Err https://dl.bintray.com stable/etcher armhf Packages
  HttpError404
Get:22 https://dl.bintray.com stable/etcher Translation-en_AU
Ign https://dl.bintray.com stable/etcher Translation-en_AU
Ign http://q4os.org q4os-rpi-firefox-cn/main Translation-en
Get:23 https://dl.bintray.com stable/etcher Translation-en
Ign https://dl.bintray.com stable/etcher Translation-en
Hit http://apt.rb24.com jessie/main armhf Packages
Ign http://apt.rb24.com jessie/main Translation-en_AU
Ign http://apt.rb24.com jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_AU
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_AU
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://linux.teamviewer.com stable/main Translation-en_AU
Ign http://linux.teamviewer.com stable/main Translation-en
Ign http://linux.teamviewer.com preview/main Translation-en_AU
Ign http://linux.teamviewer.com preview/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 42.8 kB in 32s (1,315 B/s)
W: GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477
W: GPG error: http://apt.rb24.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F2A8428D3C354953
W: Failed to fetch http://mirrors.digitalocean.com/debian/dists/jessie-backports/main/binary-armhf/Packages 404 Not Found [IP: 104.24.117.209 80]

W: Failed to fetch https://dl.bintray.com/resin-io/debian/dists/stable/etcher/binary-armhf/Packages HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libjs-node-uuid libv8-3.14-dev
  openbsd-inetd pix-icons pix-plym-splash pixel-wallpaper
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/614 kB of archives.
After this operation, 2,772 kB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 186186 files and directories currently installed.)
Preparing to unpack .../nodejs_0.10.29~dfsg-2_armhf.deb ...
Unpacking nodejs (0.10.29~dfsg-2) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Setting up nodejs (0.10.29~dfsg-2) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
sudo: npm: command not found

```

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [1 September 2019 21:37 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/4 "2019-09-01T21:37:47Z")

</div>

Thanks. Will dig tomorrow.  
In meantime can you try this manually

```auto
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

```

That should just install nodejs. If it completes can you then try

```auto
node -v 
npm -v

```

and report back. Thanks

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [2 September 2019 04:39 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/5 "2019-09-02T04:39:26Z")

</div>

Tail end of the `curl` part and the next command.

```auto
W: Failed to fetch https://dl.bintray.com/resin-io/debian/dists/stable/etcher/binary-armhf/Packages HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
pi@PIFACE:~/.node-red $ sudo apt install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version.
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libjs-node-uuid libv8-3.14-dev openbsd-inetd pix-icons
  pix-plym-splash pixel-wallpaper
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
pi@PIFACE:~/.node-red $ node -v
-bash: node: command not found
pi@PIFACE:~/.node-red $ npm -v
-bash: npm: command not found
pi@PIFACE:~/.node-red $ 

```

I'm guessing that isn't good.

Just in case, attached is the whole thing  
[Update\_try.txt](https://discourse.nodered.org/uploads/short-url/AsAcEg7ZjYirKK2axkrDlgyPYdn.txt) (7.7 KB)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [2 September 2019 13:30 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/6 "2019-09-02T13:30:12Z")

</div>

wowser that is really confused...

can you share the outputs from

```auto
ls -l /etc/apt/sources.list.d/*

```

and

```auto
cat /etc/apt/sources.list

```

you do seem to have rather a lot of extra library sources... and yet something is stopping the basic node install script from adding itself to the list and installing node.js correctly.

Basically you need a file `/etc/apt/sources.list.d/nodesource.list` to contain

```auto
deb https://deb.nodesource.com/node_10.x jessie main
deb-src https://deb.nodesource.com/node_10.x jessie main

```

then run `sudo apt-update && sudo apt install nodejs`  
then check to see what got installed `node -v && npm -v`

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [2 September 2019 21:03 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/7 "2019-09-02T21:03:53Z")

</div>

Part 1:

```auto
pi@PIFACE:~ $ ls -l /etc/apt/sources.list.d/*
-rw-r--r-- 1 root root 66 Sep 23 2017 /etc/apt/sources.list.d/backports.list
-rw-r--r-- 1 root root 57 Oct 2 2017 /etc/apt/sources.list.d/etcher.list
-rw-r--r-- 1 root root 49 May 29 2016 /etc/apt/sources.list.d/mosquitto-jessie.list
-rw-r--r-- 1 root root 54 May 22 2017 /etc/apt/sources.list.d/qextrepo.list
-rw-r--r-- 1 root root 193 Nov 22 2015 /etc/apt/sources.list.d/raspi.list
-rw-r--r-- 1 root root 37 May 5 2017 /etc/apt/sources.list.d/rb24.list
-rw-rw-r-- 1 1001 1001 1507 Mar 10 2018 /etc/apt/sources.list.d/teamviewer.list
pi@PIFACE:~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
pi@PIFACE:~ $ 

```

part 2:

```auto
pi@PIFACE:/etc/apt/sources.list.d $ lf
backports.list qextrepo.list teamviewer.list
etcher.list raspi.list
mosquitto-jessie.list rb24.list
pi@PIFACE:/etc/apt/sources.list.d $ 

```

Part 3:

```auto
pi@PIFACE:/etc/apt/sources.list.d $ cat * | grep "deb https://deb.nodesource.com/node_10.x jessie main"
pi@PIFACE:/etc/apt/sources.list.d $ cat * | grp nodesource
-bash: grp: command not found
pi@PIFACE:/etc/apt/sources.list.d $ cat * | grep nodesource
pi@PIFACE:/etc/apt/sources.list.d $ 

```

Sorry about the middle spelling mistake.  
Not looking good I suspect.

> [@dceejay](#):
>
> Basically you need a file `/etc/apt/sources.list.d/nodesource.list` to contain
> 
> ```auto
> deb https://deb.nodesource.com/node_10.x jessie main
> deb-src https://deb.nodesource.com/node_10.x jessie main
> 
> ```

It doesn't appear to exist.

I'll wait here for confirmation that I need to do the next step.

But, I'm guessing I need to make that file and put those lines in it?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [2 September 2019 21:15 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/8 "2019-09-02T21:15:35Z")

</div>

I will _admit_ here that I think I know why that file is missing.

> aaaargh - you did not want to apt install npm... now that is broken (1.4 is way too old) - please `sudo apt-get purge npm nodejs` to remove it (and any nodejs), then `sudo rm /etc/apt/sources.list.d/nodesource.list` to remove that old one, then re-run the upgrade/install bash command (without sudo)... and see which version we get... - it may well re-install 6 - in which case then yes a whole OS upgrade is the way forward.

I know that is from another thread, but as this machine is as _infected_ as the other/s..... I probably did it on this one as well.  
Sorry if that caused unneeded stress.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [2 September 2019 21:18 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/9 "2019-09-02T21:18:13Z")

</div>

> [@dceejay](#):
>
> then run `sudo apt-update`

(Sorry.....)

That should be:  
`sudo apt update` - yes?  
or  
`sudo apt-get update`

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [2 September 2019 21:52 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/10 "2019-09-02T21:52:47Z")

</div>

Yes

The /etc/apt/sources.list.d/nodesource.list file needs to be added with contents as above then yes

sudo apt update

Then try the nodejs install

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [2 September 2019 22:16 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/11 "2019-09-02T22:16:46Z")

</div>

Looking good/better

```auto
pi@PIFACE:/etc/apt/sources.list.d $ sudo apt install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ax25-node gyp libax25 libc-ares-dev libc-ares2 libjs-node-uuid libv8-3.14-dev libv8-3.14.5 openbsd-inetd pix-icons pix-plym-splash
  pixel-wallpaper
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  nodejs
1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Need to get 14.2 MB of archives.
After this operation, 70.0 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_10.x/ jessie/main nodejs armhf 10.16.3-1nodesource1 [14.2 MB]
Fetched 14.2 MB in 6s (2,259 kB/s)                                                                                                                  
(Reading database ... 186280 files and directories currently installed.)
Preparing to unpack .../nodejs_10.16.3-1nodesource1_armhf.deb ...
Unpacking nodejs (10.16.3-1nodesource1) over (0.10.29~dfsg-2) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Setting up nodejs (10.16.3-1nodesource1) ...
pi@PIFACE:/etc/apt/sources.list.d $ node -v
v10.16.3
pi@PIFACE:/etc/apt/sources.list.d $ npm -v
6.9.0
pi@PIFACE:/etc/apt/sources.list.d $ 

```

Start NR?

Maybe not.

```auto
pi@PIFACE:~ $ cd .node-red
pi@PIFACE:~/.node-red $ node-red-start
-bash: node-red-start: command not found

```

I'm not going to guess which command/script I need to do to get that part working.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [2 September 2019 23:42 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/12 "2019-09-02T23:42:32Z")

</div>

> [@Trying\_to\_learn](#):
>
> Start NR?
> 
> Maybe not.

Now you have node 10.x, rerun the Node-RED install script.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 September 2019 02:43 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/13 "2019-09-03T02:43:19Z")

</div>

Thanks for the confidence Nick, but with my track record.....

Please tell me the command, as I have been told (a fair while back) that the command I thought was **THE** command isn't /wasn't.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 September 2019 06:17 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/14 "2019-09-03T06:17:39Z")

</div>

Yes re-run the bash script from the install docs. (Without sudo)

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 September 2019 09:33 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/15 "2019-09-03T09:33:38Z")

</div>

Ok, the results are in:

This is what happened:

```auto
Running Node-RED update for user pi at /home/pi on raspbian\n

This can take 20-30 minutes on the slower Pi versions - please wait.

  Stop Node-RED ✔
  Remove old version of Node-RED ✔
  Remove old version of Node.js -
  Leave existing Node.js - Node v10.16.3 Npm 6.9.0
  Clean npm cache -
  Install Node-RED core ✔ 0.20.7 
  Move global nodes to local -
  Install extra Pi nodes -
  Npm rebuild existing nodes -
  Add shortcut commands ✔
  Update systemd script ✔
                                           

Any errors will be logged to /var/log/nodered-install.log

All done.
  You can now start Node-RED with the command node-red-start
  or using the icon under Menu / Programming / Node-RED
  Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880

Started Tuesday 3 September 19:25:24 AEST 2019 - Finished Tuesday 3 September 19:30:37 AEST 2019

pi@PIFACE:~ $ node -v
v10.16.3
pi@PIFACE:~ $ npm -v
6.9.0
pi@PIFACE:~ $ 

```

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 September 2019 09:53 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/16 "2019-09-03T09:53:01Z")

</div>

and does `node-red-start` now work again ?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 September 2019 09:56 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/17 "2019-09-03T09:56:03Z")

</div>

Am still trying to get my head around that.

Thanks.

It is working, but **WOW** all the dashboard things are unassigned.  
The drop down list is completely different and I can't find some of the names I can see in the dashboard list on the right of the screen.

I may need to get a complete list of what I did to get it working, so I can use it to get the others working.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 September 2019 10:26 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/18 "2019-09-03T10:26:59Z")

</div>

Where can I find docs on how the new dashboard layout works?

I've tried the `documentation` section, but I can't find anything on the new layout.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 September 2019 10:35 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/19 "2019-09-03T10:35:42Z")

</div>

The old way still works - so you can just use that if necessary. The new way should be fairly intuitive - it works on one tab at a time only - but you can then just drag widgets around within and between their groups to arrange the order and size .

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 September 2019 10:41 UTC](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997/20 "2019-09-03T10:41:29Z")

</div>

Alas, I am missing something.

Say I have a "window" called TELEMETRY. On that I have a few "groups" like: 1, 2, 3, 4.

When I double click a dashboard node I get the list but all I see is TELEMETRY.  
I don't get to see the 1, 2, 3 or 4.

I kind of "cheated" with the RPI and just selected the name of the "window" in which those nodes live.

Looking to the right of the screen as I move the mouse over the lists of nodes, I see the ones on/in the main edit screen become highlighted pretty much in the right way.

All that being good, I press `DEPLOY` and go to the GUI page.

BLANK.

I see the GUI nodes have changed their look. Not a big problem, but it sort of threw me.

All the flows on the RPI are "happy" as in there are no errors/missing nodes/etc.

Thanks in advance.

I was going to show pictures of this but when I press the to get a screen shot, I lose the menu I see.

[Next page](https://discourse.nodered.org/t/another-machine-wont-update-nr-when-i-run-the-command/14997.md?page=2)
