I followed this note on the failed install
sudo chown -R $USER:$(id -gn $USER) /home/pi/.config
Then ran the Node-RED install update package again.
It seemed to run without any errors.
I then tried to install dashboard using pallet manager but failed again.
nodered-install.log
Started : Sat Apr 13 11:12:31 AEST 2019
Running for user pi at /home/pi
Failed to stop nodered.service: Unit nodered.service not loaded.
Found global nodes: :
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nodered
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodejs-legacy' is not installed, so not removed
Package 'npm' is not installed, so not removed
Package 'nodejs' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up hostapd (2:2.6-15ubuntu2.2) ...
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript hostapd, action "restart" failed.
e[0;1;31mโe[0m hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled)
Active: e[0;1;31mfailede[0m (Result: exit-code) since Sat 2019-04-13 11:12:40 AEST; 20ms ago
Process: 2335 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} e[0;1;31m(code=exited, status=1/FAILURE)e[0m
Apr 13 11:12:40 NanoPi-M4 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
Apr 13 11:12:40 NanoPi-M4 hostapd[2335]: Configuration file: /etc/hostapd/hostapd.conf
Apr 13 11:12:40 NanoPi-M4 hostapd[2335]: Could not open configuration file '/etc/hostapd/hostapd.conf' for reading.
Apr 13 11:12:40 NanoPi-M4 hostapd[2335]: Failed to set up interface with /etc/hostapd/hostapd.conf
Apr 13 11:12:40 NanoPi-M4 hostapd[2335]: Failed to initialize interface
Apr 13 11:12:40 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Control process exited, code=exited status=1e[0m
Apr 13 11:12:40 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Failed with result 'exit-code'.e[0m
Apr 13 11:12:40 NanoPi-M4 systemd[1]: e[0;1;31me[0;1;39me[0;1;31mFailed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.e[0m
dpkg: error processing package hostapd (--configure):
installed hostapd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
hostapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: warning: ignoring request to remove nodejs which isn't installed
dpkg: warning: ignoring request to remove node which isn't installed
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up hostapd (2:2.6-15ubuntu2.2) ...
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript hostapd, action "restart" failed.
e[0;1;31mโe[0m hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled)
Active: e[0;1;31mfailede[0m (Result: exit-code) since Sat 2019-04-13 11:12:47 AEST; 18ms ago
Process: 2446 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} e[0;1;31m(code=exited, status=1/FAILURE)e[0m
Apr 13 11:12:47 NanoPi-M4 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
Apr 13 11:12:47 NanoPi-M4 hostapd[2446]: Configuration file: /etc/hostapd/hostapd.conf
Apr 13 11:12:47 NanoPi-M4 hostapd[2446]: Could not open configuration file '/etc/hostapd/hostapd.conf' for reading.
Apr 13 11:12:47 NanoPi-M4 hostapd[2446]: Failed to set up interface with /etc/hostapd/hostapd.conf
Apr 13 11:12:47 NanoPi-M4 hostapd[2446]: Failed to initialize interface
Apr 13 11:12:47 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Control process exited, code=exited status=1e[0m
Apr 13 11:12:47 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Failed with result 'exit-code'.e[0m
Apr 13 11:12:47 NanoPi-M4 systemd[1]: e[0;1;31me[0;1;39me[0;1;31mFailed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.e[0m
dpkg: error processing package hostapd (--configure):
installed hostapd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
hostapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.58.0-2ubuntu3.6).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up hostapd (2:2.6-15ubuntu2.2) ...
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript hostapd, action "restart" failed.
e[0;1;31mโe[0m hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled)
Active: e[0;1;31mfailede[0m (Result: exit-code) since Sat 2019-04-13 11:12:53 AEST; 18ms ago
Process: 2533 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} e[0;1;31m(code=exited, status=1/FAILURE)e[0m
Apr 13 11:12:53 NanoPi-M4 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
Apr 13 11:12:53 NanoPi-M4 hostapd[2533]: Configuration file: /etc/hostapd/hostapd.conf
Apr 13 11:12:53 NanoPi-M4 hostapd[2533]: Could not open configuration file '/etc/hostapd/hostapd.conf' for reading.
Apr 13 11:12:53 NanoPi-M4 hostapd[2533]: Failed to set up interface with /etc/hostapd/hostapd.conf
Apr 13 11:12:53 NanoPi-M4 hostapd[2533]: Failed to initialize interface
Apr 13 11:12:53 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Control process exited, code=exited status=1e[0m
Apr 13 11:12:53 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Failed with result 'exit-code'.e[0m
Apr 13 11:12:53 NanoPi-M4 systemd[1]: e[0;1;31me[0;1;39me[0;1;31mFailed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.e[0m
dpkg: error processing package hostapd (--configure):
installed hostapd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
hostapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installing the NodeSource Node.js 10.x repo...
Populating apt-get cache...
Confirming "bionic" is supported...
Adding the NodeSource signing key to your keyring...
Creating apt sources list file for the NodeSource Node.js 10.x repo...
Running apt-get update
for you...
Run sudo apt-get install -y nodejs
to install Node.js 10.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
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 14.5 MB of archives.
After this operation, 72.4 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_10.x bionic/main arm64 nodejs arm64 10.15.3-1nodesource1 [14.5 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 14.5 MB in 2s (6,325 kB/s)
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 ... 121667 files and directories currently installed.)
Preparing to unpack .../nodejs_10.15.3-1nodesource1_arm64.deb ...
Unpacking nodejs (10.15.3-1nodesource1) ...
Setting up nodejs (10.15.3-1nodesource1) ...
Setting up hostapd (2:2.6-15ubuntu2.2) ...
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript hostapd, action "restart" failed.
e[0;1;31mโe[0m hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled)
Active: e[0;1;31mfailede[0m (Result: exit-code) since Sat 2019-04-13 11:13:26 AEST; 22ms ago
Process: 3505 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} e[0;1;31m(code=exited, status=1/FAILURE)e[0m
Apr 13 11:13:26 NanoPi-M4 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
Apr 13 11:13:26 NanoPi-M4 hostapd[3505]: Configuration file: /etc/hostapd/hostapd.conf
Apr 13 11:13:26 NanoPi-M4 hostapd[3505]: Could not open configuration file '/etc/hostapd/hostapd.conf' for reading.
Apr 13 11:13:26 NanoPi-M4 hostapd[3505]: Failed to set up interface with /etc/hostapd/hostapd.conf
Apr 13 11:13:26 NanoPi-M4 hostapd[3505]: Failed to initialize interface
Apr 13 11:13:26 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Control process exited, code=exited status=1e[0m
Apr 13 11:13:26 NanoPi-M4 systemd[1]: e[0;1;39me[0;1;31me[0;1;39mhostapd.service: Failed with result 'exit-code'.e[0m
Apr 13 11:13:26 NanoPi-M4 systemd[1]: e[0;1;31me[0;1;39me[0;1;31mFailed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.e[0m
dpkg: error processing package hostapd (--configure):
installed hostapd package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
hostapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- npm@6.9.0
added 54 packages from 9 contributors, removed 15 packages and updated 47 packages in 18.81s
/usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js
/usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi
bcrypt@3.0.5 install /usr/lib/node_modules/node-red/node_modules/bcrypt
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.5/bcrypt_lib-v3.0.5-node-v64-linux-arm64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.5 and node@10.15.3 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/usr/lib/node_modules/node-red/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
COPY /usr/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/bcrypt_lib.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/usr/lib/node_modules/node-red/node_modules/bcrypt/build'
- node-red@0.20.5
added 353 packages from 347 contributors in 53.774s
0.20.5
Finished : Sat Apr 13 11:12:31 AEST 2019
Started : Sat Apr 13 11:30:32 AEST 2019
Running for user pi at /home/pi
Found global nodes: :
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nodered
/usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js
/usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi
bcrypt@3.0.5 install /usr/lib/node_modules/node-red/node_modules/bcrypt
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.5/bcrypt_lib-v3.0.5-node-v64-linux-arm64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.5 and node@10.15.3 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/usr/lib/node_modules/node-red/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
COPY /usr/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/bcrypt_lib.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/usr/lib/node_modules/node-red/node_modules/bcrypt/build'
- node-red@0.20.5
added 353 packages from 347 contributors in 39.964s
0.20.5
Finished : Sat Apr 13 11:30:32 AEST 2019