# Pastebin aAARVsN5 $ sudo apt-get install gcc autoconf bison flex libtool make libboost-all-dev libevent-dev uuid-dev gperf git Reading package lists... Done Building dependency tree Reading state information... Done autoconf is already the newest version (2.69-11.1). bison is already the newest version (2:3.5.1+dfsg-1). flex is already the newest version (2.6.4-6.2). gcc is already the newest version (4:9.3.0-1ubuntu2). git is already the newest version (1:2.25.1-1ubuntu3). libevent-dev is already the newest version (2.1.11-stable-1). libtool is already the newest version (2.4.6-14). make is already the newest version (4.2.1-1.2). gperf is already the newest version (3.1-1build1). libboost-all-dev is already the newest version (1.71.0.0ubuntu2). uuid-dev is already the newest version (2.34-0.1ubuntu9.1). The following packages were automatically installed and are no longer required: php7.4-gd php7.4-intl php7.4-mysql php7.4-soap php7.4-xmlrpc Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up elasticsearch (6.8.13) ... System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down /usr/share/elasticsearch/bin/elasticsearch-env: line 79: cd: /etc/elasticsearch: No such file or directory An elasticsearch keystore already exists. Overwrite? [y/N]y Created elasticsearch keystore in / chown: cannot access '/etc/elasticsearch/elasticsearch.keystore': No such file or directory dpkg: error processing package elasticsearch (--configure): installed elasticsearch package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: elasticsearch E: Sub-process /usr/bin/dpkg returned an error code (1)