RPI Zero hangs on install.sh after throwing warnings and errors

Trying to run install.sh on a RPI Zero running Raspbian Stretch. It throws errors and warnings left and right, then hangs in NPM. For example:

WARNING: The following packages cannot be authenticated!
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

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:
matrix-creator-init : Depends: xc3sprog but it is not going to be installed
matrix-creator-malos : Depends: libzmq3 (>= 3.2.3+dfsg) but it is not installable
Depends: libmatrix-malos-dev but it is not going to be installed
Depends: libmatrix-creator-hal-dev but it is not going to be installed
matrix-creator-openocd : Depends: libjim0.75 (>= 0.73) but it is not installable
E: Unable to correct problems, you have held broken packages.

And then npm poops all over everything:

fatal: destination path ‘matrix-os’ already exists and is not an empty directory.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated MD5@1.2.2: deprecated, use lowercase ‘md5@2.x’ from now on
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
[ …] - extract:lodash: verb gentlyRm don’t care about contents; nuking /home/pi/matrix-os/node_modules/.staging/lod

The final step never finishes. I have a new Matrix Voice that I can’t install the software for. Help?

Hi @RussNelson,

Can you specify which install.sh are you using or what guide are you following?. The hiperlink is not working.

I don’t know why this software thinks index.sh should be a hyperlink.
It’s curl https://raw.githubusercontent.com/matrix-io/matrix-creator-quickstart/master/install.sh from the installation instructions.

Eventually, it ran to completion, but when I try to run node index.js from ~/matrix-os, I’m getting an illegal instruction crash. It’s inside “/home/pi/matrix-os/node_modules/grpc/src/node/extension_binary/node-v48-linux-arm-glibc/grpc_node.node”, for what that’s worth. I don’t know if that’s related to the above errors.

Regarding the error related to xc3sprog try installing it using :
sudo apt-get install -y --allow-unauthenticated xc3sprog

Then run the install.sh again:

curl https://raw.githubusercontent.com/matrix-io/matrix-creator-quickstart/master/install.sh | sh

Please, let me know how it goes

I’m not certain that (xc3sprog) install was a good idea. Not certain at all:

pi@raspberrypi:~/matrix-os $ sudo apt-get install -y --allow-unauthenticated xc3sprog
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libgflags-dev libgflags2v5 libmatrixio-creator-hal libmatrixio-malos libmatrixio-protos matrixio-openocd matrixio-protobuf
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
matrixio-creator-init matrixio-malos matrixio-xc3sprog
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 125 kB of archives.
After this operation, 2,427 kB disk space will be freed.
WARNING: The following packages cannot be authenticated!
Authentication warning overridden.
Get:1 http://packages.matrix.one/matrix-creator ./ xc3sprog 1.1 [125 kB]
Fetched 125 kB in 0s (203 kB/s)
(Reading database … 126257 files and directories currently installed.)
Removing matrixio-malos (0.2.2) …
Removing MALOS service
Removed /etc/systemd/system/multi-user.target.wants/matrixio-malos.service.
Removing matrixio-creator-init (0.4.0) …
Disable firmware loading at startup
Removed /etc/systemd/system/multi-user.target.wants/matrixio-devices-firmware.service.
Removing matrixio-xc3sprog (1.1.1) …
Selecting previously unselected package xc3sprog.
(Reading database … 126197 files and directories currently installed.)
Preparing to unpack …/xc3sprog_1.1_armhf.deb …
Unpacking xc3sprog (1.1) …
Setting up xc3sprog (1.1) …

What seems strangest to me is that I’m following step by step instructions and they don’t work.

You would think this very clearly written documentation would work. It doesn’t. https://matrix-io.github.io/matrix-documentation/matrix-os/getting-started/installation/

For example, the video says to run matrix set env rc but that step is missing from the written documentation. WTF?

Or the video says to put the device credentials into .bash_profile while the documentation says to put them into .envrc

I got it up and running on my raspberry pi3 by following the instructions (I did not watch the video). I’m however running Jessie instead of Stretch.

1 Like

The link to Raspbian points to Stretch. Is it possible that the instructions were written for Jessie, then Raspbian updated to Stretch and that broke the instructions? But you’d think somebody would have reported that and Matrix would have updated the instructions. I’m 99% frustrated because the product looks great, and the instructions are detailed … but wrong.

Retrying with Jessie, which you can download from here: http://downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/

Have experienced none of the problems listed above.

Hello @RussNelson, we tested MATRIX Voice and MATRIX Creator with an RPI Zero, could you run the following steps either Stretch or Jessie:

You need to remove http://packages.matrix.one/matrix-creator from your apt-list, it is outdated repository

MALOS Installation

# Add repo and key
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list

# Update packages and install
sudo apt-get update
sudo apt-get upgrade

sudo apt install matrixio-creator-init
sudo apt-get install matrixio-malos
sudo reboot

Let me know how the things work.


Kevin Patino

Regardless of whether those instructions work or not, you should remove the wrong instructions from this page: https://matrix-io.github.io/matrix-documentation/matrix-os/getting-started/installation/

1 Like

Thank You @RussNelson for your feedback, We are working on it and keep it updated and accurately.

Did you resolve your issue? Could I help you with it?

Just share with us and we are looking forward for your answer.

Thank You,


Kevin Patino

pi@raspberrypi:~/matrix-os$ node index.js
Environment Selected: production
Loading… device
Illegal instruction

Still having an issue …