[ Solved ] Openhabian : Won't install .. git repository on the public internet is not reachable

Thank you.

What is the indicator that the Internet connection is not stable?

I am using a 4G LTE router - so I get good bandwidth but, I suspect, sometimes high latency or issues around establishing links to websites etc.

Code fences … I thought I had used a code fence. I read the instructions on this website and it said to use triple quotes or … and I did that. What did I do wrong?

Code fences use backticks ```

```
Sandwich code here
```

It should be possible to select install from a local download copy, without trying to fetch resources. I don’t know how you do that with openhabian.

Read and follow the debug guide.
Use the 1.6 alpha image only.

1 Like

openhabian also uses Debian based package management.
That means if one examines the content of the openhabian scripts all the packages could be installed manually following the scripts content.

Your issue seems to be related to:
Updating repositories and upgrading installed packages... Rebooting to reconfigure kernel ...
if you look at the initial install script (first-boot.bash) and look at the code here: https://github.com/openhab/openhabian/blob/5045ee9d83c73c09827f1942caff21ccb22377a5/build-image/first-boot.bash#L143
and the changes here:
https://github.com/openhab/openhabian/pull/1072/commits/88db07dbf0847f31fb7c148384e1c753e83a0c1b

you will realize the changes are not part of the 1.6 Alpha release :slight_smile:
So you have two options
1- Compile the openhabian image yourself with the latest code on Github
2- Use the first-boot.bash file and update the file in the /boot partition of your SD card using another system

I did both options but eventually went with #1 as i wanted the latest release.

Btw, there is a Python not installed error. That seems to come from here:

https://github.com/openhab/openhabian/blob/c4d2e8e02869a249a00ac96432d0aecd822d3683/functions/system.bash#L92

Good luck.

OK. Thank you … but this is now looking way too complex for me to tackle in the time I have available to work on this.

Is my root cause that I bought the wrong version of a Raspberry pi, and should have gone for a earlier, more basic version? What version of Pi has a good probability of one-stop-instal?

Honestly, I would rather spend another £30 buying a downgrade pi than to start compiling code from source.

I have now re-run the instal with the installer set to verbose logging … and I am seeing a lot of stuff like …

Temporary failure resolving ‘raspbian.raspberrypi.org

Your main problem is

Ensure your RPi has proper Internet connectivity first.
When it’s there, latest openHABian code will be used and install will probably proceed.

In terms of image, you could also any of the latest image builds such as from https://github.com/openhab/openhabian/actions/runs/233360023.

FWIW, the image is just a “boot loader” that clones latest openHABian code from the Github repo, then continues to install from there, so either method should get you the latest version.

You don’t.
We’re working on providing that capability but haven’t finished it so far.

1 Like

I keep trying different things without success. I am confident about my Internet link in general - sufficient bandwidth to do continual video conferencing). When I try to access those repositories from a different computer I connect with them instantly. I have the RPi plugged directly into the router using a cable.

I read in an old post ( https://www.raspberrypi.org/forums/viewtopic.php?t=17016 ) that with this error message I should maybe edit /etc/resolv.conf to add the google nameserver. Does that sound like a reasonable idea?

I don’t know how I can edit the downloaded image to make that change to /etc/resolv.conf before booting the RPi and letting it run its instal.

At least it shouldn’t do harm if done right. But you need to systematically approach this instead of shooting at the dark:
Login, try pinging internet addresses, try to resolve some DNS names (host ...).
Check your router for filters, too.

Is there any way of stopping the Openhabian instal script from running whilst I am trying to debug this internet connection. Although I can log into the RPi, each time I try to type something … it gets interupted by the batch script running.

If I ignore that and keep typing ‘host raspbian.rasberrypi.org’ … I instantly get the response that the IP address is 93.93.128.193

when I Ping that IP I see about 100ms, for 64 bytes

Also - I set the RPi to be in the DMZ for my router - so should not have any ports blocked at all.

I started again with the image at https://github.com/openhab/openhabian/actions/runs/233360023

Not long after it starts … I first got a message saying everything was ok … then the instal script started again and I got a: /boot/webserver.bash: no such file or directory :frowning:

Which RPi should I buy that would give a high confidence of easy installation?

What you probably see on logging in is the end of the logfile being displayed. You can hit Ctrl-C, that should get you into shell.

Where do you get that? On the main console ? Secondary console (via remote login) ? When you access via web ? What do you mean by “started again” ? One reboot inbetween is normal.
The webserver message should only appear when NOT everything was ok on first install run.
As explained in the debug guide and the installation doc set debugmode=maximum in /etc/openhabian.conf BEFORE first boot. Retrieve the logfile from /boot/first-boot.log and post it here.

They don’t make a difference w.r.t. ease of installation.

So I re-flashed the sd card … then set debugmode=maximum.

Installation is still running, and I see lots of errors

The first-boot.log starts:

2020-08-20_11:47:59_BST [openHABian] Starting the openHABian initial setup.
2020-08-20_11:47:59_BST [openHABian] Storing configuration... OK
2020-08-20_11:48:00_BST [openHABian] Enable maximum debugging output
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-08-20_11:48:00_BST [openHABian] Starting webserver with installation log... '
2020-08-20_11:48:00_BST [openHABian] Starting webserver with installation log... ++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash start
+ sleep 5
++ ps -ef
++ pgrep python3
+ isWebRunning=661
+ [[ -n 661 ]]
+ echo OK
OK
+ userdef=openhabian
+ is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ userdef=pi
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-08-20_11:48:05_BST [openHABian] Changing default username and password... '
2020-08-20_11:48:05_BST [openHABian] Changing default username and password... + [[ -z x ]]
+ id pi
+ id openhabian
+ usermod -l openhabian pi
+ usermod -m -d /home/openhabian openhabian
+ groupmod -n openhabian pi
+ chpasswd
+ echo OK
OK
+ echo 'watch cat /boot/first-boot.log'
+ [[ -z '' ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-08-20_11:48:12_BST [openHABian] Setting up Ethernet connection... '
2020-08-20_11:48:12_BST [openHABian] Setting up Ethernet connection... + grep -qs up /sys/class/net/eth0/operstate
+ echo OK
OK
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-08-20_11:48:12_BST [openHABian] Ensuring network connectivity... '
2020-08-20_11:48:12_BST [openHABian] Ensuring network connectivity... + tryUntil 'ping -c1 www.example.com &> /dev/null || curl --silent --head http://www.example.com |& grep -qs '\''HTTP/1.1 200 OK'\''' 30 1
+ local cmd
+ local attempts
+ local interval
+ cmd='ping -c1 www.example.com &> /dev/null || curl --silent --head http://www.example.com |& grep -qs '\''HTTP/1.1 200 OK'\'''
+ attempts=30
+ interval=1
+ [[ 30 -le 0 ]]
+ cond_echo '\nexecuting ping -c1 www.example.com &> /dev/null || curl --silent --head http://www.example.com |& grep -qs '\''HTTP/1.1 200 OK'\'' \c'
+ [[ -z 1 ]]
++ eval 'ping -c1 www.example.com &> /dev/null || curl --silent --head http://www.example.com |& grep -qs '\''HTTP/1.1 200 OK'\'''
+++ ping -c1 www.example.com
+++ curl --silent --head http://www.example.com
+++ grep -qs 'HTTP/1.1 200 OK'
+ [[ '' -eq 0 ]]
+ break
+ [[ -z 1 ]]
+ return 30
+ echo OK
OK
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:23:46_BST [openHABian] Waiting for dpkg/apt to get ready... '
2020-09-11_18:23:46_BST [openHABian] Waiting for dpkg/apt to get ready... + wait_for_apt_to_be_ready
+ local attempts
+ local interval
+ local pid
+ attempts=10
+ interval=1
+ [[ 10 -le 0 ]]
+ pid=848
+ apt-get update
+++ tail --pid=848 -f /dev/null
++ eval ''
+ [[ '' -eq 0 ]]
+ return 0
+ echo OK
OK
++ dpkg -s raspberrypi-kernel
++ grep 'Version:[[:space:]]'
+ firmwareBefore='Version: 1.20200819-1'
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:24:06_BST [openHABian] Updating repositories and upgrading installed packages... '
2020-09-11_18:24:06_BST [openHABian] Updating repositories and upgrading installed packages... + apt-get install --fix-broken --yes
+++ apt-get --yes upgrade
++ eval ''
+ [[ '' -eq 100 ]]
++ grep 'Version:[[:space:]]'
++ dpkg -s raspberrypi-kernel
+ [[ Version: 1.20200819-1 != \V\e\r\s\i\o\n\:\ \1\.\2\0\2\0\0\8\1\9\-\1 ]]
+ echo OK
OK
++ command -v python3
+ [[ -x /usr/bin/python3 ]]
+ bash /boot/webserver.bash reinsure_running
+ dpkg -s git
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:24:08_BST [openHABian] Installing git package... '
2020-09-11_18:24:08_BST [openHABian] Installing git package... + apt-get install --yes git
+ echo FAILED
FAILED
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:25:10_BST [openHABian] Updating myself from https://github.com/openhab/openhabian, master branch... '
2020-09-11_18:25:10_BST [openHABian] Updating myself from https://github.com/openhab/openhabian, master branch... + type openhabian_update
+ openhabian_update
+ echo FAILED
FAILED
++ timestamp
++ date +%F_%T_%Z
+ echo '2020-09-11_18:25:10_BST [openHABian] The git repository on the public internet is not reachable.'
2020-09-11_18:25:10_BST [openHABian] The git repository on the public internet is not reachable.
++ timestamp
++ date +%F_%T_%Z
+ echo '2020-09-11_18:25:10_BST [openHABian] We will continue trying to get your system installed, but this is not guaranteed to work.'
2020-09-11_18:25:10_BST [openHABian] We will continue trying to get your system installed, but this is not guaranteed to work.
+ ln -sfn /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config
++ timestamp
++ date +%F_%T_%Z
+ echo '2020-09-11_18:25:10_BST [openHABian] Starting execution of '\''openhabian-config unattended'\''... OK'
2020-09-11_18:25:10_BST [openHABian] Starting execution of 'openhabian-config unattended'... OK
+ openhabian-config unattended
2020-09-11_18:25:10_BST [openHABian] Checking for root privileges... OK
+ export UNATTENDED SILENT DEBUGMAX INTERACTIVE
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/backup.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/config.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/ext-storage.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/find.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/helpers.bash
++ ESC='\033['
++ COL_DEF='\033[39;49;00m'
++ COL_RED='\033[31;01m'
++ COL_GREEN='\033[32;01m'
++ COL_YELLOW='\033[33;01m'
++ COL_BLUE='\033[34;01m'
++ COL_MAGENTA='\033[35;01m'
++ COL_CYAN='\033[36;01m'
++ COL_LGRAY='\033[37;01m'
++ COL_DGRAY='\033[90;01m'
++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/influxdb+grafana.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/java-jre.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/menu.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/nodejs-apps.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhab.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/openhabian.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/packages.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/passwords.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/system.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/vpn.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/wifi.bash
+ for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash
+ source /opt/openhabian/functions/zram.bash
++ pwd
+ OLDWD=/
+ cd /opt
+ config_ipv6
+ local aptConf
+ local sysctlConf
+ aptConf=/etc/apt/apt.conf/S90force-ipv4
+ sysctlConf=/etc/sysctl.d/99-sysctl.conf
+ [[ enable == \d\i\s\a\b\l\e ]]
+ [[ enable == \e\n\a\b\l\e ]]
+ grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf
+ [[ -n 1 ]]
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ wait_for_apt_to_finish_update
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:25:10_BST [openHABian] Updating Linux package information... '
2020-09-11_18:25:10_BST [openHABian] Updating Linux package information... + [[ -z '' ]]
+ apt_update
+ PID_APT=916
+ tail --pid=916 -f /dev/null
+ apt-get update
+ echo OK
OK
+ load_create_config
+ [[ -f /etc/openhabian.conf ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:25:29_BST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... '
2020-09-11_18:25:29_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... + source /etc/openhabian.conf
++ hostname=openhab
++ username=openhabian
++ userpw=openhabian
++ timeserver=0.pool.ntp.org
++ locales='en_US.UTF-8 de_DE.UTF-8'
++ system_default_locale=en_US.UTF-8
++ wifi_ssid=
++ wifi_psk=
++ wifi_country=
++ ipv6=enable
++ repositoryurl=https://github.com/openhab/openhabian
++ clonebranch=master
++ debugmode=maximum
++ java_opt=Zulu8-32
+ echo OK
OK
+ change_swapsize
+ is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
+ local free
+ local minFree
+ local swap
+ local totalMemory
++ grep MemTotal /proc/meminfo
++ awk '{print $2}'
+ totalMemory=1912004
+ [[ -z 1912004 ]]
+ swap=3824008
+ minFree=7648016
++ df -hk /
++ awk '/dev/ { print $4 }'
+ free=57327408
+ [[ 57327408 -ge 7648016 ]]
+ size=3824008
+ (( size/=1024 ))
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:25:30_BST [openHABian] Adjusting swap size to 3734 MB... '
2020-09-11_18:25:30_BST [openHABian] Adjusting swap size to 3734 MB... + cond_redirect dphys-swapfile swapoff
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'

$ dphys-swapfile swapoff 
+ dphys-swapfile swapoff
+ return 0
+ cond_redirect sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3734|g' /etc/dphys-swapfile
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3734|g /etc/dphys-swapfile \033[39;49;00m'

$ sed -i s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3734|g /etc/dphys-swapfile 
+ sed -i 's|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=3734|g' /etc/dphys-swapfile
+ return 0
+ cond_redirect dphys-swapfile swapon
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dphys-swapfile swapon \033[39;49;00m'

$ dphys-swapfile swapon 
+ dphys-swapfile swapon
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ timezone_setting
+ [[ -n '' ]]
+ [[ -n '' ]]
++ timestamp
++ date +%F_%T_%Z
+ echo '2020-09-11_18:25:30_BST [openHABian] Beginning setup of timezone based on IP geolocation... OK'
2020-09-11_18:25:30_BST [openHABian] Beginning setup of timezone based on IP geolocation... OK
+ dpkg -s python3 python3-pip python3-wheel python3-setuptools
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:25:30_BST [openHABian] Installing Python for needed packages... '
2020-09-11_18:25:30_BST [openHABian] Installing Python for needed packages... + cond_redirect apt-get install --yes python3 python3-pip python3-wheel python3-setuptools
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes python3 python3-pip python3-wheel python3-setuptools \033[39;49;00m'

$ apt-get install --yes python3 python3-pip python3-wheel python3-setuptools 
+ apt-get install --yes python3 python3-pip python3-wheel python3-setuptools
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.7.3-1).
python3 set to manually installed.
The following additional packages will be installed:
  dh-python gir1.2-glib-2.0 libexpat1-dev libgirepository-1.0-1 libpython3-dev
  libpython3.7-dev python-pip-whl python3-asn1crypto python3-cffi-backend
  python3-crypto python3-cryptography python3-dbus python3-dev
  python3-distutils python3-entrypoints python3-gi python3-keyring
  python3-keyrings.alt python3-lib2to3 python3-secretstorage python3-xdg
  python3.7-dev
Suggested packages:
  python-crypto-doc python-cryptography-doc python3-cryptography-vectors
  python-dbus-doc python3-dbus-dbg gnome-keyring libkf5wallet-bin
  gir1.2-gnomekeyring-1.0 python-secretstorage-doc python-setuptools-doc
The following NEW packages will be installed:
  dh-python gir1.2-glib-2.0 libexpat1-dev libgirepository-1.0-1 libpython3-dev
  libpython3.7-dev python-pip-whl python3-asn1crypto python3-cffi-backend
  python3-crypto python3-cryptography python3-dbus python3-dev
  python3-distutils python3-entrypoints python3-gi python3-keyring
  python3-keyrings.alt python3-lib2to3 python3-pip python3-secretstorage
  python3-setuptools python3-wheel python3-xdg python3.7-dev
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.4 MB of archives.
After this operation, 84.3 MB of additional disk space will be used.
Err:1 http://archive.raspberrypi.org/debian buster/main armhf python-pip-whl all 18.1-5+rpt1
  Temporary failure resolving 'archive.raspberrypi.org'
Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-lib2to3 all 3.7.3-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:3 http://archive.raspberrypi.org/debian buster/main armhf python3-pip all 18.1-5+rpt1
  Temporary failure resolving 'archive.raspberrypi.org'
Err:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-distutils all 3.7.3-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf dh-python all 3.20190308
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf libgirepository-1.0-1 armhf 1.58.3-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf gir1.2-glib-2.0 armhf 1.58.3-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:8 http://raspbian.raspberrypi.org/raspbian buster/main armhf libexpat1-dev armhf 2.2.6-2+deb10u1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:9 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpython3.7-dev armhf 3.7.3-2+deb10u2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:10 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpython3-dev armhf 3.7.3-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:11 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-asn1crypto all 0.24.0-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:12 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-cffi-backend armhf 1.12.2-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:13 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-crypto armhf 2.6.1-9+b1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:14 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-cryptography armhf 2.6.1-3+deb10u2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:15 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-dbus armhf 1.2.8-3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:16 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3.7-dev armhf 3.7.3-2+deb10u2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:17 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-dev armhf 3.7.3-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:18 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-entrypoints all 0.3-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:19 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-gi armhf 3.30.4-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:20 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-secretstorage all 2.3.1-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:21 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-keyring all 17.1.1-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:22 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-keyrings.alt all 3.1.1-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:23 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-setuptools all 40.8.0-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:24 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-wheel all 0.32.3-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:25 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-xdg all 0.25-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3-stdlib-extensions/python3-lib2to3_3.7.3-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3-stdlib-extensions/python3-distutils_3.7.3-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/d/dh-python/dh-python_3.20190308_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gobject-introspection/libgirepository-1.0-1_1.58.3-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gobject-introspection/gir1.2-glib-2.0_1.58.3-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/e/expat/libexpat1-dev_2.2.6-2+deb10u1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3.7/libpython3.7-dev_3.7.3-2+deb10u2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3-defaults/libpython3-dev_3.7.3-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://archive.raspberrypi.org/debian/pool/main/p/python-pip/python-pip-whl_18.1-5+rpt1_all.deb  Temporary failure resolving 'archive.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/a/asn1crypto/python3-asn1crypto_0.24.0-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-cffi/python3-cffi-backend_1.12.2-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-crypto/python3-crypto_2.6.1-9+b1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-cryptography/python3-cryptography_2.6.1-3+deb10u2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/d/dbus-python/python3-dbus_1.2.8-3_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3.7/python3.7-dev_3.7.3-2+deb10u2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3-defaults/python3-dev_3.7.3-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/e/entrypoints/python3-entrypoints_0.3-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pygobject/python3-gi_3.30.4-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-secretstorage/python3-secretstorage_2.3.1-2_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-keyring/python3-keyring_17.1.1-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/k/keyrings.alt/python3-keyrings.alt_3.1.1-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://archive.raspberrypi.org/debian/pool/main/p/python-pip/python3-pip_18.1-5+rpt1_all.deb  Temporary failure resolving 'archive.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/python-setuptools/python3-setuptools_40.8.0-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/w/wheel/python3-wheel_0.32.3-2_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/pyxdg/python3-xdg_0.25-5_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
+ return 100
+ echo FAILED
FAILED
+ return 1
+ setup_ntp enable
+ running_in_docker
+ grep -q 'docker\|lxc' /proc/1/cgroup
+ is_raspbian
+ [[ '' == \r\a\s\p\b\i\a\n ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Raspbian ]]
+ return 0
+ [[ enable == \e\n\a\b\l\e ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:18_BST [openHABian] Enabling time synchronization using NTP... '
2020-09-11_18:31:18_BST [openHABian] Enabling time synchronization using NTP... + cond_redirect cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ \033[39;49;00m'

$ cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/ 
+ cp /opt/openhabian/includes/50-timesyncd.conf /lib/dhcpcd/dhcpcd-hooks/
+ return 0
+ cond_redirect timedatectl set-ntp true
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ timedatectl set-ntp true \033[39;49;00m'

$ timedatectl set-ntp true 
+ timedatectl set-ntp true
+ return 0
+ echo OK
OK
+ locale_setting
+ local locale
+ dpkg -s locales
+ [[ -n '' ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:18_BST [openHABian] Setting locale based on openhabian.conf... '
2020-09-11_18:31:18_BST [openHABian] Setting locale based on openhabian.conf... + is_ubuntu
+ [[ '' == \u\b\u\n\t\u ]]
++ cat /etc/os-release
+ [[ PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ Ubuntu ]]
+ return 1
+ for loc in $locales
+ sed -i '/^#[[:space:]]en_US.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ for loc in $locales
+ sed -i '/^#[[:space:]]de_DE.UTF-8/s/^#[[:space:]]//' /etc/locale.gen
+ cond_redirect locale-gen
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ locale-gen \033[39;49;00m'

$ locale-gen 
+ locale-gen
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.
+ return 0
+ cond_redirect dpkg-reconfigure --frontend=noninteractive locales
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dpkg-reconfigure --frontend=noninteractive locales \033[39;49;00m'

$ dpkg-reconfigure --frontend=noninteractive locales 
+ dpkg-reconfigure --frontend=noninteractive locales
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.
+ return 0
++ grep '^[[:space:]]*LANG=' /etc/default/locale
++ sed 's|LANG=||g'
+ locale=en_GB.UTF-8
+ cond_redirect update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 \033[39;49;00m'

$ update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 
+ update-locale LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8
+ return 0
+ echo 'OK (reboot required)'
OK (reboot required)
+ [[ -n '' ]]
+ hostname_change
+ running_in_docker
+ grep -q 'docker\|lxc' /proc/1/cgroup
+ local newHostname
+ [[ -n '' ]]
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:56_BST [openHABian] Setting hostname of the base system based on openhabian.conf... '
2020-09-11_18:31:56_BST [openHABian] Setting hostname of the base system based on openhabian.conf... + newHostname=openhab
+ cond_redirect hostnamectl set-hostname openhab
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ hostnamectl set-hostname openhab \033[39;49;00m'

$ hostnamectl set-hostname openhab 
+ hostnamectl set-hostname openhab
+ return 0
+ sed -i 's|127.0.1.1.*$|127.0.1.1 openhab|g' /etc/hosts
+ echo OK
OK
+ [[ -n '' ]]
+ memory_split
+ is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:56_BST [openHABian] Setting the GPU memory split down to 16MB for headless system... '
2020-09-11_18:31:56_BST [openHABian] Setting the GPU memory split down to 16MB for headless system... + grep -qs '^[[:space:]]*gpu_mem' /boot/config.txt
+ echo gpu_mem=16
+ echo OK
OK
+ enable_rpi_audio
+ is_pi
+ is_pizero
+ [[ '' == \p\i\0 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pizerow
+ [[ '' == \p\i\0\w ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pione
+ [[ '' == \p\i\1 ]]
+ grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmone
+ [[ '' == \c\m\1 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pitwo
+ [[ '' == \p\i\2 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithree
+ [[ '' == \p\i\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthree
+ [[ '' == \c\m\3 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pithreeplus
+ [[ '' == \p\i\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_cmthreeplus
+ [[ '' == \c\m\3\+ ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo
+ return 1
+ is_pifour
+ [[ '' == \p\i\4 ]]
+ grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
+ return 0
+ return 0
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:56_BST [openHABian] Enabling Audio output... '
2020-09-11_18:31:56_BST [openHABian] Enabling Audio output... + grep -qs '^[[:space:]]*dtparam=audio' /boot/config.txt
+ cond_redirect sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt \033[39;49;00m'

$ sed -i s|dtparam=audio.*$|dtparam=audio=on|g /boot/config.txt 
+ sed -i 's|dtparam=audio.*$|dtparam=audio=on|g' /boot/config.txt
+ return 0
+ cond_redirect adduser openhabian audio
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ adduser openhabian audio \033[39;49;00m'

$ adduser openhabian audio 
+ adduser openhabian audio
The user `openhabian' is already a member of `audio'.
+ return 0
+ echo OK
OK
+ basic_packages
++ timestamp
++ date +%F_%T_%Z
+ echo -n '2020-09-11_18:31:56_BST [openHABian] Installing basic can'\''t-be-wrong packages (screen, vim, ...)... '
2020-09-11_18:31:56_BST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... ++ command -v raspi-config
+ [[ -x /usr/bin/raspi-config ]]
+ cond_redirect apt-get purge --yes raspi-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get purge --yes raspi-config \033[39;49;00m'

$ apt-get purge --yes raspi-config 
+ apt-get purge --yes raspi-config
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  triggerhappy
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
  raspi-config*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 116 kB disk space will be freed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39891 files and directories currently installed.)

