Can't install openHABian

Hi, I had openhab 2 installed but I decided change to openhab 3 with a clean setup, so I installed it with Raspberry Pi Imager and inserted the SD card into the Raspberry with Ethernet cable. But nothing happends.

I access with PuTTY and /home/openhabian folder is empty. I tried with sudo openhabian-config and throw the next log:

Checking for root privileges... OK
2022-08-17_18:51:19_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
/opt/openhabian/functions/openhabian.bash: line 12: git: command not found
/opt/openhabian/functions/openhabian.bash: line 13: git: command not found
/opt/openhabian/functions/openhabian.bash: line 14: git: command not found

What I am doing wrong?? I don`t remember any similar error when I did the same with the second version.

Looks like git is not installed.
Any problem with your internet connection ?

Which openhabian version have you installed ? I doubt that the current version is called version 3.

Yes, sorry, I mean Openhab 3. I installed this version: openhabian-pi-raspios64-202206272135-git852c09c-crcf79a8c6a.img.xz

After trying again, I see the next first-boot.log:

2022-04-04_15:41:57_BST [openHABian] Starting the openHABian initial setup.
2022-04-04_15:41:57_BST [openHABian] Storing configuration... OK
2022-04-04_15:41:58_BST [openHABian] Starting webserver with installation log... OK
2022-08-17_18:33:37_BST [openHABian] Changing default username and password... OK
2022-08-17_18:33:37_BST [openHABian] Setting up Ethernet connection... OK
2022-08-17_18:33:37_BST [openHABian] Ensuring network connectivity... OK
2022-08-17_18:33:37_BST [openHABian] Waiting for dpkg/apt to get ready... OK
2022-08-17_18:34:01_BST [openHABian] Updating repositories and upgrading installed packages... OK
2022-08-17_18:34:56_BST [openHABian] Installing git package... FAILED
2022-08-17_18:34:58_BST [openHABian] Updating myself from, openHAB3 branch... OK
2022-08-17_18:34:58_BST [openHABian] Starting execution of 'openhabian-config unattended'... OK
2022-08-17_18:34:58_BST [openHABian] Checking for root privileges... OK
2022-08-17_18:35:00_BST [openHABian] Updating Linux package information... OK
2022-08-17_18:35:08_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-08-17_18:35:08_BST [openHABian] Adjusting swap size to 1819 MB... OK (reboot required)
2022-08-17_18:35:10_BST [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2022-08-17_19:35:10_CEST [openHABian] Enabling time synchronization using NTP... OK
2022-08-17_19:35:10_CEST [openHABian] Setting locale based on openhabian.conf... FAILED (reconfigure locales)
2022-08-17_19:36:14_CEST [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2022-08-17_19:36:15_CEST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2022-08-17_19:36:15_CEST [openHABian] Enabling Audio output... OK
2022-08-17_19:36:15_CEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... FAILED (remove raspi-config)
2022-08-17_19:36:17_CEST [openHABian] Installing additional needed packages... FAILED
2022-08-17_19:36:20_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-08-17_19:36:20_CEST [openHABian] Adding slightly tuned vim configuration file to system... OK
2022-08-17_19:36:20_CEST [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
2022-08-17_19:36:20_CEST [openHABian] Applying miscellaneous system settings... OK
2022-08-17_19:36:20_CEST [openHABian] Installing FireMotD required packages (bc, sysstat, jq, moreutils)... FAILED
2022-08-17_19:36:23_CEST [openHABian] Fetching OpenJDK 11... FAILED
2022-08-17_19:36:25_CEST [openHABian] Installing OpenJDK 11... FAILED
2022-08-17_19:36:28_CEST [openHABian] Beginning install of latest openhab release (stable)... OK
2022-08-17_19:36:28_CEST [openHABian] Adding required keys to apt... OK
2022-08-17_19:36:28_CEST [openHABian] Installing selected openHAB3 version... FAILED
2022-08-17_19:36:40_CEST [openHABian] Getting initial openHAB configuration... SKIPPED (backup not found at /boot/
2022-08-17_19:36:40_CEST [openHABian] Activating the openHAB console on all interfaces... FAILED (sshHost)
2022-08-17_19:36:40_CEST [openHABian] Adding openHAB syntax to vim editor... OK
2022-08-17_19:36:42_CEST [openHABian] Adding openHAB syntax to nano editor... OK
2022-08-17_19:36:45_CEST [openHABian] Adding openHAB scheme to multitail... FAILED (remove default configuration)
2022-08-17_19:36:45_CEST [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... OK
2022-08-17_19:36:52_CEST [openHABian] Installing Samba... FAILED
2022-08-17_19:36:54_CEST [openHABian] Installing Frontail prerequsites (NodeJS)... FAILED

As you can see there are several items where the installation FAILED.
This first needs to be identified.
Best would be to follow the debug guide

That’s outdated. Use latest: Release openHABian v1.7.4b · openhab/openhabian · GitHub

Ok, I am gonna try. Thanks!