Error while installing Umbrel : sed: can't read ./templates/.env: No such file or directory

Hi, I have an error when trying to install Umbrel on my Ubuntu desktop. Using this command to install on my second ssd:
sudo curl -L https://umbrel.sh | bash -s – --install-path /media/ssd/umbrel
the installation fails with an error:
sed: can’t read ./templates/.env: No such file or directory.
How to fix this problem?
Thanks

Hey @anonymous749812!
Could you provide the complete output of the install script?
Not just the last line, so that we can troubleshoot this together :v:

Hey, here the complète output of thé install script :

homeserver@host:~$ sudo curl -L https://umbrel.sh | bash -s – --install-path /media/ssd/umbrel
[sudo] password for dellhomeserver:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 41 100 41 0 0 37 0 0:00:01 0:00:01 --:–:-- 37
100 7541 100 7541 0 0 5449 0 0:00:01 0:00:01 --:–:-- 105k
About to install Umbrel in “/media/ssd/umbrel”.
If you would like to install somewhere else you can specify a custom location with:
curl -L https://umbrel.sh | bash -s – --install-path /some/path
Waiting for 10 seconds…
You may press Ctrl+C now to abort the install.
It looks like you already have Docker installed. Umbrel requires a modern version of Docker so this script will update them with the official Docker install script.
If you would like to disable this behaviour you can abort this install and run again with --no-install-docker or --no-install-compose.
You can pass flags to the installer like this:
curl -L https://umbrel.sh | bash -s – --no-install-docker --no-install-compose
Waiting for 30 seconds…
You may press Ctrl+C now to abort the install.
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [695 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [409 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [743 kB]
Hit:9 https://packagecloud.io/ookla/speedtest-cli/ubuntu jammy InRelease
Fetched 2,172 kB in 7s (331 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
gettext-base is already the newest version (0.21-4ubuntu4).
jq is already the newest version (1.6-2.1ubuntu3).
rsync is already the newest version (3.2.3-8ubuntu3).
fswatch is already the newest version (1.14.0+repack-13.1).
curl is already the newest version (7.81.0-1ubuntu1.6).
git is already the newest version (1:2.34.1-1ubuntu1.5).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
python3 is already the newest version (3.10.6-1~22.04).
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
avahi-daemon is already the newest version (0.8-5ubuntu5).
libnss-mdns is already the newest version (0.15.1-1ubuntu1).
avahi-discover is already the newest version (0.8-5ubuntu5).
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 9922k 100 9922k 0 0 10.1M 0 --:–:-- --:–:-- --:–:-- 23.5M
yq installed successfully…

Executing docker install script, commit: 4f282167c425347a931ccfd95cc91fab041d414f

Warning: the “docker” command appears to already exist on this system.
If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.

  • sleep 20
  • sh -c apt-get update -qq >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sh -c mkdir -p /etc/apt/keyrings && chmod -R 0755 /etc/apt/keyrings
  • sh -c curl -fsSL “https://download.docker.com/linux/ubuntu/gpg” | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
  • sh -c chmod a+r /etc/apt/keyrings/docker.gpg
  • sh -c echo “deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable” > /etc/apt/sources.list.d/docker.list
  • sh -c apt-get update -qq >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-scan-plugin >/dev/null
  • version_gte 20.10
  • [ -z ]
  • return 0
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce-rootless-extras >/dev/null
  • sh -c docker version
    Client: Docker Engine - Community
    Version: 20.10.21
    API version: 1.41
    Go version: go1.18.7
    Git commit: baeda1f
    Built: Tue Oct 25 18:01:58 2022
    OS/Arch: linux/amd64
    Context: default
    Experimental: true
    Server: Docker Engine - Community
    Engine:
    Version: 20.10.21
    API version: 1.41 (minimum version 1.12)
    Go version: go1.18.7
    Git commit: 3056208
    Built: Tue Oct 25 17:59:49 2022
    OS/Arch: linux/amd64
    Experimental: false
    containerd:
    Version: 1.6.9
    GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f
    runc:
    Version: 1.1.4
    GitCommit: v1.1.4-0-g5fd4c4d
    docker-init:
    Version: 0.19.0
    GitCommit: de40ad0
    ================================================================================
    To run Docker as a non-privileged user, consider setting up the
    Docker daemon in rootless mode for your user:
    dockerd-rootless-setuptool.sh install
    Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.
    To run the Docker daemon as a fully privileged service, but granting non-root
    users access, refer to https://docs.docker.com/go/daemon-access/
    WARNING: Access to the remote API on a privileged Docker daemon is equivalent
    to root access on the host. Refer to the ‘Docker daemon attack surface’ documentation for details: https://docs.docker.com/go/attack-surface/
    ================================================================================
    Reading package lists… Done
    Building dependency tree… Done
    Reading state information… Done
    libffi-dev is already the newest version (3.4.2-4).
    python3-pip is already the newest version (22.0.2+dfsg-1).
    The following packages were automatically installed and are no longer required:
    libflashrom1 libftdi1-2
    Use ‘sudo apt autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: pip in ./.local/lib/python3.10/site-packages (22.2.2)
    Collecting pip
    Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 12.3 MB/s eta 0:00:00
    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 22.2.2
    Uninstalling pip-22.2.2:
    Successfully uninstalled pip-22.2.2
    Successfully installed pip-22.3.1
    Requirement already satisfied: docker-compose in /usr/local/lib/python3.10/dist-packages (1.29.2)
    Requirement already satisfied: PyYAML<6,>=3.10 in /usr/lib/python3/dist-packages (from docker-compose) (5.4.1)
    Requirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.7.0)
    Requirement already satisfied: docker[ssh]>=5 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (6.0.0)
    Requirement already satisfied: texttable<2,>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (1.6.4)
    Requirement already satisfied: websocket-client<1,>=0.32.0 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (0.59.0)
    Requirement already satisfied: jsonschema<4,>=2.5.1 in /usr/lib/python3/dist-packages (from docker-compose) (3.2.0)
    Requirement already satisfied: docopt<1,>=0.6.1 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (0.6.2)
    Requirement already satisfied: requests<3,>=2.20.0 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (2.28.1)
    Requirement already satisfied: python-dotenv<1,>=0.13.0 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (0.21.0)
    Requirement already satisfied: dockerpty<1,>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from docker-compose) (0.4.1)
    Requirement already satisfied: packaging>=14.0 in /usr/local/lib/python3.10/dist-packages (from docker[ssh]>=5->docker-compose) (21.3)
    Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (1.26.5)
    Requirement already satisfied: paramiko>=2.4.3 in /usr/local/lib/python3.10/dist-packages (from docker[ssh]>=5->docker-compose) (2.11.0)
    Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)
    Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (3.3)
    Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.20.0->docker-compose) (2.1.1)
    Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (2020.6.20)
    Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/lib/python3/dist-packages (from packaging>=14.0->docker[ssh]>=5->docker-compose) (2.4.7)
    Requirement already satisfied: bcrypt>=3.1.3 in /usr/lib/python3/dist-packages (from paramiko>=2.4.3->docker[ssh]>=5->docker-compose) (3.2.0)
    Requirement already satisfied: pynacl>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from paramiko>=2.4.3->docker[ssh]>=5->docker-compose) (1.5.0)
    Requirement already satisfied: cryptography>=2.5 in /usr/lib/python3/dist-packages (from paramiko>=2.4.3->docker[ssh]>=5->docker-compose) (3.4.8)
    Requirement already satisfied: cffi>=1.4.1 in /usr/local/lib/python3.10/dist-packages (from pynacl>=1.0.1->paramiko>=2.4.3->docker[ssh]>=5->docker-compose) (1.15.1)
    Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko>=2.4.3->docker[ssh]>=5->docker-compose) (2.21)
    WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 341k 0 341k 0 0 518k 0 --:–:-- --:–:-- --:–:-- 1251k
    [Unit]
    Wants=network-online.target
    After=network-online.target
    Wants=docker.service
    After=docker.service