Removing raspi-config (20200817) ...

(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39883 files and directories currently installed.)

Purging configuration files for raspi-config (20200817) ...

Processing triggers for systemd (241-7~deb10u4+rpi1) ...

+ return 0
+ cond_redirect apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping \033[39;49;00m'

$ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping 
+ apt-get install --yes screen vim nano mc vfu bash-completion htop curl wget multitail git util-linux bzip2 zip unzip xz-utils software-properties-common man-db whiptail acl usbutils dirmngr arping
Reading package lists...
Building dependency tree...
Reading state information...
bash-completion is already the newest version (1:2.8-6).
bzip2 is already the newest version (1.0.6-9.2~deb10u1).
bzip2 set to manually installed.
curl is already the newest version (7.64.0-4+deb10u1).
dirmngr is already the newest version (2.2.12-1+rpi1+deb10u1).
htop is already the newest version (2.2.0-1).
man-db is already the newest version (2.8.5-2).
nano is already the newest version (3.2-3).
unzip is already the newest version (6.0-23+deb10u1).
usbutils is already the newest version (1:010-3).
util-linux is already the newest version (2.33.1-0.1).
wget is already the newest version (1.20.1-1.1).
wget set to manually installed.
whiptail is already the newest version (0.52.20-8).
whiptail set to manually installed.
xz-utils is already the newest version (5.2.4-1).
xz-utils set to manually installed.
The following package was automatically installed and is no longer required:
  triggerhappy
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git-man libappstream4
  libcurl3-gnutls liberror-perl libgirepository-1.0-1 libglib2.0-bin
  libgstreamer1.0-0 libncurses5 libnet1 libpackagekit-glib2-18 libpcap0.8
  libstemmer0d libutempter0 libyaml-0-2 mc-data packagekit packagekit-tools
  python3-dbus python3-distro-info python3-gi python3-pycurl
  python3-software-properties unattended-upgrades vim-runtime
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn gstreamer1.0-tools arj catdvi
  | texlive-binaries dbview djvulibre-bin epub-utils genisoimage gv
  imagemagick libaspell-dev links | w3m | lynx odt2txt poppler-utils
  python-boto python-tz xpdf | pdf-viewer appstream python-dbus-doc
  python3-dbus-dbg libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg
  byobu | screenie | iselect bsd-mailx default-mta | mail-transport-agent
  needrestart powermgmt-base ctags vim-doc vim-scripts
The following NEW packages will be installed:
  acl arping gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git git-man
  libappstream4 libcurl3-gnutls liberror-perl libgirepository-1.0-1
  libglib2.0-bin libgstreamer1.0-0 libncurses5 libnet1 libpackagekit-glib2-18
  libpcap0.8 libstemmer0d libutempter0 libyaml-0-2 mc mc-data multitail
  packagekit packagekit-tools python3-dbus python3-distro-info python3-gi
  python3-pycurl python3-software-properties screen software-properties-common
  unattended-upgrades vfu vim vim-runtime zip
0 upgraded, 36 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.8 MB of archives.
After this operation, 88.3 MB of additional disk space will be used.
Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf libstemmer0d armhf 0+svn585-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libutempter0 armhf 1.1.6-3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf screen armhf 4.6.2-3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf acl armhf 2.2.53-4
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf libnet1 armhf 1.1.6+dfsg-3.1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpcap0.8 armhf 1.8.1-6
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf arping armhf 2.19-6
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:8 http://raspbian.raspberrypi.org/raspbian buster/main armhf libgirepository-1.0-1 armhf 1.58.3-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:9 http://raspbian.raspberrypi.org/raspbian buster/main armhf gir1.2-glib-2.0 armhf 1.58.3-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:10 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpackagekit-glib2-18 armhf 1.1.12-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:11 http://raspbian.raspberrypi.org/raspbian buster/main armhf gir1.2-packagekitglib-1.0 armhf 1.1.12-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:12 http://raspbian.raspberrypi.org/raspbian buster/main armhf libcurl3-gnutls armhf 7.64.0-4+deb10u1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:13 http://raspbian.raspberrypi.org/raspbian buster/main armhf liberror-perl all 0.17027-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:14 http://raspbian.raspberrypi.org/raspbian buster/main armhf git-man all 1:2.20.1-2+deb10u3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:15 http://raspbian.raspberrypi.org/raspbian buster/main armhf git armhf 1:2.20.1-2+deb10u3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:16 http://raspbian.raspberrypi.org/raspbian buster/main armhf libyaml-0-2 armhf 0.2.1-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:17 http://raspbian.raspberrypi.org/raspbian buster/main armhf libappstream4 armhf 0.12.5-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:18 http://raspbian.raspberrypi.org/raspbian buster/main armhf libglib2.0-bin armhf 2.58.3-2+deb10u2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:19 http://raspbian.raspberrypi.org/raspbian buster/main armhf libgstreamer1.0-0 armhf 1.14.4-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:20 http://raspbian.raspberrypi.org/raspbian buster/main armhf libncurses5 armhf 6.1+20181013-2+deb10u2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:21 http://raspbian.raspberrypi.org/raspbian buster/main armhf mc-data all 3:4.8.22-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:22 http://raspbian.raspberrypi.org/raspbian buster/main armhf mc armhf 3:4.8.22-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:23 http://raspbian.raspberrypi.org/raspbian buster/main armhf multitail armhf 6.4.2-3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:24 http://raspbian.raspberrypi.org/raspbian buster/main armhf packagekit armhf 1.1.12-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:25 http://raspbian.raspberrypi.org/raspbian buster/main armhf packagekit-tools armhf 1.1.12-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:26 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-dbus armhf 1.2.8-3
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:27 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-distro-info all 0.21
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:28 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-gi armhf 3.30.4-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:29 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-pycurl armhf 7.43.0.2-0.1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:30 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-software-properties all 0.96.20.2-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:31 http://raspbian.raspberrypi.org/raspbian buster/main armhf software-properties-common all 0.96.20.2-2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:32 http://raspbian.raspberrypi.org/raspbian buster/main armhf unattended-upgrades all 1.11.2
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:33 http://raspbian.raspberrypi.org/raspbian buster/main armhf vfu armhf 4.16+repack-1
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:34 http://raspbian.raspberrypi.org/raspbian buster/main armhf vim-runtime all 2:8.1.0875-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:35 http://raspbian.raspberrypi.org/raspbian buster/main armhf vim armhf 2:8.1.0875-5
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:36 http://raspbian.raspberrypi.org/raspbian buster/main armhf zip armhf 3.0-11
  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/snowball/libstemmer0d_0+svn585-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libu/libutempter/libutempter0_1.1.6-3_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/s/screen/screen_4.6.2-3_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/a/acl/acl_2.2.53-4_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libn/libnet/libnet1_1.1.6+dfsg-3.1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libp/libpcap/libpcap0.8_1.8.1-6_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/a/arping/arping_2.19-6_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gobject-introspection/libgirepository-1.0-1_1.58.3-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gobject-introspection/gir1.2-glib-2.0_1.58.3-2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/packagekit/libpackagekit-glib2-18_1.1.12-5_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/p/packagekit/gir1.2-packagekitglib-1.0_1.1.12-5_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/c/curl/libcurl3-gnutls_7.64.0-4+deb10u1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libe/liberror-perl/liberror-perl_0.17027-2_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/git/git-man_2.20.1-2+deb10u3_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/git/git_2.20.1-2+deb10u3_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/liby/libyaml/libyaml-0-2_0.2.1-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/a/appstream/libappstream4_0.12.5-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/glib2.0/libglib2.0-bin_2.58.3-2+deb10u2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/gstreamer1.0/libgstreamer1.0-0_1.14.4-1_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/n/ncurses/libncurses5_6.1+20181013-2+deb10u2_armhf.deb  Temporary failure resolving 'raspbian.raspberrypi.org'
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/m/mc/mc-data_4.8.22-1_all.deb  Temporary failure resolving 'raspbian.raspberrypi.org'


As mentioned earlier there seems to be a problem resolving DNS names.
DNS name of raspian.raspberrypi.org cannot be resolved. Update of openhabian via https://github.com/openhab/openhabian did not work.
The only thing that seems to work is access to www.example.com.

This could have different reasons:
o No access to the Internet ( partially true as example.com seems to work )
o No DNS or pointing at a name server that is not working
o Ports blocked
o DNS blocker / filter

Right, DNS isn’t working hence Internet access from openHABian isn’t either.
Your DHCP server should assign a working DNS resolver but yours obviously doesn’t do.
Adding one to resolv.conf won’t help if the router doesn’t automatically do NAT.
You really need to fix your router setup.

Solved! Thank you for your help. Here is the solution …

I am using a 4G-LTE router for my internet connection (I am in a remote area).The device is a tp-link 300Mbps Wireless N 4G LTE Router, Model No. TL-MR6400.

I have used this for 18 months with laptops, mobile phones etc. without any issues.

Given the diagnostic advice above, I went looking for DHCP settings in the admin page of the modem. Indeed, there is a page for ‘DHCP’ settings, containing ‘optional’ fields for Primary DNS and Secondary DNS. I set these to point to Google DNS (8.8.8.8 and 8.8.8.4).

Install behaviour was immediately different. All of the errors noted above disapeared, and after about 2 hours the installation completed. I am now able to access the OpenHab setup page running on the RPi.

Not clear to me why I never had a problem before with other devices? But everything is good.

So thank you again for the support folks.

Most routers can be DNS resolvers themselves so try setting the primary to be your router address and keep Google as secondary.
Tick the solution please.

Thank you. I also changed the title to make it easier for others to find.