# Error updating Stretch RE1 OS

**URL:** <https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049>\
**Category:** Ask\
**Created:** [July 23, 2024, 7:28pm UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049 "2024-07-23T19:28:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edelio\_Taboada](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/edelio_taboada/32/761_2.png) [@Edelio\_Taboada](https://forum.hello-robot.com/u/Edelio_Taboada)\
**Post date:** [July 23, 2024, 7:28pm UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049/1 "2024-07-23T19:28:36Z")

</div>

I am trying to update my stretch re1 to Ubuntu 20, and I was succesfully able to update Ubuntu but when running `./stretch_new_robot_install.sh` as described in this [guide](https://docs.hello-robot.com/0.3/installation/robot_install/#run-the-robot-installation-script) I get an error during the “installation of user level pip3 packages.”  
I have attached a screenshot of the terminal for reference. I tried to attach the log error file but it said that new users cannot attach files. Any help fixing this issue would be greatly appreciated!

 ![Screenshot from 2024-07-23 15-25-57](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/adf899e9dc40253b28ce27b6c70b5b28cd748009.png)

---

<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:** [July 24, 2024, 3:54pm UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049/2 "2024-07-24T15:54:05Z")

</div>

Hey @Edelio_Taboada, I’ve made you a “member”, so you should be able to attach files now.

---

<div class="post-metadata">

**Author:** ![Edelio\_Taboada](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/edelio_taboada/32/761_2.png) [@Edelio\_Taboada](https://forum.hello-robot.com/u/Edelio_Taboada)\
**Post date:** [July 25, 2024, 12:02am UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049/3 "2024-07-25T00:02:02Z")

</div>

Thank you, here are the logs:

[stretch\_robot\_install\_logs.zip](https://forum.hello-robot.com/uploads/short-url/pQdvmK6RVRQoMJdfg3egMgbiPmq.zip) (5.4 KB)

---

<div class="post-metadata">

**Author:** ![nzhao](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nzhao](https://forum.hello-robot.com/u/nzhao)\
**Post date:** [July 25, 2024, 1:36pm UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049/4 "2024-07-25T13:36:42Z")

</div>

Had this issue yesterday as well, I believe it had something to do with an issue running pip cache: when I attempted to run a `pip cache purge`, it would return `ERROR: unknown command "cache" - maybe you meant "check"`

First make sure you’ve upgraded pip: `sudo python3 -m pip install pip --upgrade --force`

Running `pip3 cache purge` worked for me, so I added `alias pip=pip3` to my `.bashrc` file. I suspect `pip` was trying to use Python 2 instead

Removed previous robot install from `.bashrc` and opened a new terminal, then reran the new robot install

Hope this also works for you 👍

---

<div class="post-metadata">

**Author:** ![Edelio\_Taboada](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/edelio_taboada/32/761_2.png) [@Edelio\_Taboada](https://forum.hello-robot.com/u/Edelio_Taboada)\
**Post date:** [July 25, 2024, 4:09pm UTC](https://forum.hello-robot.com/t/error-updating-stretch-re1-os/1049/5 "2024-07-25T16:09:54Z")

</div>

Thank you! This solved that issue
