I get errors when running the install script according to the instruction on a Rasperry Pi 2+, result attached below (google translated from swedish). Any tip on how to proceed?
pi@pers-raspberrypi ~ $ bash <(curl -SL https://particle.io/install-pi)
Installing the Agent Particle
Downloading packages
################################################## ###################### 100.0%
################################################## ###################### 100.0%
################################################## ###################### 100.0%
################################################## ###################### 100.0%
Installing packages
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer necessary:
bundler ruby-highline RubyGems integration
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Selects the previously non-selected packets particle agent.
(Reading database ... 86884 files and directories currently installed.)
Extracting particle agent (from ... / particle-agent_0.2.3-1_all.deb) ...
Preparing to replace ruby unicode display width 1.1.1-1 (using ... / ruby-unicode display width_1.1.1-1_all.deb) ...
Unpacking replacement ruby unicode display width ...
Preparing to replace ruby-whirly 0.2.3-1 (using ... / ruby-whirly_0.2.3-1_all.deb) ...
Unpacking replacement ruby-whirly ...
Chooses not previously chosen package ruby-particlerb.
Extracting ruby-particlerb (from ... / ruby-particlerb_1.3.1-1_all.deb) ...
dpkg: dependency problems prevent configuration of particle-agent:
Particle agent is dependent on the ruby-thor (> = 0:19), but:
The version of ruby-thor of the system is 0.15.3-1.
dpkg: error processing particle agent (--install):
dependency problems - leaving unconfigured
Sets ruby unicode display width (1.1.1-1) ...
Sets ruby-whirly (0.2.3-1) ...
dpkg: dependency problems prevent configuration of ruby-particlerb:
ruby-particlerb depends on ruby-Faraday (> = 0.9.0), but:
Package ruby-Faraday is not installed.
ruby-particlerb depends on ruby-Faraday middleware (> = 0.9.0), but:
Package ruby-Faraday middleware is not installed.
dpkg: error processing ruby-particlerb (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
Particle agent
ruby-particlerb
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Correction dependencies .... Finished
The following packages were automatically installed and are no longer necessary:
bundler ruby-highline RubyGems integration
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
Particle agent ruby-particlerb
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
2 not fully installed or removed.
After this operation, 807 kB of additional disk.
(Reading database ... 86944 files and directories currently installed.)
Removes particle-agent ...
Removes ruby-particlerb ...
W: Operation was interrupted before it could finish
Running sudo particle-agent setup
sudo: particle-agent: command not found