Need help updating to 20.3 on Raspbian all-in-one

Hi - I’m having an issue (maybe related to Updating All in One Raspberry now kills Webpage?) on my pi trying to update to 20.3. My issue is that I am unable to update at all. I am not in a virtual environment, however. When I run the update commands, I get messages stating “Requirement already up-to-date”. I restart my pi, but I’m still on 20.2 and the Update Available icon still persists.

I found this thread and tried switching to the hass user before running it and got the same messages. I thought maybe I should try sudo pip3 install --upgrade homeassistant but it prompts me for the sudo password and I don’t know what it is for hass, (is this set during the all in one setup?).

Any help is appreciated.
-ni9n3r

That is the critical part - you are installing home assistant to the global environment so when you run it under its virtual environment it doesn’t see the upgrade.

From the All in One Install Page:

To upgrade the All-In-One setup:

Login to Raspberry Pi ssh pi@your_raspberry_pi_ip
Change to hass user sudo su -s /bin/bash hass
Change to virtual enviroment source /srv/hass/hass_venv/bin/activate
Update HA pip3 install --upgrade homeassistant

Thanks so much, that worked perfectly!
-ni9n3r

1 Like

Just in case you weren’t aware of the benefit of the virtual environment, you can install other packages on your Pi for other tasks or third party integration and when you upgrade any of those libraries, your HA install remains untouched even if they share some libs in common. This was one of the other things that made me move to the Pi from a Windows machine.

So Update HA pip3 install command updates all the dependencies within the virtual env?

Yes, if you execute it in the order shown in Andrew’s post. Once you log into the virtual environment (1st step) and then make it active for changes (2nd step) the last command updates the HASS installation ONLY along with any dependencies.

-bash: /srv/hass/hass_venv/bin/activate: No such file or directory

Unable to change to virtual environment. Any suggestions?

Did you login as the hass user first?

sudo su -s /bin/bash hass

I did. Is there any way to reinstall 20.2? Where in my case everything was working just fine.

Not sure; I would just start with a new image and reinstall as it seems you missed something along the way, but maybe someone here can come up with a better idea.

It’s been a long time, but just in case someone else bumps into it, the following worked for me:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant

Apparently my HA user is called homeassistant and the directory structure is a bit different in my case

1 Like

I dont know what i did (Guessing I’ve updated my Respberry Pi that’s why) but i was also not able to update my home assistant (0.75 to 0.75.3)

Previously before (0.75) I was able to update it by the following

sudo su -s /bin/bash hass
source /srv/hass/hass_venv/bin/activate
pip3 install --upgrade homeassistant

But now i dont know how the directory got change, now to update my HA I have to execute the following commands

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install --upgrade homeassistant