By: Long Le user 26 Apr 2021 at 6:26 a.m. CDT

1 Response
Long Le gravatar
## Expected Behavior I tried installing a test version of Gluu using Ubuntu 20.04 (Windows Linux Sub system), using the guide video here: https://www.youtube.com/watch?v=auJ5bl41lK8 curl https://repo.gluu.org/ubuntu/gluu-apt.key | sudo apt-key add - sudo apt-get update sudo apt-get install gluu-server Expect: the installation completes successfully ## Actual behavior The installation failed with below error (see full log below) ``` System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down dpkg: error processing package gluu-server (--configure): installed gluu-server package post-installation script subprocess returned error exit status 1 ``` Could you please check? Full log: ``` Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libnss-mymachines libnss-systemd libpam-systemd libsystemd0 net-tools systemd systemd-container systemd-sysv systemd-timesyncd The following NEW packages will be installed: gluu-server libnss-mymachines net-tools systemd-container The following packages will be upgraded: libnss-systemd libpam-systemd libsystemd0 systemd systemd-sysv systemd-timesyncd 6 upgraded, 4 newly installed, 0 to remove and 57 not upgraded. Need to get 1368 MB of archives. After this operation, 2268 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.6 [95.8 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.6 [28.1 kB] Get:3 https://repo.gluu.org/ubuntu focal/main amd64 gluu-server amd64 4.2.3~ubuntu20.04 [1363 MB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.6 [10.3 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.6 [186 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.6 [3805 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.6 [269 kB] Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-container amd64 245.4-4ubuntu3.6 [317 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-mymachines amd64 245.4-4ubuntu3.6 [131 kB] Fetched 1368 MB in 8min 4s (2825 kB/s) (Reading database ... 32157 files and directories currently installed.) Preparing to unpack .../0-libnss-systemd_245.4-4ubuntu3.6_amd64.deb ... Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Preparing to unpack .../1-systemd-timesyncd_245.4-4ubuntu3.6_amd64.deb ... Unpacking systemd-timesyncd (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Preparing to unpack .../2-systemd-sysv_245.4-4ubuntu3.6_amd64.deb ... Unpacking systemd-sysv (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Preparing to unpack .../3-libpam-systemd_245.4-4ubuntu3.6_amd64.deb ... Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Preparing to unpack .../4-systemd_245.4-4ubuntu3.6_amd64.deb ... Unpacking systemd (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Preparing to unpack .../5-libsystemd0_245.4-4ubuntu3.6_amd64.deb ... Unpacking libsystemd0:amd64 (245.4-4ubuntu3.6) over (245.4-4ubuntu3.4) ... Setting up libsystemd0:amd64 (245.4-4ubuntu3.6) ... Selecting previously unselected package net-tools. (Reading database ... 32157 files and directories currently installed.) Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ... Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ... Selecting previously unselected package systemd-container. Preparing to unpack .../systemd-container_245.4-4ubuntu3.6_amd64.deb ... Unpacking systemd-container (245.4-4ubuntu3.6) ... Selecting previously unselected package gluu-server. Preparing to unpack .../gluu-server_4.2.3~ubuntu20.04_amd64.deb ... Unpacking gluu-server (4.2.3~ubuntu20.04) ... Selecting previously unselected package libnss-mymachines:amd64. Preparing to unpack .../libnss-mymachines_245.4-4ubuntu3.6_amd64.deb ... Unpacking libnss-mymachines:amd64 (245.4-4ubuntu3.6) ... Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) ... Setting up systemd-timesyncd (245.4-4ubuntu3.6) ... Setting up systemd (245.4-4ubuntu3.6) ... Initializing machine ID from random generator. Setting up systemd-container (245.4-4ubuntu3.6) ... Created symlink /etc/systemd/system/multi-user.target.wants/machines.target → /lib/systemd/system/machines.target. Setting up gluu-server (4.2.3~ubuntu20.04) ... Created symlink /etc/systemd/system/machines.target.wants/systemd-nspawn@gluu-server.service → /lib/systemd/system/systemd-nspawn@gluu-server.service. System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down dpkg: error processing package gluu-server (--configure): installed gluu-server package post-installation script subprocess returned error exit status 1 Setting up systemd-sysv (245.4-4ubuntu3.6) ... Setting up libnss-systemd:amd64 (245.4-4ubuntu3.6) ... Setting up libnss-mymachines:amd64 (245.4-4ubuntu3.6) ... First installation detected... Checking NSS setup... Setting up libpam-systemd:amd64 (245.4-4ubuntu3.6) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for dbus (1.12.16-2ubuntu2.1) ... Errors were encountered while processing: gluu-server E: Sub-process /usr/bin/dpkg returned an error code (1) ```

By Mohib Zico Account Admin 26 Apr 2021 at 7:08 a.m. CDT

Mohib Zico gravatar
Please follow, official written doc: https://www.gluu.org/docs/gluu-server/4.2/