# Robot Installation Error \[Ubuntu 22.04\]

**URL:** <https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815>\
**Category:** Ask\
**Created:** [September 29, 2023, 2:28pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815 "2023-09-29T14:28:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony\_rob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/tony_rob/32/486_2.png) [@tony\_rob](https://forum.hello-robot.com/u/tony_rob)\
**Post date:** [September 29, 2023, 2:28pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/1 "2023-09-29T14:28:25Z")

</div>

Hi!

I installed ubuntu 22.04 to work with ROS2 Humble in my robot but when running the installation I encounter the following issue:

```auto
###########################################
CREATING HUMBLE AMENT WORKSPACE at /home/hello-robot/ament_ws
###########################################
Ensuring correct version of ROS is sourced...
/home/hello-robot/stretch_install/factory/22.04/stretch_create_ament_workspace.sh: line 26: ROS_DISTRO: unbound variable

#############################################
FAILURE. INSTALLATION DID NOT COMPLETE.
Look at the troubleshooting guide for solutions to common issues: https://docs.hello-robot.com/0.2/stretch-install/docs/robot_install#troubleshooting
or contact Hello Robot support and include /home/hello-robot/stretch_user/log/stretch_install_202309291002/stretch_robot_install_logs.zip
#############################################

```

I assume it wasn’t able to create the workspace but I am not sure if other installation procedures were not done because of this. Can I just try to create the workspace following the “New ROS workspace” tutorial? or do I have to take a different approach?

Best,  
Tony

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [October 1, 2023, 4:55am UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/2 "2023-10-01T04:55:09Z")

</div>

Hi @tony_rob, thanks for reporting this issue. You’re right about the only portion of the install missing at that point is the ROS2 workspace. You can follow that tutorial to finish the robot install manually.

A similar `unbounded error` was reported in this issue: [ROS workspace install error](https://forum.hello-robot.com/t/ros-workspace-install-error/818)

I’m wondering if there’s a bug in our workspace script. @Mohamed_Fazil could you try reproducing the `unbounded error` by [performing a robot install](https://github.com/hello-robot/stretch_install/blob/master/docs/robot_install.md) of 22.04 + Humble?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [October 4, 2023, 1:56am UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/3 "2023-10-04T01:56:53Z")

</div>

@bshah I tried doing a fresh Ubuntu 22.04 stretch install and wasn’t able to reproduce the `unbound error` issue while trying the ament\_ws creation script. Unsure if there is a bug in the script.

@tony_rob Could you send us the zipped user install log and also the output file generated using the command `printenv>>~/environment_variables.log` from the terminal where the ament workspace creation script is failing?

---

<div class="post-metadata">

**Author:** ![tony\_rob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/tony_rob/32/486_2.png) [@tony\_rob](https://forum.hello-robot.com/u/tony_rob)\
**Post date:** [October 6, 2023, 12:20pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/4 "2023-10-06T12:20:25Z")

</div>

Hi all! Thanks for your responses.

I tried to install the ament\_ws following the tutorial but I still get the same error. I’ve checked that ROS2 humble is sourced and when I run echo $ROS\_DISTRO, ‘humble’ is printed to the terminal.

This is the requested zip file containing the logs: [installation\_logs.zip - Google Drive](https://drive.google.com/file/d/1Gc7_B60zrYQsSna8aTmFGwpnGDg5BLTZ/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![tony\_rob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/tony_rob/32/486_2.png) [@tony\_rob](https://forum.hello-robot.com/u/tony_rob)\
**Post date:** [October 12, 2023, 3:27pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/5 "2023-10-12T15:27:44Z")

</div>

Hello @Mohamed_Fazil,

Were you able to access the logs I sent? I am planning to redo the installation to see if the problem does not reappear.

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [October 12, 2023, 4:09pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/6 "2023-10-12T16:09:49Z")

</div>

Hi @tony_rob, I recently merged a fix that should solve the `unbounded error` issue. Would you try pulling down the latest changes to Stretch Install, and performing the workspace install again?

---

<div class="post-metadata">

**Author:** ![tony\_rob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/tony_rob/32/486_2.png) [@tony\_rob](https://forum.hello-robot.com/u/tony_rob)\
**Post date:** [October 14, 2023, 11:29pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/7 "2023-10-14T23:29:07Z")

</div>

Fixed! thanks for your help!

---

<div class="post-metadata">

**Author:** ![tony\_rob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/tony_rob/32/486_2.png) [@tony\_rob](https://forum.hello-robot.com/u/tony_rob)\
**Post date:** [October 20, 2023, 1:44pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/8 "2023-10-20T13:44:07Z")

</div>

Hi @bshah @Mohamed_Fazil,

Now I am trying to set up a new robot installation in Ubuntu 20.04 but it is also failing. Here is the message I am getting:

```auto
###########################################
NEW INSTALLATION OF USER SOFTWARE
###########################################
Update ~/.bashrc dotfile...
Creating repos and stretch_user directories...
Cloning Stretch deep perception models...
Setting up user copy of robot factory data (if not already there)...
Setting up this user to start the robot's code automatically on boot...
Updating media assets...
Installing Arduino CLI...
/home/hello-robot/stretch_install/factory/20.04/stretch_install_arduino.sh: line 4: /home/hello-robot/.local/bin/arduino-cli: No such file or directory
/home/hello-robot/stretch_install/factory/20.04/stretch_install_arduino.sh: line 5: /home/hello-robot/.local/bin/arduino-cli: No such file or directory
sed: can't read /home/hello-robot/.arduino15/arduino-cli.yaml: No such file or directory

#############################################
FAILURE. INSTALLATION DID NOT COMPLETE.
Look at the troubleshooting guide for solutions to common issues: https://docs.hello-robot.com/0.2/stretch-install/docs/robot_install#troubleshooting
or contact Hello Robot support and include /home/hello-robot/stretch_user/log/stretch_install_202310200905/stretch_robot_install_logs.zip
#############################################

```

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [October 20, 2023, 10:13pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/9 "2023-10-20T22:13:01Z")

</div>

Hi @tony_rob , Thanks for raising this issue, I was able to reproduce this issue and it seems like the [arduino-cli install shell script](https://github.com/hello-robot/stretch_install/blob/master/factory/20.04/stretch_install_arduino.sh#L3) execution is failing. I beleive the script has an issue downloading the arduino cli package.  
As a workaround to the above issue, I manually downloaded the [latest pre-built arduino-cli 64bit binary](https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz) as a tar.gz file. Then placed the contents of the zip file to the path `/home/hello-robot/.local/bin/` and re-ran the robot install script.

```bash
# Download prebuilt arduino-cli binary zip package and extract it's contents
wget https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz
tar -xvf arduino-cli_nightly-latest_Linux_64bit.tar.gz

# Verify there are no pre-existing files in bin
sudo rm /home/hello-robot/.local/bin/arduino-cli
sudo rm -rf /home/hello-robot/.local/bin/arduino-cli

#Move the extracted arduino-cli file to bin
sudo mv arduino-cli /home/hello-robot/.local/bin/

```

Let me know if the above step solves your issue.

---

<div class="post-metadata">

**Author:** ![roboor](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@roboor](https://forum.hello-robot.com/u/roboor)\
**Post date:** [October 24, 2023, 12:38pm UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/10 "2023-10-24T12:38:34Z")

</div>

Hi @Mohamed_Fazil,

After following these steps on Ubuntu 22.04, I can still not find the installed Arduino IDE after adding the file to the /.local/bin/ directory and re-installing the robot with `./stretch_new_robot.sh`.

The robot installation was successful.

Is there any other way of downloading Arduino IDE, or is there a lack of compatibility when installed the trivial way?

Best regards,  
Noor

---

<div class="post-metadata">

**Author:** ![Mohamed\_Fazil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/mohamed_fazil/32/261_2.png) [@Mohamed\_Fazil](https://forum.hello-robot.com/u/Mohamed_Fazil)\
**Post date:** [October 25, 2023, 12:43am UTC](https://forum.hello-robot.com/t/robot-installation-error-ubuntu-22-04/815/11 "2023-10-25T00:43:56Z")

</div>

Hi @roboor ,  
The script mentioned only installs the arduino-cli (Command Line Tool) and not the Arduino IDE I believe. You can definitely install Arduino IDE parallel to an existing arduino-cli installed in your robot.
