Update Guide: Home Assistant & Ubuntu 24.04 to 24.10 + Python Migration #1549
Replies: 4 comments 9 replies
-
Another option would be to shut down the old LXC and adjust the IP if necessary. Then start up the old lxc and create an new LXC (with PR #1550) and then use the copy script. But this is not tested from me: bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/blob/main/misc/copy-data/home-assistant-core-copy-data-home-assistant-core.sh)" |
Beta Was this translation helpful? Give feedback.
-
I'm getting this from proxmox after rebooting on step 6:
|
Beta Was this translation helpful? Give feedback.
-
I had an issue with step 10. It turns out the virtual environment is still calling python3.12.
I had to run these instructions to remove the previous virtual environment with remnants of python3.12, then recreate the virtual environment:
I was then able to follow the rest of the process in step 10:
Everything works now 😄 Thank you so much for creating this guide. |
Beta Was this translation helpful? Give feedback.
-
Under Proxmox host, I created a new LXC (9000) with
then get the copy script and run it
the Result is:
Working as expected |
Beta Was this translation helpful? Give feedback.
-
1. Backup Home Assistant
Before proceeding with the update, ensure you create a full backup of your Home Assistant instance.
2. Stop Home Assistant and Filebrowser Services
If Home Assistant is running, stop the service:
If the Filebrowser service is active, stop it as well:
3. Update System
Run the following commands to update your system:
4. Set Release Upgrade Prompt
Modify the release-upgrades settings:
Change
Prompt=lts
toPrompt=normal
.5. Perform the Ubuntu Upgrade
Start the upgrade process:
If prompted to continue, confirm all with
y
orENTER
You may also encounter prompts regarding configuration files. Select
Y
orI
to install the package maintainer's version, orN
to keep your current version (not recommended) - i recommend YExamples:
6. Reboot System
After the upgrade completes, reboot the lxc:
7. Install Necessary Dependencies
After the reboot, install the necessary dependencies and stop homeassistant again:
8. Remove Old Python Versions
Clean up any old Python 3.12 versions:
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED apt-get remove --purge -y python3.12 python3.12-dev python3.12-venv
9. Install Python 3.13
Install the required Python version:
Make Python 3.13 the default:
10. Set Up Home Assistant Virtual Environment
Navigate to the Home Assistant directory and set up a virtual environment:
Reinstall the required Python packages within the virtual environment:
Exit the virtual environment:
exit
12. Update Home Assistant Systemd Service
Update the Home Assistant systemd service file:
13. Start Services & check status
After completing these steps and running service your Home Assistant instance should be running on Ubuntu 24.10 with Python 3.13.
Beta Was this translation helpful? Give feedback.
All reactions