It is hard to say without looking at your logs. The Remote.It CLI and the Remote.It Device Package are not compatible.
First, let’s confirm which package you need. I know in this case you need ClI, but for others who might be looking at this post…
The device package which is the one line install code supports inbound connections only. If this is what you need, then you do not need the CLI.
If you need to have this device create remote.it connections to another device (plus it can support inbound connections), then you want the CLI. (for example you would be running a command “sudo remoteit connection add -id xxxx” then use the connection from the device). If you do not need this, again you do not need the CLI and want the Device Package.
Either way, let’s uninstall everything and start fresh. Some of these commands may be unknown which means it wasn’t installed, but we want to be sure.
To uninstall device package
sudo apt purge remoteit
To uninstall CLI
sudo remoteit agent stop
sudo remoteit agent uninstall
sudo remoteit tools uninstall
Then you can remove the CLI binary /usr/bin/remoteit
Let’s get your restore code (if you want to preserve the existing device), or get a new registration code.
You can get your restore code by clicking on the device name in the Remote.It desktop or app.remote.it and then the three dots next to the device name, “Restore Device”, then click the bar code on the bottom right.
To get a new registration code click on “+”, Select the device, the click on the bar code on the bottom right.
Replace XXXXXXXX with your copied code.
If you want to keep the Remote.It CLI:
R3_REGISTRATION_CODE="XXXXXXXX" sh -c "$(curl -L https://downloads.remote.it/cli/install_cli.sh)"
If you want to install the device package , please run the following:
R3_REGISTRATION_CODE="XXXXXXXX" sh -c "$(curl -L https://downloads.remote.it/remoteit/install_agent.sh)"
In either case, you can only use the restore code if you still see the device in your device list. Otherwise you can use the + on the left nav to generate a new registration code.