Help with rasperry pi particle

I have tried to install the particle software on my pi. It gets as far as running the super user do particle-agent setup command then it says that it can’t find the command. The exact error code is as follows

sudo: particle-agent: command not found

Thankyou for your patience

Which version of the Pi are you using and did it install successfully?