WebThingsIO / gateway-docker

Legacy docker image for WebThings Gateway - now moved to main gateway repo at https://github.com/WebThingsIO/gateway
Mozilla Public License 2.0
72 stars 25 forks source link

Fails to build on raspberry pi 3 #1

Closed rchl closed 6 years ago

rchl commented 6 years ago

I get an error when I try to build docker container on raspberry pi 3

E: Package 'nodejs' has no installation candidate

Full log:

% docker build -t gateway .
Sending build context to Docker daemon  83.97kB
Step 1/5 : FROM debian:stretch
stretch: Pulling from library/debian
25301cba2d4e: Pull complete
Digest: sha256:f7ca2200b10b859910a861d54229753b5aed94bb5c8f4321e10ec880b0909a3b
Status: Downloaded newer image for debian:stretch
 ---> f4eb764ab34f
Step 2/5 : EXPOSE 8080 4443
 ---> Running in 2712a64d4a72
Removing intermediate container 2712a64d4a72
 ---> 9d8c021d487e
Step 3/5 : RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list &&     apt update &&     apt install -y curl gnupg2 &&     curl -sL https://deb.nodesource.com/setup_8.x | bash - &&     apt update &&     apt dist-upgrade &&     apt install -y         build-essential         certbot         cron         git         libffi-dev         libnanomsg-dev         libnanomsg4         libopenzwave1.5         libopenzwave1.5-dev         nodejs         npm         python         python-pip         python-setuptools         python3         python3-pip         python3-setuptools         runit         sudo &&     npm install -g yarn &&     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&     pip2 install git+https://github.com/mozilla-iot/gateway-addon-python#egg=gateway_addon &&     pip3 install git+https://github.com/mozilla-iot/gateway-addon-python#egg=gateway_addon &&     pip2 install git+https://github.com/mycroftai/adapt#egg=adapt-parser &&     pip3 install git+https://github.com/mycroftai/adapt#egg=adapt-parser &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash &&     useradd -m -s /bin/bash -G sudo user &&     cd /home/user &&     mkdir mozilla-iot &&     cd mozilla-iot &&     git clone https://github.com/mozilla-iot/intent-parser &&     git clone https://github.com/mozilla-iot/gateway &&     cd gateway &&     yarn &&     chown -R user:user /home/user &&     touch /etc/inittab &&     echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&     echo "0 */12 * * * root /home/user/mozilla-iot/gateway/tools/renew-certificates.sh" > /etc/cron.d/renew-certs
 ---> Running in be4c4592072e

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

Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [63.0 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://security.debian.org stretch/updates/main armel Packages [421 kB]
Get:8 http://deb.debian.org/debian stretch-updates/main armel Packages [8368 B]
Get:9 http://ftp.debian.org/debian stretch-backports/main armel Packages [331 kB]
Get:10 http://deb.debian.org/debian stretch/main armel Packages [9263 kB]
Fetched 10.4 MB in 9s (1130 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

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

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates dirmngr gnupg gnupg-agent gnupg-l10n krb5-locales libassuan0
  libcurl3 libffi6 libgmp10 libgnutls30 libgssapi-krb5-2 libhogweed4 libidn11
  libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libksba8
  libldap-2.4-2 libldap-common libnettle6 libnghttp2-14 libnpth0 libp11-kit0
  libpsl5 libreadline7 librtmp1 libsasl2-2 libsasl2-modules
  libsasl2-modules-db libsqlite3-0 libssh2-1 libssl1.0.2 libssl1.1 libtasn1-6
  libunistring0 openssl pinentry-curses publicsuffix readline-common
Suggested packages:
  dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
  scdaemon gnutls-bin krb5-doc krb5-user libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
  libsasl2-modules-sql pinentry-doc readline-doc
The following NEW packages will be installed:
  ca-certificates curl dirmngr gnupg gnupg-agent gnupg-l10n gnupg2
  krb5-locales libassuan0 libcurl3 libffi6 libgmp10 libgnutls30
  libgssapi-krb5-2 libhogweed4 libidn11 libidn2-0 libk5crypto3 libkeyutils1
  libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 libldap-common libnettle6
  libnghttp2-14 libnpth0 libp11-kit0 libpsl5 libreadline7 librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh2-1 libssl1.0.2
  libssl1.1 libtasn1-6 libunistring0 openssl pinentry-curses publicsuffix
  readline-common
0 upgraded, 44 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.1 MB of archives.
After this operation, 28.1 MB of additional disk space will be used.
Get:1 http://security.debian.org stretch/updates/main armel libcurl3 armel 7.52.1-5+deb9u5 [261 kB]
Get:2 http://deb.debian.org/debian stretch/main armel libassuan0 armel 2.4.3-2 [36.4 kB]
Get:3 http://deb.debian.org/debian stretch/main armel pinentry-curses armel 1.0.0-2 [46.9 kB]
Get:4 http://deb.debian.org/debian stretch/main armel libnpth0 armel 1.3-1 [13.6 kB]
Get:5 http://deb.debian.org/debian stretch/main armel readline-common all 7.0-3 [70.4 kB]
Get:6 http://security.debian.org stretch/updates/main armel curl armel 7.52.1-5+deb9u5 [224 kB]
Get:7 http://deb.debian.org/debian stretch/main armel libreadline7 armel 7.0-3 [130 kB]
Get:8 http://deb.debian.org/debian stretch/main armel gnupg-agent armel 2.1.18-8~deb9u1 [509 kB]
Get:9 http://deb.debian.org/debian stretch/main armel libksba8 armel 1.3.5-2 [85.4 kB]
Get:10 http://deb.debian.org/debian stretch/main armel libsqlite3-0 armel 3.16.2-5+deb9u1 [495 kB]
Get:11 http://deb.debian.org/debian stretch/main armel gnupg armel 2.1.18-8~deb9u1 [1049 kB]
Get:12 http://deb.debian.org/debian stretch/main armel libssl1.0.2 armel 1.0.2l-2+deb9u2 [897 kB]
Get:13 http://deb.debian.org/debian stretch/main armel libssl1.1 armel 1.1.0f-3+deb9u1 [1109 kB]
Get:14 http://deb.debian.org/debian stretch/main armel krb5-locales all 1.15-1+deb9u1 [93.8 kB]
Get:15 http://deb.debian.org/debian stretch/main armel libgmp10 armel 2:6.1.2+dfsg-1 [190 kB]
Get:16 http://deb.debian.org/debian stretch/main armel libnettle6 armel 3.3-1+b2 [206 kB]
Get:17 http://deb.debian.org/debian stretch/main armel libhogweed4 armel 3.3-1+b2 [126 kB]
Get:18 http://deb.debian.org/debian stretch/main armel libidn11 armel 1.33-1 [112 kB]
Get:19 http://deb.debian.org/debian stretch/main armel libffi6 armel 3.2.1-6 [18.7 kB]
Get:20 http://deb.debian.org/debian stretch/main armel libp11-kit0 armel 0.23.3-2 [94.6 kB]
Get:21 http://deb.debian.org/debian stretch/main armel libtasn1-6 armel 4.10-1.1+deb9u1 [45.7 kB]
Get:22 http://deb.debian.org/debian stretch/main armel libgnutls30 armel 3.5.8-5+deb9u3 [822 kB]
Get:23 http://deb.debian.org/debian stretch/main armel libkeyutils1 armel 1.5.9-9 [11.8 kB]
Get:24 http://deb.debian.org/debian stretch/main armel libkrb5support0 armel 1.15-1+deb9u1 [58.1 kB]
Get:25 http://deb.debian.org/debian stretch/main armel libk5crypto3 armel 1.15-1+deb9u1 [115 kB]
Get:26 http://deb.debian.org/debian stretch/main armel libkrb5-3 armel 1.15-1+deb9u1 [262 kB]
Get:27 http://deb.debian.org/debian stretch/main armel libgssapi-krb5-2 armel 1.15-1+deb9u1 [131 kB]
Get:28 http://deb.debian.org/debian stretch/main armel libsasl2-modules-db armel 2.1.27~101-g0780600+dfsg-3 [67.0 kB]
Get:29 http://deb.debian.org/debian stretch/main armel libsasl2-2 armel 2.1.27~101-g0780600+dfsg-3 [97.9 kB]
Get:30 http://deb.debian.org/debian stretch/main armel libldap-common all 2.4.44+dfsg-5+deb9u1 [85.4 kB]
Get:31 http://deb.debian.org/debian stretch/main armel libldap-2.4-2 armel 2.4.44+dfsg-5+deb9u1 [197 kB]
Get:32 http://deb.debian.org/debian stretch/main armel openssl armel 1.1.0f-3+deb9u1 [701 kB]
Get:33 http://deb.debian.org/debian stretch/main armel ca-certificates all 20161130+nmu1 [196 kB]
Get:34 http://deb.debian.org/debian stretch/main armel libunistring0 armel 0.9.6+really0.9.3-0.1 [253 kB]
Get:35 http://deb.debian.org/debian stretch/main armel libidn2-0 armel 0.16-1+deb9u1 [59.3 kB]
Get:36 http://deb.debian.org/debian stretch/main armel libnghttp2-14 armel 1.18.1-1 [68.3 kB]
Get:37 http://deb.debian.org/debian stretch/main armel libpsl5 armel 0.17.0-3 [40.8 kB]
Get:38 http://deb.debian.org/debian stretch/main armel librtmp1 armel 2.4+20151223.gitfa8646d.1-1+b1 [55.1 kB]
Get:39 http://deb.debian.org/debian stretch/main armel libssh2-1 armel 1.7.0-1 [125 kB]
Get:40 http://deb.debian.org/debian stretch/main armel dirmngr armel 2.1.18-8~deb9u1 [557 kB]
Get:41 http://deb.debian.org/debian stretch/main armel gnupg2 all 2.1.18-8~deb9u1 [299 kB]
Get:42 http://deb.debian.org/debian stretch/main armel libsasl2-modules armel 2.1.27~101-g0780600+dfsg-3 [95.7 kB]
Get:43 http://deb.debian.org/debian stretch/main armel gnupg-l10n all 2.1.18-8~deb9u1 [892 kB]
Get:44 http://deb.debian.org/debian stretch/main armel publicsuffix all 20180218.2049-0+deb9u1 [103 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 11.1 MB in 1s (5763 kB/s)
Selecting previously unselected package libassuan0:armel.
(Reading database ... 6480 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.4.3-2_armel.deb ...
Unpacking libassuan0:armel (2.4.3-2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../01-pinentry-curses_1.0.0-2_armel.deb ...
Unpacking pinentry-curses (1.0.0-2) ...
Selecting previously unselected package libnpth0:armel.
Preparing to unpack .../02-libnpth0_1.3-1_armel.deb ...
Unpacking libnpth0:armel (1.3-1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../03-readline-common_7.0-3_all.deb ...
Unpacking readline-common (7.0-3) ...
Selecting previously unselected package libreadline7:armel.
Preparing to unpack .../04-libreadline7_7.0-3_armel.deb ...
Unpacking libreadline7:armel (7.0-3) ...
Selecting previously unselected package gnupg-agent.
Preparing to unpack .../05-gnupg-agent_2.1.18-8~deb9u1_armel.deb ...
Unpacking gnupg-agent (2.1.18-8~deb9u1) ...
Selecting previously unselected package libksba8:armel.
Preparing to unpack .../06-libksba8_1.3.5-2_armel.deb ...
Unpacking libksba8:armel (1.3.5-2) ...
Selecting previously unselected package libsqlite3-0:armel.
Preparing to unpack .../07-libsqlite3-0_3.16.2-5+deb9u1_armel.deb ...
Unpacking libsqlite3-0:armel (3.16.2-5+deb9u1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../08-gnupg_2.1.18-8~deb9u1_armel.deb ...
Unpacking gnupg (2.1.18-8~deb9u1) ...
Selecting previously unselected package libssl1.0.2:armel.
Preparing to unpack .../09-libssl1.0.2_1.0.2l-2+deb9u2_armel.deb ...
Unpacking libssl1.0.2:armel (1.0.2l-2+deb9u2) ...
Selecting previously unselected package libssl1.1:armel.
Preparing to unpack .../10-libssl1.1_1.1.0f-3+deb9u1_armel.deb ...
Unpacking libssl1.1:armel (1.1.0f-3+deb9u1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../11-krb5-locales_1.15-1+deb9u1_all.deb ...
Unpacking krb5-locales (1.15-1+deb9u1) ...
Selecting previously unselected package libgmp10:armel.
Preparing to unpack .../12-libgmp10_2%3a6.1.2+dfsg-1_armel.deb ...
Unpacking libgmp10:armel (2:6.1.2+dfsg-1) ...
Selecting previously unselected package libnettle6:armel.
Preparing to unpack .../13-libnettle6_3.3-1+b2_armel.deb ...
Unpacking libnettle6:armel (3.3-1+b2) ...
Selecting previously unselected package libhogweed4:armel.
Preparing to unpack .../14-libhogweed4_3.3-1+b2_armel.deb ...
Unpacking libhogweed4:armel (3.3-1+b2) ...
Selecting previously unselected package libidn11:armel.
Preparing to unpack .../15-libidn11_1.33-1_armel.deb ...
Unpacking libidn11:armel (1.33-1) ...
Selecting previously unselected package libffi6:armel.
Preparing to unpack .../16-libffi6_3.2.1-6_armel.deb ...
Unpacking libffi6:armel (3.2.1-6) ...
Selecting previously unselected package libp11-kit0:armel.
Preparing to unpack .../17-libp11-kit0_0.23.3-2_armel.deb ...
Unpacking libp11-kit0:armel (0.23.3-2) ...
Selecting previously unselected package libtasn1-6:armel.
Preparing to unpack .../18-libtasn1-6_4.10-1.1+deb9u1_armel.deb ...
Unpacking libtasn1-6:armel (4.10-1.1+deb9u1) ...
Selecting previously unselected package libgnutls30:armel.
Preparing to unpack .../19-libgnutls30_3.5.8-5+deb9u3_armel.deb ...
Unpacking libgnutls30:armel (3.5.8-5+deb9u3) ...
Selecting previously unselected package libkeyutils1:armel.
Preparing to unpack .../20-libkeyutils1_1.5.9-9_armel.deb ...
Unpacking libkeyutils1:armel (1.5.9-9) ...
Selecting previously unselected package libkrb5support0:armel.
Preparing to unpack .../21-libkrb5support0_1.15-1+deb9u1_armel.deb ...
Unpacking libkrb5support0:armel (1.15-1+deb9u1) ...
Selecting previously unselected package libk5crypto3:armel.
Preparing to unpack .../22-libk5crypto3_1.15-1+deb9u1_armel.deb ...
Unpacking libk5crypto3:armel (1.15-1+deb9u1) ...
Selecting previously unselected package libkrb5-3:armel.
Preparing to unpack .../23-libkrb5-3_1.15-1+deb9u1_armel.deb ...
Unpacking libkrb5-3:armel (1.15-1+deb9u1) ...
Selecting previously unselected package libgssapi-krb5-2:armel.
Preparing to unpack .../24-libgssapi-krb5-2_1.15-1+deb9u1_armel.deb ...
Unpacking libgssapi-krb5-2:armel (1.15-1+deb9u1) ...
Selecting previously unselected package libsasl2-modules-db:armel.
Preparing to unpack .../25-libsasl2-modules-db_2.1.27~101-g0780600+dfsg-3_armel.deb ...
Unpacking libsasl2-modules-db:armel (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package libsasl2-2:armel.
Preparing to unpack .../26-libsasl2-2_2.1.27~101-g0780600+dfsg-3_armel.deb ...
Unpacking libsasl2-2:armel (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../27-libldap-common_2.4.44+dfsg-5+deb9u1_all.deb ...
Unpacking libldap-common (2.4.44+dfsg-5+deb9u1) ...
Selecting previously unselected package libldap-2.4-2:armel.
Preparing to unpack .../28-libldap-2.4-2_2.4.44+dfsg-5+deb9u1_armel.deb ...
Unpacking libldap-2.4-2:armel (2.4.44+dfsg-5+deb9u1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../29-openssl_1.1.0f-3+deb9u1_armel.deb ...
Unpacking openssl (1.1.0f-3+deb9u1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../30-ca-certificates_20161130+nmu1_all.deb ...
Unpacking ca-certificates (20161130+nmu1) ...
Selecting previously unselected package libunistring0:armel.
Preparing to unpack .../31-libunistring0_0.9.6+really0.9.3-0.1_armel.deb ...
Unpacking libunistring0:armel (0.9.6+really0.9.3-0.1) ...
Selecting previously unselected package libidn2-0:armel.
Preparing to unpack .../32-libidn2-0_0.16-1+deb9u1_armel.deb ...
Unpacking libidn2-0:armel (0.16-1+deb9u1) ...
Selecting previously unselected package libnghttp2-14:armel.
Preparing to unpack .../33-libnghttp2-14_1.18.1-1_armel.deb ...
Unpacking libnghttp2-14:armel (1.18.1-1) ...
Selecting previously unselected package libpsl5:armel.
Preparing to unpack .../34-libpsl5_0.17.0-3_armel.deb ...
Unpacking libpsl5:armel (0.17.0-3) ...
Selecting previously unselected package librtmp1:armel.
Preparing to unpack .../35-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_armel.deb ...
Unpacking librtmp1:armel (2.4+20151223.gitfa8646d.1-1+b1) ...
Selecting previously unselected package libssh2-1:armel.
Preparing to unpack .../36-libssh2-1_1.7.0-1_armel.deb ...
Unpacking libssh2-1:armel (1.7.0-1) ...
Selecting previously unselected package libcurl3:armel.
Preparing to unpack .../37-libcurl3_7.52.1-5+deb9u5_armel.deb ...
Unpacking libcurl3:armel (7.52.1-5+deb9u5) ...
Selecting previously unselected package curl.
Preparing to unpack .../38-curl_7.52.1-5+deb9u5_armel.deb ...
Unpacking curl (7.52.1-5+deb9u5) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../39-dirmngr_2.1.18-8~deb9u1_armel.deb ...
Unpacking dirmngr (2.1.18-8~deb9u1) ...
Selecting previously unselected package gnupg2.
Preparing to unpack .../40-gnupg2_2.1.18-8~deb9u1_all.deb ...
Unpacking gnupg2 (2.1.18-8~deb9u1) ...
Selecting previously unselected package libsasl2-modules:armel.
Preparing to unpack .../41-libsasl2-modules_2.1.27~101-g0780600+dfsg-3_armel.deb ...
Unpacking libsasl2-modules:armel (2.1.27~101-g0780600+dfsg-3) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../42-gnupg-l10n_2.1.18-8~deb9u1_all.deb ...
Unpacking gnupg-l10n (2.1.18-8~deb9u1) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../43-publicsuffix_20180218.2049-0+deb9u1_all.deb ...
Unpacking publicsuffix (20180218.2049-0+deb9u1) ...
Setting up libnpth0:armel (1.3-1) ...
Setting up readline-common (7.0-3) ...
Setting up libnettle6:armel (3.3-1+b2) ...
Setting up libnghttp2-14:armel (1.18.1-1) ...
Setting up libldap-common (2.4.44+dfsg-5+deb9u1) ...
Setting up libreadline7:armel (7.0-3) ...
Setting up libsasl2-modules-db:armel (2.1.27~101-g0780600+dfsg-3) ...
Setting up libsasl2-2:armel (2.1.27~101-g0780600+dfsg-3) ...
Setting up libksba8:armel (1.3.5-2) ...
Setting up libtasn1-6:armel (4.10-1.1+deb9u1) ...
Setting up gnupg-l10n (2.1.18-8~deb9u1) ...
Setting up libssl1.0.2:armel (1.0.2l-2+deb9u2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabi/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabi/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabi/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabi/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libgmp10:armel (2:6.1.2+dfsg-1) ...
Setting up libssh2-1:armel (1.7.0-1) ...
Setting up krb5-locales (1.15-1+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up publicsuffix (20180218.2049-0+deb9u1) ...
Setting up libunistring0:armel (0.9.6+really0.9.3-0.1) ...
Setting up libssl1.1:armel (1.1.0f-3+deb9u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabi/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabi/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabi/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabi/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up openssl (1.1.0f-3+deb9u1) ...
Setting up libsqlite3-0:armel (3.16.2-5+deb9u1) ...
Setting up libffi6:armel (3.2.1-6) ...
Setting up libkeyutils1:armel (1.5.9-9) ...
Setting up libsasl2-modules:armel (2.1.27~101-g0780600+dfsg-3) ...
Setting up ca-certificates (20161130+nmu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabi/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabi/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabi/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabi/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
166 added, 0 removed; done.
Setting up libassuan0:armel (2.4.3-2) ...
Setting up libidn11:armel (1.33-1) ...
Setting up libidn2-0:armel (0.16-1+deb9u1) ...
Setting up libpsl5:armel (0.17.0-3) ...
Setting up libkrb5support0:armel (1.15-1+deb9u1) ...
Setting up libhogweed4:armel (3.3-1+b2) ...
Setting up libp11-kit0:armel (0.23.3-2) ...
Setting up pinentry-curses (1.0.0-2) ...
Setting up gnupg-agent (2.1.18-8~deb9u1) ...
Setting up libk5crypto3:armel (1.15-1+deb9u1) ...
Setting up gnupg (2.1.18-8~deb9u1) ...
Setting up libgnutls30:armel (3.5.8-5+deb9u3) ...
Setting up librtmp1:armel (2.4+20151223.gitfa8646d.1-1+b1) ...
Setting up gnupg2 (2.1.18-8~deb9u1) ...
Setting up libldap-2.4-2:armel (2.4.44+dfsg-5+deb9u1) ...
Setting up libkrb5-3:armel (1.15-1+deb9u1) ...
Setting up dirmngr (2.1.18-8~deb9u1) ...
Setting up libgssapi-krb5-2:armel (1.15-1+deb9u1) ...
Setting up libcurl3:armel (7.52.1-5+deb9u5) ...
Setting up curl (7.52.1-5+deb9u5) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for ca-certificates (20161130+nmu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

## Installing the NodeSource Node.js v8.x LTS Carbon repo...

## Populating apt-get cache...

+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Reading package lists...

## Installing packages required for setup: apt-transport-https lsb-release...

+ apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1

## Confirming "stretch" is supported...

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

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

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK

## Creating apt sources list file for the NodeSource Node.js v8.x LTS Carbon repo...

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

## Running `apt-get update` for you...

+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Get:6 https://deb.nodesource.com/node_8.x stretch InRelease [4647 B]
Get:8 https://deb.nodesource.com/node_8.x stretch/main Sources [762 B]
Fetched 5409 B in 2s (1970 B/s)
Reading package lists...

## Run `apt-get install nodejs` (as root) to install Node.js v8.x LTS Carbon and npm

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

Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Hit:6 https://deb.nodesource.com/node_8.x stretch InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

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

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

Reading package lists...
Building dependency tree...
Reading state information...
Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nodejs' has no installation candidate
E: Unable to locate package npm
The command '/bin/sh -c echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list &&     apt update &&     apt install -y curl gnupg2 &&     curl -sL https://deb.nodesource.com/setup_8.x | bash - &&     apt update &&     apt dist-upgrade &&     apt install -y         build-essential         certbot         cron         git         libffi-dev         libnanomsg-dev         libnanomsg4         libopenzwave1.5         libopenzwave1.5-dev         nodejs         npm         python         python-pip         python-setuptools         python3         python3-pip         python3-setuptools         runit         sudo &&     npm install -g yarn &&     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&     pip2 install git+https://github.com/mozilla-iot/gateway-addon-python#egg=gateway_addon &&     pip3 install git+https://github.com/mozilla-iot/gateway-addon-python#egg=gateway_addon &&     pip2 install git+https://github.com/mycroftai/adapt#egg=adapt-parser &&     pip3 install git+https://github.com/mycroftai/adapt#egg=adapt-parser &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash &&     useradd -m -s /bin/bash -G sudo user &&     cd /home/user &&     mkdir mozilla-iot &&     cd mozilla-iot &&     git clone https://github.com/mozilla-iot/intent-parser &&     git clone https://github.com/mozilla-iot/gateway &&     cd gateway &&     yarn &&     chown -R user:user /home/user &&     touch /etc/inittab &&     echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&     echo "0 */12 * * * root /home/user/mozilla-iot/gateway/tools/renew-certificates.sh" > /etc/cron.d/renew-certs' returned a non-zero code: 100