# Raspian Jessie not supported with latest bash script

**URL:** <https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617>\
**Category:** General\
**Created:** [7 November 2019 02:52 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617 "2019-11-07T02:52:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 02:52 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/1 "2019-11-07T02:52:25Z")

</div>

The recommended bash script to install node-red into debian is:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

This worked last week or so but is broken today.

I did find an older script:

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

```

This one works still.

It appears that a version of node at a higher revision level is being installed with the recommended script.

Is this a known issue?

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 03:13 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/2 "2019-11-07T03:13:55Z")

</div>

Just adding to this question.

The tail of the install log when script failure is observed is

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

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Depends: libstdc++6 (>= 5.2) but 4.9.2-10 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo: npm: command not found

```

Earlier in the the log I see:

```auto
## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

```

So node at the 12.x level is being tried and apparently this is too new for Jessie.

---

<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:** [7 November 2019 08:49 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/3 "2019-11-07T08:49:14Z")

</div>

crickey... ok - yes - anyone know where I can download a copy of raspbian jessie to test against ?

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [7 November 2019 08:51 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/4 "2019-11-07T08:51:39Z")

</div>

[http://downloads.raspberrypi.org/raspbian/images/](http://downloads.raspberrypi.org/raspbian/images/)

---

<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:** [7 November 2019 09:53 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/5 "2019-11-07T09:53:34Z")

</div>

Thanks - sorted - pushed

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 14:40 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/6 "2019-11-07T14:40:51Z")

</div>

So, Jessie users can use the ordinary Debian script again?

---

<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:** [7 November 2019 14:41 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/7 "2019-11-07T14:41:40Z")

</div>

yes - please try it and report back 🙂  
(as in it now works for me on a clean Jessie install with latest updates applied)

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 18:13 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/8 "2019-11-07T18:13:19Z")

</div>

I am not starting with a clean Jessie unfortunately and for the class I am running, the students are using this "unlcean" Jessie.

I get the same error condition:

```auto
Reading package lists...

## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

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

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Depends: libstdc++6 (>= 5.2) but 4.9.2-10 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo: npm: command not found

```

The output from cat-ing of os-release is:

```auto
pi@CybatiWorksPI:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

```

So I guess I have to stick with the old script for now.

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 18:18 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/9 "2019-11-07T18:18:22Z")

</div>

Some additional info from the log. I see this:

```auto
Reading package lists...

## You seem to be using Devuan version jessie.
## This maps to Debian "jessie"... Adjusting for you...

## Confirming "jessie" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/jessie/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 12.x repo...

+ echo 'deb https://deb.nodesource.com/node_12.x jessie main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_12.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

```

---

<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:** [7 November 2019 18:26 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/10 "2019-11-07T18:26:16Z")

</div>

what does `cat /etc/os-release | grep VERSION_ID` report ?  
It should be 8.

I have tweaked it slightly - any chance you can try it again (from linux-installers)

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 19:06 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/11 "2019-11-07T19:06:03Z")

</div>

> [@dceejay](#):
>
> cat /etc/os-release | grep VERSION\_ID

`VERSION_ID="8"`

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 19:11 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/12 "2019-11-07T19:11:49Z")

</div>

Thanks for checking.

The script is working now!

---

<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:** [7 November 2019 20:09 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/13 "2019-11-07T20:09:58Z")

</div>

👍 thanks for testing it for me / us all !

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 20:32 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/14 "2019-11-07T20:32:33Z")

</div>

Ooops, but I think there is still a problem.

The first attempt to run the script on a fresh version of my unclean duvian Jessie fails with the same error.

But then the second attempt succeeds.

I am going to check whether VERSION\_ID is something other than "8" with the fresh Jessie that I am starting with.

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 20:59 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/15 "2019-11-07T20:59:07Z")

</div>

The VERSION\_ID is 8 with a fresh install.

node -v reports v0.10.29

Not sure how I can detect/report why the first attempt fails but the second one succeeds.

---

<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:** [7 November 2019 21:09 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/16 "2019-11-07T21:09:21Z")

</div>

Yes - 0.10 is well past it's sell by date !

I have just pushed one more change... fingers crossed

---

<div class="post-metadata">

**Author:** ![jsolderitsch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsolderitsch/32/26486_2.png) [@jsolderitsch](https://discourse.nodered.org/u/jsolderitsch)\
**Post date:** [7 November 2019 21:41 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/17 "2019-11-07T21:41:45Z")

</div>

Glad to report that the script succeeds the first time now.

I guess node was so old that the file `/etc/apt/sources.list.d/nodesource.list` did not exist initially but after a failed install, that location did resolve and so the selection of the 10.x version applied.

Thanks for being patient with this!

---

<div class="post-metadata">

**Author:** ![migabc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/migabc/32/31385_2.png) [@migabc](https://discourse.nodered.org/u/migabc)\
**Post date:** [1 November 2020 21:18 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/18 "2020-11-01T21:18:05Z")

</div>

Hi,

I have the exact same problem  
Can you please let me know how you fixed it above

pi@raspberrypi:~ $ curl -sL [https://deb.nodesource.com/setup\_12.x](https://deb.nodesource.com/setup_12.x) | sudo -E bash -  
. . .

pi@raspberrypi:~ $ sudo apt-get install -y nodejs  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:

The following packages have unmet dependencies:  
nodejs : Depends: libstdc++6 (\>= 5.2) but 4.9.2-10+deb8u2 is to be installed  
E: Unable to correct problems, you have held broken packages.  
pi@raspberrypi:~

---

<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 November 2020 21:44 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/19 "2020-11-01T21:44:28Z")

</div>

Debian Jessie is beyond end of life and not getting fixes so you may have to find an older installer for node.js. Or maybe try a tgz version and manually unpack it.  
Best option would be to upgrade Debian.

---

<div class="post-metadata">

**Author:** ![migabc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/migabc/32/31385_2.png) [@migabc](https://discourse.nodered.org/u/migabc)\
**Post date:** [1 November 2020 22:13 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/20 "2020-11-01T22:13:43Z")

</div>

But isn't this the exact same problem [jsolderitsch](https://discourse.nodered.org/u/jsolderitsch) had?  
How did you solve it?

> [@dceejay](#):
>
> I have just pushed one more change... fingers crossed

[Next page](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617.md?page=2)
