Errors installing home assistant on a debian

Hey, i am installing home assistant and i am getting these error


These are the commands i run untill these point. (Remove the first h in the links, it didn’t allow me to create the post with more than 2 links)

sudo apt update
sudo apt upgrade -y
sudo apt install jq wget curl udisks2 libglib2.0-bin network-manager dbus -y
curl -fsSL hhttps://get.docker.com | sudo sh
wget hhttps://github.com/home-assistant/os-agent/releases/download/1.4.1/os-agent_1.4.1_linux_armv7.deb
sudo dpkg -i os-agent_1.4.1_linux_armv7.deb
wget hhttps://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo dpkg -i homeassistant-supervised.deb

I am running these on a debian 32 bit os on a raspberry pi 3b+

Here are the packages you installed:

What’s missing are the two packages reported in the error messages:

  • apparmor
  • systemd-journal-remote

You appear to be using outdated installation instructions for Home Assistant Supervised. I recommend you follow the latest, official instructions here:

do i just run the new ones or do i have to do something to undo the other ones?

Please also consider running HA OS or HA Container instead.

The thing is that i want to run more things on the pi than just home asistant

HA Container is a good choice then.

how do i install it?

If you do that with Supervised you can expect your system to quickly, if not immediately, become Unhealthy and Unsupported and refuse to let you update anything.

The requirements for Supervised are quite clear that you can’t do what you’re proposing.

1 Like

what command will i need to run to install it as a container?

The link I shared above tells you what to do

I don’t seem to understand the comands that i need to run

The link tells you exactly what you need to run. What are you having trouble understanding?

doesn’t seem to work

Please don’t post text as an image… just copy and paste the text into your message.

A couple things:

  1. You didn’t read this part of the page:
  • /PATH_TO_YOUR_CONFIG points at the folder where you want to store your configuration and run it.
  • MY_TIME_ZONE is a tz database name, like TZ=America/Los_Angeles.

You’ll want to correct those before moving on to…
2. The error says “permission denied” which should be a hint for you to google docker permission denied to try to figure out the problem. By default, Docker commands need to be run as root, so run sudo !! which runs the previous command you ran as root. You could also add your user to the docker group if you wanted to.

1 Like

i’m sorry, but i don’t understand the first step. I am new to all of these and i just want to have retropie running along with home assistant on the same pi

I’d recommend you use Docker compose instead.

Try this, which will install the right version of Docker (and compose), create the config file in a sane location, and then start HA.

sudo apt-get -y remove docker docker-engine docker.io containerd runc
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo mkdir /docker /docker/homeassistant
cat <<EOM | sudo tee /docker/docker-compose.yaml
version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
EOM
cd /docker
sudo docker compose pull homeassistant
sudo docker compose up -d homeassistant

When done, remember to add /docker to your backups. Or, as I suspect is more likely, remember to set up backups…

do I include the EOM in the file or is it a command?

If you’re copy and pasting what I wrote, do it all

cat <<EOM creates a here document that ends when it sees EOM as an entire line.

cat <<EOM | sudo tee /docker/docker-compose.yaml
version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
EOM

results in /docker/docker-compose.yaml being created by root with the contents of

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

Can I strongly recommend that if you’re going to carry on you take the time to learn a bit about Linux and Docker - or switch plan to use Home Assistant OS