<div dir="ltr"><div class="gmail_quote"><div><div><div><div>steps that allowed me to successfully install mariadb-server</div><div>- put the following contents into the mariadb service unit file</div><div>#+BEGIN_SRC</div><div>[Service]</div><div>PrivateDevices=false</div><div>NoNewPrivileges=false</div><div><br></div><div>#+END_SRC</div><div>- install mariadb-server</div><div><br></div><div>example:</div><div>ozzloy:~/ $ sudo systemctl edit mariadb.service</div><div>ozzloy:~/ $ cat /etc/systemd/system/mariadb.service.d/override.conf</div><div>[Service]</div><div>PrivateDevices=false</div><div>NoNewPrivileges=false</div><div><br></div><div>ozzloy:~/ $ sudo apt-get install -y mariadb-server</div><div><br></div><div><br></div><div>* summary of actions</div><div>- attempted mariadb-server install fails without override.conf</div><div>- uninstall mariadb-server-10.1</div><div>- add mariadb systemd configuration</div><div>- clean install mariadb-server with override.conf in place ahead of time</div><div><br></div><div><br></div><div>* full output of terminal, broken into sections</div><div>##################################################</div><div>##################################################</div><div>** attempted mariadb-server install fails without override.conf</div><div>ozzloy:~/ $ sudo rm /etc/systemd/system/mariadb.service.d/override.conf</div><div>ozzloy:~/ $ sudo apt-get install -y mariadb-server                   [16:11:46]</div><div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>The following additional packages will be installed:</div><div>  galera-3 mariadb-server-10.1 mariadb-server-core-10.1 socat</div><div>Suggested packages:</div><div>  mariadb-test netcat-openbsd tinyca</div><div>The following NEW packages will be installed:</div><div>  galera-3 mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 socat</div><div>0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.</div><div>Need to get 0 B/11.8 MB of archives.</div><div>After this operation, 109 MB of additional disk space will be used.</div><div>Preconfiguring packages ...</div><div>Selecting previously unselected package galera-3.</div><div>(Reading database ... 228172 files and directories currently installed.)</div><div>Preparing to unpack .../galera-3_25.3.19-2_amd64.deb ...</div><div>Unpacking galera-3 (25.3.19-2) ...</div><div>Selecting previously unselected package mariadb-server-core-10.1.</div><div>Preparing to unpack .../mariadb-server-core-10.1_10.1.23-9+deb9u1_amd64.deb ...</div><div>Unpacking mariadb-server-core-10.1 (10.1.23-9+deb9u1) ...</div><div>Selecting previously unselected package socat.</div><div>Preparing to unpack .../socat_1.7.3.1-2+b1_amd64.deb ...</div><div>Unpacking socat (1.7.3.1-2+b1) ...</div><div>Selecting previously unselected package mariadb-server-10.1.</div><div>Preparing to unpack .../mariadb-server-10.1_10.1.23-9+deb9u1_amd64.deb ...</div><div>/var/lib/mysql: found previous version 10.1</div><div>Unpacking mariadb-server-10.1 (10.1.23-9+deb9u1) ...</div><div>Selecting previously unselected package mariadb-server.</div><div>Preparing to unpack .../mariadb-server_10.1.23-9+deb9u1_all.deb ...</div><div>Unpacking mariadb-server (10.1.23-9+deb9u1) ...</div><div>Setting up mariadb-server-core-10.1 (10.1.23-9+deb9u1) ...</div><div>Setting up socat (1.7.3.1-2+b1) ...</div><div>Setting up galera-3 (25.3.19-2) ...</div><div>Processing triggers for systemd (232-25) ...</div><div>Processing triggers for man-db (2.7.6.1-2) ...</div><div>Setting up mariadb-server-10.1 (10.1.23-9+deb9u1) ...</div><div>Job for mariadb.service failed because the control process exited with error code.</div><div>See "systemctl status mariadb.service" and "journalctl -xe" for details.</div><div>invoke-rc.d: initscript mysql, action "start" failed.</div><div>● mariadb.service - MariaDB database server</div><div>   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)</div><div>   Active: failed (Result: exit-code) since Wed 2017-07-05 16:12:24 PDT; 15ms ago</div><div>  Process: 22411 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=227/NO_NEW_PRIVILEGES)</div><div>  Process: 22319 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)</div><div>  Process: 22315 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)</div><div>  Process: 22312 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)</div><div> Main PID: 22411 (code=exited, status=227/NO_NEW_PRIVILEGES)</div><div><br></div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[1]: Starting MariaDB databas…..</div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[22411]: mariadb.service: Fai…nt</div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[1]: mariadb.service: Main pr…ES</div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[1]: Failed to start MariaDB …r.</div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[1]: mariadb.service: Unit en…e.</div><div>Jul 05 16:12:24 <a href="http://ozzloy.lifeafterking.org">ozzloy.lifeafterking.org</a> systemd[1]: mariadb.service: Failed …'.</div><div>Hint: Some lines were ellipsized, use -l to show in full.</div><div>dpkg: error processing package mariadb-server-10.1 (--configure):</div><div> subprocess installed post-installation script returned error exit status 1</div><div>dpkg: dependency problems prevent configuration of mariadb-server:</div><div> mariadb-server depends on mariadb-server-10.1 (>= 10.1.23-9+deb9u1); however:</div><div>  Package mariadb-server-10.1 is not configured yet.</div><div><br></div><div>dpkg: error processing package mariadb-server (--configure):</div><div> dependency problems - leaving unconfigured</div><div>Errors were encountered while processing:</div><div> mariadb-server-10.1</div><div> mariadb-server</div><div>E: Sub-process /usr/bin/dpkg returned an error code (1)</div><div>ozzloy:~/ $                                                          [16:12:25]</div><div>ozzloy:~/ $                                                          [16:12:30]</div><div>ozzloy:~/ $                                                          [16:12:30]</div><div>ozzloy:~/ $                                                          [16:12:30]</div><div>ozzloy:~/ $                                                          [16:12:31]</div><div>ozzloy:~/ $                                                          [16:12:31]</div><div>##################################################</div><div>##################################################</div><div>** uninstall mariadb-server-10.1</div><div>ozzloy:~/ $ sudo apt-get remove --autoremove -y mariadb-server-10.1  [16:12:31]</div><div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>The following packages will be REMOVED:</div><div>  galera-3 mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 socat</div><div>0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.</div><div>2 not fully installed or removed.</div><div>After this operation, 109 MB disk space will be freed.</div><div>(Reading database ... 228433 files and directories currently installed.)</div><div>Removing mariadb-server (10.1.23-9+deb9u1) ...</div><div>Removing mariadb-server-10.1 (10.1.23-9+deb9u1) ...</div><div>Removing galera-3 (25.3.19-2) ...</div><div>Removing mariadb-server-core-10.1 (10.1.23-9+deb9u1) ...</div><div>Removing socat (1.7.3.1-2+b1) ...</div><div>Processing triggers for man-db (2.7.6.1-2) ...</div><div>ozzloy:~/ $                                                          [16:12:44]</div><div>ozzloy:~/ $                                                          [16:12:45]</div><div>ozzloy:~/ $                                                          [16:12:45]</div><div>ozzloy:~/ $                                                          [16:12:45]</div><div>ozzloy:~/ $                                                          [16:12:45]</div><div>##################################################</div><div>##################################################</div><div>** add mariadb systemd configuration</div><div>ozzloy:~/ $ sudo systemctl edit mariadb.service                      [16:12:46]</div><div>ozzloy:~/ $ cat /etc/systemd/system/mariadb.service.d/override.conf  [16:13:10]</div><div>[Service]</div><div>PrivateDevices=false</div><div>NoNewPrivileges=false</div><div><br></div><div>ozzloy:~/ $                                                          [16:13:26]</div><div>ozzloy:~/ $                                                          [16:13:31]</div><div>ozzloy:~/ $                                                          [16:13:31]</div><div>ozzloy:~/ $                                                          [16:13:31]</div><div>ozzloy:~/ $                                                          [16:13:31]</div><div>##################################################</div><div>##################################################</div><div>** clean install mariadb-server with override.conf in place ahead of time</div><div>ozzloy:~/ $ sudo apt-get install -y mariadb-server                   [16:13:31]</div><div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>The following additional packages will be installed:</div><div>  galera-3 mariadb-server-10.1 mariadb-server-core-10.1 socat</div><div>Suggested packages:</div><div>  mariadb-test netcat-openbsd tinyca</div><div>The following NEW packages will be installed:</div><div>  galera-3 mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 socat</div><div>0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.</div><div>Need to get 0 B/11.8 MB of archives.</div><div>After this operation, 109 MB of additional disk space will be used.</div><div>Preconfiguring packages ...</div><div>Selecting previously unselected package galera-3.</div><div>(Reading database ... 228172 files and directories currently installed.)</div><div>Preparing to unpack .../galera-3_25.3.19-2_amd64.deb ...</div><div>Unpacking galera-3 (25.3.19-2) ...</div><div>Selecting previously unselected package mariadb-server-core-10.1.</div><div>Preparing to unpack .../mariadb-server-core-10.1_10.1.23-9+deb9u1_amd64.deb ...</div><div>Unpacking mariadb-server-core-10.1 (10.1.23-9+deb9u1) ...</div><div>Selecting previously unselected package socat.</div><div>Preparing to unpack .../socat_1.7.3.1-2+b1_amd64.deb ...</div><div>Unpacking socat (1.7.3.1-2+b1) ...</div><div>Selecting previously unselected package mariadb-server-10.1.</div><div>Preparing to unpack .../mariadb-server-10.1_10.1.23-9+deb9u1_amd64.deb ...</div><div>/var/lib/mysql: found previous version 10.1</div><div>Unpacking mariadb-server-10.1 (10.1.23-9+deb9u1) ...</div><div>Selecting previously unselected package mariadb-server.</div><div>Preparing to unpack .../mariadb-server_10.1.23-9+deb9u1_all.deb ...</div><div>Unpacking mariadb-server (10.1.23-9+deb9u1) ...</div><div>Setting up mariadb-server-core-10.1 (10.1.23-9+deb9u1) ...</div><div>Setting up socat (1.7.3.1-2+b1) ...</div><div>Setting up galera-3 (25.3.19-2) ...</div><div>Processing triggers for systemd (232-25) ...</div><div>Processing triggers for man-db (2.7.6.1-2) ...</div><div>Setting up mariadb-server-10.1 (10.1.23-9+deb9u1) ...</div><div>Setting up mariadb-server (10.1.23-9+deb9u1) ...</div><div>ozzloy:~/ $                                                          [16:14:13]</div></div></div></div><div><br></div></div></div>