This prevents us hitting restart rate limits and ensures we keep restarting

indefinitely.

StartLimitInterval=0
[Service]
Type=forking
TimeoutStartSec=infinity
TimeoutStopSec=16min
ExecStart=/media/ssd/umbrel/scripts/start
ExecStop=/media/ssd/umbrel/scripts/stop
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=umbrel startup
RemainAfterExit=yes
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Skipping status update when not on Umbrel OS

============ CONFIGURING =============
========= UMBREL (mainnet) ===========

Generating auth credentials
Generating Tor password
Unable to find image ‘getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a’ locally
docker.io/getumbrel/tor@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a: Pulling from getumbrel/tor
461246efe0a7: Pulling fs layer
c8bc27c5e55c: Pulling fs layer
472ce9feeded: Pulling fs layer
461246efe0a7: Download complete
472ce9feeded: Verifying Checksum
472ce9feeded: Download complete
461246efe0a7: Pull complete
c8bc27c5e55c: Verifying Checksum
c8bc27c5e55c: Download complete
c8bc27c5e55c: Pull complete
472ce9feeded: Pull complete
Digest: sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
Status: Downloaded newer image for getumbrel/tor@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
Configuring permissions…
Configuration successful
You can now start Umbrel by running:
sudo ./scripts/start

============= STARTING ===============
============== UMBREL ================

