Had to reinstall the HA and I got as far as supervised installation but that miserably fails. is this the end of HA on WSL2? FYI, Ubuntu is up2date with the latest and the greatest.
[error] Ubuntu 20.04.5 LTS is not supported!
dpkg: error processing archive /home/aa/homeassistant-supervised.deb (--unpack):
new homeassistant-supervised package pre-installation script subprocess returned error exit status 1
[info] Undo divert on abort-install
No diversion 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised', none removed.
[info] Resetting debconf selections
[info] Removal complete, due to the complexity of this installation method,
[info] you will need to manually remove the containers created by the supervisor
Errors were encountered while processing:
/home/amir/homeassistant-supervised.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
and journal is relatively healthy
Mar 12 22:23:47 TheHost sudo[16559]: aa : TTY=pts/0 ; PWD=/home/amir ; USER=root ; COMMAND=/usr/bin/apt install ./homeassistant-supervised.deb
Mar 12 22:23:47 TheHost sudo[16559]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 12 22:23:48 TheHost dbus-daemon[282]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.59' (uid=0 pid=16635 comm="/usr/bin/gdbus call --system --dest org.freedeskto")
Mar 12 22:23:48 TheHost systemd[1]: Starting PackageKit Daemon...
Mar 12 22:23:48 TheHost PackageKit[16638]: daemon start
Mar 12 22:23:48 TheHost dbus-daemon[282]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Mar 12 22:23:48 TheHost systemd[1]: Started PackageKit Daemon.
Mar 12 22:23:49 TheHost sudo[16559]: pam_unix(sudo:session): session closed for user root
I followed the same instructions and ended up getting the same EXACT errors!. Hopefully, someone here wouldnât mind telling us what has changed since the instructions were released. I donât think itâs a coincidence we got the same errors.
Get:1 /mnt/d/download-ha/homeassistant-supervised.deb homeassistant-supervised all 1.4.2 [6444 B]
Preconfiguring packages ...
(Reading database ... 51681 files and directories currently installed.)
Preparing to unpack .../homeassistant-supervised.deb ...
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[error] Ubuntu 22.04.2 LTS is not supported!
dpkg: error processing archive /mnt/d/download-ha/homeassistant-supervised.deb (--unpack):
new homeassistant-supervised package pre-installation script subprocess returned error exit status 1
[info] Undo divert on abort-install
No diversion 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised', none removed.
No diversion 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised', none removed.
[info] Resetting debconf selections
[info] Removal complete, due to the complexity of this installation method,
[info] you will need to manually remove the containers created by the supervisor
Errors were encountered while processing:
/mnt/d/download-ha/homeassistant-supervised.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
No disrespect to the people who are tiredlessly working on this page, but gave up hope on WSL2 as I had so many problems with it recently. As of early last week, I migrated my HA to Proxmox and I couldnât be happier! Things are just fine and problems went away. All of them
--- checkonline.home-assistant.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 18.339/18.339/18.339/0.000 ms
[info] Install supervisor startup scripts
[info] Install AppArmor scripts
[info] Start Home Assistant Supervised
[info] Installing the 'ha' cli
[warn] Could not find /etc/default/grub or /boot/firmware/cmdline.txt failed to switch to cgroup v1
[info] Within a few minutes you will be able to reach Home Assistant at:
[info] http://homeassistant.local:8123 or using the IP address of your
[info] machine: http://172.26.7.130:8123
I can now login to Home Assistant via Web browser. However, it doesnât have the ability to install addons:
Hello,
After reading these posts, I would like to check with you if there is still no way to install the Home Assistant Supervised version on WSL2 ?
Thank you in advance for your answer
For me, the easiest way is running this portable version on your Windows machine:
No wsl needed
No docker needed
Has been working great for me for the last year!
Only problem Iâm having is that it sometimes wont run because it says its already running / port 8123 is already in use.
I fixed this by creating a âstart home assistant.cmdâ file with this content:
@ECHO OFF
ECHO Killing existing Home Assistant process...
for /f "tokens=5" %%a in ('netstat -aon ^| find ":8123" ^| find "LISTENING"') do taskkill /f /pid %%a
ECHO DONE ! starting up Home Assistant...
C:\homeassistant\hass.cmd
It finds whatever process is using port 8123, terminates it, then starts my (portable) Home Assistant which on my pc is located at c:\homeassistant.
I really love how easy this is.