If you already have the agent installed, run the install script again to upgrade. I recommend you accept all the prompts to replace your firmware by Tinker, then reboot to reset all pins to a known good state.
bash <( curl -sL https://particle.io/install-pi )
# Accept all setup prompts to replace your firmware by Tinker
sudo reboot
automatically run particle-agent commands as root. particle-agent setup is sufficient, no need for sudo particle-agent setup.
safe mode. Puts Tinker back if the firmware crashes 5 times within 30 seconds.
particle-agent version
If you already have the agent installed, run the install script again to upgrade. Press Ctrl-C at the Particle Cloud setup prompt if you don’t want to replace your running firmware by Tinker. bash <( curl -sL https://particle.io/install-pi )
This seems to have broken the “particle-agent setup” command:
pi@particlepi:~ $ particle-agent setup
Let's connect your Raspberry Pi to the Particle Cloud!
You are already logged in as *********@gmail.com.
Do you want to stay logged in as this user? |yes|
How do you want your device to be labeled in the Particle tools?
Name: |********|
Generating RSA private key, 1024 bit long modulus
.........++++++
....................++++++
e is 65537 (0x10001)
writing RSA key
writing RSA key
/usr/lib/ruby/2.1.0/fileutils.rb:858:in `stat': No such file or directory @ rb_file_s_stat - /usr/share/particle/binaries/tinker (Errno::ENOENT)
from /usr/lib/ruby/2.1.0/fileutils.rb:858:in `block in install'
from /usr/lib/ruby/2.1.0/fileutils.rb:1579:in `block in fu_each_src_dest'
from /usr/lib/ruby/2.1.0/fileutils.rb:1595:in `fu_each_src_dest0'
from /usr/lib/ruby/2.1.0/fileutils.rb:1577:in `fu_each_src_dest'
from /usr/lib/ruby/2.1.0/fileutils.rb:857:in `install'
from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:194:in `copy_tinker_firmware'
from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:62:in `run!'
from /usr/lib/ruby/vendor_ruby/particle_agent/cli.rb:16:in `setup'
from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'
from /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'
from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
from /usr/bin/particle-agent:16:in `<main>'