# Install Failed on Ubuntu Mate on Raspberry Pi 3B

**URL:** <https://discourse.nodered.org/t/install-failed-on-ubuntu-mate-on-raspberry-pi-3b/18938>\
**Category:** General\
**Created:** [9 December 2019 05:03 UTC](https://discourse.nodered.org/t/install-failed-on-ubuntu-mate-on-raspberry-pi-3b/18938 "2019-12-09T05:03:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkanjar](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tkanjar](https://discourse.nodered.org/u/tkanjar)\
**Post date:** [9 December 2019 05:03 UTC](https://discourse.nodered.org/t/install-failed-on-ubuntu-mate-on-raspberry-pi-3b/18938/1 "2019-12-09T05:03:40Z")

</div>

I tryed to install Node-RED using script for Debian:

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

```

but install failed.

```auto
Update Node.js LTS ✘ Failed to install Node.js - Exit.

```

OS: Ubuntu MATE 18.04 LTS  
Hardware: Raspberry Pi 3 Model B

I found following message in /var/log/nodered-install.log:

```auto
gpg: can't connect to the agent: IPC connect call failed

```

I tryed to install node.js 12.x before installing Node-RED.  
refs: [https://github.com/nodesource/distributions/blob/master/README.md](https://github.com/nodesource/distributions/blob/master/README.md)

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

```

After installing node.js 12.x, I retried to install Node-RED using script for Debian:

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

```

Install succeeded.

I think this is strange.  
Is there something to wrong in the install script for Debian?

---

<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:** [9 December 2019 10:30 UTC](https://discourse.nodered.org/t/install-failed-on-ubuntu-mate-on-raspberry-pi-3b/18938/2 "2019-12-09T10:30:24Z")

</div>

the failure is down to the gpg error - presumably then not allowing it to install nodejs - This is not a common error (if you google it) - and seems to be to do with the underlying OS install - so not something we can really anticipate or handle.  
Installing manually as you did is the easy and best way round it I suspect.

---

<div class="post-metadata">

**Author:** ![tkanjar](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tkanjar](https://discourse.nodered.org/u/tkanjar)\
**Post date:** [8 January 2020 00:22 UTC](https://discourse.nodered.org/t/install-failed-on-ubuntu-mate-on-raspberry-pi-3b/18938/3 "2020-01-08T00:22:00Z")

</div>

I did not do anything special while installing OS...  
For now, I use this workaround.  
Thank you.
