Installing Home Assistant on linux based ASUS UX305C

Hello,

I’m a complete beginner in Linux but I have a computer with Linux Mint 20.1 on it and I want to make it my Home Assistant control center. I have tried several installation methods and none work (see the instructions and results below). Thanks for your support.

Method 1: https://www.home-assistant.io/installation/linux

samy@samy-UX305CA:~$ docker run --init -d \
>   --name homeassistant \
>   --restart=unless-stopped \
>   -v /etc/localtime:/etc/localtime:ro \
>   -v /home/samy/Desktop/Home Assistant Config/config \
>   --network=host \
>   homeassistant/home-assistant:stable
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.

Method 2: https://github.com/home-assistant/supervised-installer

samy@samy-UX305CA:~$ sudo curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh        
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8401  100  8401    0     0  81563      0 --:--:-- --:--:-- --:--:-- 81563
samy@samy-UX305CA:~$ sudo bash installer.sh
[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] 
[warn] If you want to abort, hit ctrl+c within 10 seconds...
[warn] 
[warn] Docker is using json-file and not 'journald' as the logging driver, this is not supported.
[info] Creating NetworkManager configuration
[warn] Changes are needed to the /etc/network/interfaces file
[info] If you have modified the network on the host manualy, those can now be overwritten
[info] If you do not overwrite this now you need to manually adjust it later
[info] Do you want to proceed with overwriting the /etc/network/interfaces file? [N/y] 
y
[info] Replacing /etc/network/interfaces
[info] Restarting NetworkManager
[info] Install supervisor Docker container
invalid reference format

Method 3: https://www.youtube.com/watch?v=pUlpfx0jaYA


samy@samy-UX305CA:~$ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (2.0.7).
gnupg-agent is already the newest version (2.2.19-3ubuntu2).
ca-certificates is already the newest version (20210119~20.04.1).
curl is already the newest version (7.68.0-1ubuntu2.4).
apt-transport-https is already the newest version (2.0.4).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

samy@samy-UX305CA:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK

samy@samy-UX305CA:~$  sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Repository already exists.

samy@samy-UX305CA:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease                 
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease               
Ign:5 http://packages.linuxmint.com ulyssa InRelease                           
Ign:6 https://download.docker.com/linux/ubuntu ulyssa InRelease                
Hit:7 http://archive.canonical.com/ubuntu focal InRelease                      
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:9 http://packages.linuxmint.com ulyssa Release                  
Ign:10 https://download.docker.com/linux/debian bullseye InRelease
Err:11 https://download.docker.com/linux/ubuntu ulyssa Release
  404  Not Found [IP: 2600:9000:21d7:ea00:3:db06:4200:93a1 443]
Err:13 https://download.docker.com/linux/debian bullseye Release
  404  Not Found [IP: 2600:9000:21d7:ea00:3:db06:4200:93a1 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu ulyssa Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://download.docker.com/linux/debian bullseye Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

samy@samy-UX305CA:~$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
containerd.io is already the newest version (1.4.3-1).
docker-ce-cli is already the newest version (5:20.10.3~3-0~ubuntu-focal).
docker-ce is already the newest version (5:20.10.3~3-0~ubuntu-focal).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

samy@samy-UX305CA:~$ sudo apt install jq
Reading package lists... Done
Building dependency tree       
Reading state information... Done
jq is already the newest version (1.6-1ubuntu0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

samy@samy-UX305CA:~$ sudo curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s
[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] 
[warn] If you want to abort, hit ctrl+c within 10 seconds...
[warn] 
[warn] Docker is using json-file and not 'journald' as the logging driver, this is not supported.
[info] Creating NetworkManager configuration
bash: line 99: /etc/NetworkManager/NetworkManager.conf: Permission denied

This is invalid, because

  • -v argument must be <absolute local path>:<absolute container path>
  • -v argument contains blanks and is therefore interpreted as (invalid) path and image repository name

Fix:

  1. rename /home/samy/Desktop/Home Assistant Config to /home/samy/Desktop/HomeAssistant
  2. change line above to -v /home/samy/Desktop/HomeAssistant:/config \