I have an issue with zone minder , whenever I start/restart the container it keeps updating files then it fails then runs the container , it takes around 20 minutes .
I get this
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/05_set_the_time.sh...
Setting the timezone to : Africa/Cairo
Current default time zone: 'Africa/Cairo'
Local time is now: Mon Aug 26 22:33:43 EET 2019.
Universal Time is now: Mon Aug 26 20:33:43 UTC 2019.
Date: Mon Aug 26 22:33:43 EET 2019
*** Running /etc/my_init.d/06_set_php_time.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Aug 26 22:33:44 010e2578b757 syslog-ng[33]: syslog-ng starting up; version='3.5.6'
Aug 26 22:33:44 010e2578b757 syslog-ng[33]: EOF on control channel, closing connection;
*** Running /etc/my_init.d/20_apt_update.sh...
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/iconnor/zoneminder-1.32/ubuntu xenial InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main Sources [192 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [68.5 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [136 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [429 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3518 B]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [924 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [328 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [579 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [9427 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1304 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6119 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [983 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7665 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 5347 kB in 5s (897 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
dh-python dpkg libapache2-mod-php7.1 libgd3 libglib2.0-0 php-apcu-bc php7.1
php7.1-cli php7.1-common php7.1-fpm php7.1-gd php7.1-json php7.1-mysql
php7.1-opcache php7.1-readline php7.3-common php7.3-mysql
python3-software-properties software-properties-common
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 9712 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libgd3 amd64 2.2.5-5.2+ubuntu16.04.1+deb.sury.org+1 [134 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.6 [2085 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu4.4 [1120 kB]
Err:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu4.4
Hash Sum mismatch
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.2 [73.9 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu4.4 [1120 kB]
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libgd3 amd64 2.2.5-5.2+ubuntu16.04.1+deb.sury.org+1
Connection timed out
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-gd amd64 7.1.31-1+ubuntu16.04.1+deb.sury.org+1 [27.1 kB]
Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 dh-python all 2.20151103ubuntu1.2
Connection timed out [IP: 91.189.88.162 80]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.9 [9452 B]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 dh-python all 2.20151103ubuntu1.2 [73.9 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 dh-python all 2.20151103ubuntu1.2 [73.9 kB]
Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-gd amd64 7.1.31-1+ubuntu16.04.1+deb.sury.org+1
Connection timed out
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-json amd64 7.1.31-1+ubuntu16.04.1+deb.sury.org+1 [17.2 kB]
Err:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.9
Connection timed out [IP: 91.189.88.162 80]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.9 [20.1 kB]
Err:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-json amd64 7.1.31-1+ubuntu16.04.1+deb.sury.org+1
Connection timed out
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-opcache amd64 7.1.31-1+ubuntu16.04.1+deb.sury.org+1 [143 kB]
Err:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.9
Connection timed out [IP: 91.189.88.162 80]