Setting environment variables…
Starting karen…
Starting status monitors…
Starting memory monitor…
Starting backup monitor…
Starting decoy backup trigger…
Starting Docker services…
Creating network “umbrel_main_network” with the default driver
Pulling dashboard (getumbrel/dashboard:v0.5.8@sha256:9cfb822da25eee75ed0d74525b7864e0068b1f21edde5ad1c01c9347d24b34b1)…
docker.io/getumbrel/dashboard@sha256:9cfb822da25eee75ed0d74525b7864e0068b1f21edde5ad1c01c9347d24b34b1: Pulling from getumbrel/dashboard
4be315f6562f: Pull complete
96866e173b1b: Pull complete
314d33570bef: Pull complete
2144fa0b6cd5: Pull complete
3c2fcd160641: Pull complete
4e5d0f2a6b1f: Pull complete
b2f47a740e86: Pull complete
Digest: sha256:9cfb822da25eee75ed0d74525b7864e0068b1f21edde5ad1c01c9347d24b34b1
Status: Downloaded newer image for getumbrel/dashboard@sha256:9cfb822da25eee75ed0d74525b7864e0068b1f21edde5ad1c01c9347d24b34b1
Pulling manager (getumbrel/manager:v0.5.3@sha256:69caf866f5eb471789726a4584c5dd74eabc34e4b31ca5c846ad26424a7eb534)…
docker.io/getumbrel/manager@sha256:69caf866f5eb471789726a4584c5dd74eabc34e4b31ca5c846ad26424a7eb534: Pulling from getumbrel/manager
4be315f6562f: Already exists
96866e173b1b: Already exists
314d33570bef: Already exists
2144fa0b6cd5: Already exists
3c2fcd160641: Already exists
4826bd5ffcf0: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:69caf866f5eb471789726a4584c5dd74eabc34e4b31ca5c846ad26424a7eb534
Status: Downloaded newer image for getumbrel/manager@sha256:69caf866f5eb471789726a4584c5dd74eabc34e4b31ca5c846ad26424a7eb534
Pulling nginx (nginx:1.17.8@sha256:380eb808e2a3b0dd954f92c1cae2f845e6558a15037efefcabc5b4e03d666d03)…
docker.io/library/nginx@sha256:380eb808e2a3b0dd954f92c1cae2f845e6558a15037efefcabc5b4e03d666d03: Pulling from library/nginx
68ced04f60ab: Pull complete
c4039fd85dcc: Pull complete
c16ce02d3d61: Pull complete
Digest: sha256:380eb808e2a3b0dd954f92c1cae2f845e6558a15037efefcabc5b4e03d666d03
Status: Image is up to date for nginx@sha256:380eb808e2a3b0dd954f92c1cae2f845e6558a15037efefcabc5b4e03d666d03
Pulling auth (getumbrel/auth-server:v0.5.1@sha256:afcd9065eab02f98ee6bf705045170a4b385fb5f81e3b168bb92ffb8ac7a1760)…
docker.io/getumbrel/auth-server@sha256:afcd9065eab02f98ee6bf705045170a4b385fb5f81e3b168bb92ffb8ac7a1760: Pulling from getumbrel/auth-server
ac2fb615420c: Pull complete
69afbd4475ec: Pull complete
102a77eae8b4: Pull complete
6ce783be13c6: Pull complete
6ae4be244306: Pull complete
f60ad2c61276: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:afcd9065eab02f98ee6bf705045170a4b385fb5f81e3b168bb92ffb8ac7a1760
Status: Downloaded newer image for getumbrel/auth-server@sha256:afcd9065eab02f98ee6bf705045170a4b385fb5f81e3b168bb92ffb8ac7a1760
Creating manager …
Creating auth … error
Creating tor_proxy …
Creating dashboard …
ERROR: for auth Cannot create container for service auth: Conflict. The container name “/auth” is already in use by container “d93921e3838c1efed678896a081d81ff14305e04b16899df10b9b9adfb756065”. You have to remove (or rename) that containerCreating tor_proxy … error
ERROR: for tor_proxy Cannot create container for service tor_proxy: Conflict. The container name “/tor_proxy” is already in use by container "2f3d0f87225d59517Creating dashboard … error
that container to be able to reuse that name.
Creating manager … done
he container name “/dashboard” is already in use by container “fa51252ac89bffc789186844a64d48ebd04230461c03215a38ad4971eb640840”. You have to remove (or rename) that container to be able to reuse that name.
ERROR: for auth Cannot create container for service auth: Conflict. The container name “/auth” is already in use by container “d93921e3838c1efed678896a081d81ff14305e04b16899df10b9b9adfb756065”. You have to remove (or rename) that container to be able to reuse that name.
ERROR: for tor_proxy Cannot create container for service tor_proxy: Conflict. The container name “/tor_proxy” is already in use by container “2f3d0f87225d59517cbf588a52b681e01a85a5a9084c41d54d7d97643f438fc7”. You have to remove (or rename) that container to be able to reuse that name.
ERROR: for dashboard Cannot create container for service dashboard: Conflict. The container name “/dashboard” is already in use by container “fa51252ac89bffc789186844a64d48ebd04230461c03215a38ad4971eb640840”. You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.
Failed to start containers
Skipping status update when not on Umbrel OS

Thx for your help

I think thats not the Solution right?