I am trying to install GlusterFS within a docker container with Ansible. I have an error so I tried to install it directly in the container but I have the same error (So Ansible is not the problem):
# apt-get install glusterfs-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
glusterfs-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 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 nfs-common (1:1.2.8-6ubuntu1.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
invoke-rc.d: unknown initscript, /etc/init.d/statd not found.
dpkg: error processing package nfs-common (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
nfs-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
It seems to be a problem with nfs-common
but I don't understand how to fix it.