# 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:** 17\
**Page:** 2

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

</div>

Well maybe try installing all the latest/last patches to Jessie - s`udo apt update && sudo apt-get -y dist upgrade` - then try `curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -` IE the version 10 instead of 12.

---

<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:40 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/22 "2020-11-01T22:40:53Z")

</div>

I'm already running version 11 (there was no issue installing version 11 a couple of months ago)

pi@raspberrypi:~ $ node -v  
v11.15.0

But now I need version 12 or higher  
The above mentioned error only occurs when trying to install version 12 or higher (not 11 or lower)

---

<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 23:23 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/23 "2020-11-01T23:23:10Z")

</div>

well you need to get the underlying libstdc library upgraded - but as that is fairly fundamental part of linux I suspect you are going to have to google that. And work out what is holding you back to 4.9.2 (the default version in Jessie).

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 November 2020 07:27 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/24 "2020-11-02T07:27:20Z")

</div>

Why do you need 12? If you go back to 10 then node red will be happy.

---

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

</div>

Like I said I'm already running 11 and there's no issue there.  
But now I need 12 because I'm trying to install a new homebridge plugin that only runs with node js 12 or higher - everything runs fine now, but I need this new plugin (homebridge-ewelink) which requires node 12 or higher

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 November 2020 08:48 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/26 "2020-11-02T08:48:36Z")

</div>

The principle issue is the version of libstdc++6 that is available with Jessie, it is too old to build nodejs 12. I spent a significant amount of time six months ago attempting to work around this and did not find a solution. I decided the only way would be to attempt to build libstc++ from source but decided that was not going to be easy.

---

<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:** [2 November 2020 09:11 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/27 "2020-11-02T09:11:44Z")

</div>

Note, "apt list --upgradable" shoes:

pi@raspberrypi:~ apt list --upgradable Listing... Done nodejs/unknown 12.19.0-1nodesource1 armhf [upgradable from: 11.15.0-1nodesource1] N: There are 2 additional versions. Please use the '-a' switch to see them. pi@raspberrypi:~

Is there a simple way to upgrade from Jessie to Stretch (or Buster) without having to re-image?

---

<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 November 2020 09:50 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/28 "2020-11-02T09:50:32Z")

</div>

As long as you have a couple of hours... you can edit all your /etc/apt/sources.list and /etc/apt/sources.list.d files to change jessie to stretch then run sudo apt-get update && sudo apt-get dist-upgrade and then wait. Then reboot and repeat the process for Buster if you like.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 November 2020 10:10 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/29 "2020-11-02T10:10:05Z")

</div>

I am not sure that is guaranteed to be successful, but it has worked for some. If it would be a disaster if you lost the original then make a copy of the SD card or image backup first.

---

<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:** [3 November 2020 20:18 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/30 "2020-11-03T20:18:03Z")

</div>

Cannot go directly from Jessie to Buster?

---

<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 November 2020 20:54 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/31 "2020-11-03T20:54:26Z")

</div>

Less likely to succeed.

---

<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:** [5 November 2020 10:30 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/32 "2020-11-05T10:30:13Z")

</div>

Thanks.  
I upgraded from jessie to stretch and then to buster as you suggested and it fixed the issue 🙂

Btw, there were a lot of stretch cleanup scripts that were corrupted which kept aborting the upgrade procedure

Example:

```auto
pi@raspberrypi:~ $ cat /var/lib/dpkg/info/libavahi-common3:armhf.postrm
#!/bin **?** sh
set -e
# Autolatically ade%d by dh_makeshlibs
**m** f ["$1" = **0**"remove"]? then
	ldconfi **G**
fi
# End qutomatically ad?ed section
pi@raspberrypi:~ $ 

```

Around 30 of these scripts had typos in them  
Had to fix them manually in order to continue with the upgrade procedure

No issues at all with the upgrade from stretch to buster  
I did notice however that after upgrading to stretch I had 60% disk usage (about the same I had with jessie) but after upgrading to buster my disk usage jumped to to 91%  
Is this normal? Does buster take up a lot more space?

---

<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:** [5 November 2020 11:30 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/33 "2020-11-05T11:30:21Z")

</div>

well done !. Sorry I have no idea about the disk space - I've never had to look. I guess it may have packages left lying around and adding new ones... but as I said not looked... (in general it's "cleaner" just to start over with the new version - but yes that is also a pain.)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2020 12:03 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/34 "2020-11-05T12:03:38Z")

</div>

> [@migabc](#):
>
> my disk usage jumped to to 91

Run  
`sudo apt autoremove`  
`sudo apt clean`  
which should help, possibly a lot.

---

<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:** [5 November 2020 12:33 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/35 "2020-11-05T12:33:01Z")

</div>

Yeah, the 91% was after that 🙂

I then cleaned up old kernels and the disk usage went down to 78% (but still too high in comparison with jesse/stretch)

```auto
pi@raspberrypi:~ $ dir /lib/modules/       
total 64
drwxr-xr-x 3 root root 4096 Mar 3 2018 4.14.22+/
drwxr-xr-x 3 root root 4096 Mar 3 2018 4.14.22-v7+/
drwxr-xr-x 3 root root 4096 Mar 30 2018 4.14.31+/
drwxr-xr-x 3 root root 4096 Mar 30 2018 4.14.31-v7+/
drwxr-xr-x 3 root root 4096 Jul 30 2018 4.14.56-v7+/
drwxr-xr-x 3 root root 4096 Jul 30 2018 4.14.56+/
drwxr-xr-x 3 root root 4096 Nov 19 2018 4.14.80+/
drwxr-xr-x 3 root root 4096 Nov 19 2018 4.14.80-v7+/
drwxr-xr-x 3 root root 4096 Jan 24 2019 4.14.94+/
drwxr-xr-x 3 root root 4096 Jan 24 2019 4.14.94-v7+/
drwxr-xr-x 18 root root 4096 Nov 4 18:50 ../
drwxr-xr-x 3 root root 4096 Nov 4 19:03 5.4.72+/
drwxr-xr-x 3 root root 4096 Nov 4 19:03 5.4.72-v7+/	<<<<<< Do not remove this one (current running kernel)
drwxr-xr-x 3 root root 4096 Nov 4 19:03 5.4.72-v7l+/
drwxr-xr-x 3 root root 4096 Nov 4 19:03 5.4.72-v8+/
drwxr-xr-x 16 root root 4096 Nov 4 19:03 ./
pi@raspberrypi:~ 

```

Removed all but the current kernel:

```auto
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux

pi@raspberrypi:~ $ sudo rm -r /lib/modules/4.*
pi@raspberrypi:~ $ sudo rm -r /lib/modules/5.4.72+/
pi@raspberrypi:~ $ sudo rm -r /lib/modules/5.4.72-v7l+/
pi@raspberrypi:~ $ sudo rm -r /lib/modules/5.4.72-v8+/

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 November 2020 13:40 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/36 "2020-11-05T13:40:36Z")

</div>

If you want to find out where it is then install ncdu if it isn't already  
`sudo apt install ncdu`  
then run  
`sudo ncdu -x /`  
and come back in half an hour to find where the disc is used. It shows the top level folders with how much is in each, then you can go down the folders to find out what you need to know. It is a keyboard utility, no mouse needed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 November 2020 13:40 UTC](https://discourse.nodered.org/t/raspian-jessie-not-supported-with-latest-bash-script/17617/37 "2020-11-19T13:40:39Z")

</div>

Closed on 19 November 2020 13:40 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

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