Errors when loading the particle agent on a R Pi3 [Solved]

I have received a number of errors on installing the particle agent:

pi@raspberrypi:~ $ bash <( curl -sL https://particle.io/install-pi)
Installing the Particle Agent

Downloading packages

######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%

Installing packages

Selecting previously unselected package particle-agent.
(Reading database ... 126040 files and directories currently installed.)
Preparing to unpack .../particle-agent_0.2.2-1_all.deb ...
Unpacking particle-agent (0.2.2-1) ...
Selecting previously unselected package ruby-unicode-display-width.
Preparing to unpack .../ruby-unicode-display-width_1.1.1-1_all.deb ...
Unpacking ruby-unicode-display-width (1.1.1-1) ...
Selecting previously unselected package ruby-whirly.
Preparing to unpack .../ruby-whirly_0.2.3-1_all.deb ...
Unpacking ruby-whirly (0.2.3-1) ...
Selecting previously unselected package ruby-particlerb.
Preparing to unpack .../ruby-particlerb_1.3.0-1_all.deb ...
Unpacking ruby-particlerb (1.3.0-1) ...
dpkg: dependency problems prevent configuration of particle-agent:
 particle-agent depends on bundler; however:
  Package bundler is not installed.
 particle-agent depends on ruby-highline (>= 1.6); however:
  Package ruby-highline is not installed.
 particle-agent depends on ruby-thor (>= 0.19); however:
  Package ruby-thor is not installed.

dpkg: error processing package particle-agent (--install):
 dependency problems - leaving unconfigured
Setting up ruby-unicode-display-width (1.1.1-1) ...
Setting up ruby-whirly (0.2.3-1) ...
dpkg: dependency problems prevent configuration of ruby-particlerb:
 ruby-particlerb depends on ruby-faraday (>= 0.9.0); however:
  Package ruby-faraday is not installed.
 ruby-particlerb depends on ruby-faraday-middleware (>= 0.9.0); however:
  Package ruby-faraday-middleware is not installed.

dpkg: error processing package ruby-particlerb (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
 particle-agent
 ruby-particlerb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  bundler libgmp-dev libgmpxx4ldbl ruby-dev ruby-faraday ruby-faraday-middleware ruby-highline ruby-multipart-post ruby-net-http-persistent ruby-thor ruby2.1-dev
Suggested packages:
  libgmp10-doc libmpfr-dev
The following NEW packages will be installed:
  bundler libgmp-dev libgmpxx4ldbl ruby-dev ruby-faraday ruby-faraday-middleware ruby-highline ruby-multipart-post ruby-net-http-persistent ruby-thor ruby2.1-dev
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 1,877 kB of archives.
After this operation, 6,390 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-thor all 0.19.1-1 [46.6 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-net-http-persistent all 2.9-3 [19.6 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-multipart-post all 1.2.0-2 [6,714 B]    
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-faraday all 0.9.0-2 [32.2 kB]       
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main bundler all 1.7.4-1 [149 kB]                                                                                                                                      
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-faraday-middleware all 0.9.1-1 [12.2 kB]                                                                                                                     
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-highline all 1.6.21-1 [45.6 kB]                                                                                                                              
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby2.1-dev armhf 2.1.5-2+deb8u2                                                                                                                                    
  404  Not Found [IP: 5.153.225.207 80]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-dev all 1:2.1.5+deb8u1                                                                                                                                         
  404  Not Found [IP: 5.153.225.207 80]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgmpxx4ldbl armhf 2:6.0.0+dfsg-6+rpi1 [21.6 kB]                                                                                                                 
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgmp-dev armhf 2:6.0.0+dfsg-6+rpi1 [552 kB]                                                                                                                     
Fetched 886 kB in 8s (98.9 kB/s)                                                                                                                                                                                                 
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/r/ruby2.1/ruby2.1-dev_2.1.5-2+deb8u2_armhf.deb  404  Not Found [IP: 5.153.225.207 80]

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/r/ruby-defaults/ruby-dev_2.1.5+deb8u1_all.deb  404  Not Found [IP: 5.153.225.207 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Running sudo particle-agent setup

/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
	from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/bin/particle-agent:12:in `<main>'
pi@raspberrypi:~ $ sudo service particle-agent status
● particle-agent.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Any advice about how to get this installed? Thanks

Can you try installing again?

1 Like

it looks like you should have tried ,
sudo apt-get update
sudo apt-get upgrade
prior to doing the client install. the install process reported the initial system errors and tried to correct them. i would try the update/upgrade. reboot. then try the client install. if i remember correctly prior to client install one should do the update/upgrade.

1 Like

@dkryder

Thanks for diagnosis - that was the issue, I am not a linux guy. :grinning:

Just a rider to the above; openssl did not install either so:

sudo apt-get install openssl

Was needed and then particle-agent setup as the automatic run failed.

2 Likes

Having the same problem. Did update/upgrade but issue is still there

Is this also with the Raspbian Lite (no GUI) installation or the full installation?

I have used noobs and its happening on pi1 model b. Tried to install needed packages with rvm but with no luck

We’re still focusing on the Raspberry Pi 2 and 3 for the initial beta. There are some known issues for the Raspberry Pi 1 that you can see described in the forum.