neurodocker icon indicating copy to clipboard operation
neurodocker copied to clipboard

debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used.

Open carolin31 opened this issue 4 years ago • 8 comments

Hello,

I am trying to use neurodocker to make an afni container. I first did:

neurodocker generate singularity --base=ubuntu:bionic --pkg-manager=apt --install sshfs tcsh --afni method-binaries version=latest install_r_pkgs=true > afni.recipe

and then: singularity build --fakeroot afni.sif afni.recipe

I get the following screen and after I enter US and hit enter it gets stuck and does not continue with the building process:

Screen Shot 2021-07-29 at 6 04 20 PM

I googled the error and found this but I don t know how to incorporate this into the neurodocker call. Screen Shot 2021-07-29 at 6 47 12 PM

I am grateful for any help! Thank you very much in advance! Carolin

carolin31 avatar Jul 30 '21 02:07 carolin31

Dear @carolin31,

In our neurodesk project we build afni in a centos7 container as we found this to work a bit better then a ubuntu base - maybe that could solve your problem?: https://github.com/NeuroDesk/neurocontainers/blob/master/recipes/afni/build.sh

Also, you could use our built and tested afni container if this works for you :) https://hub.docker.com/repository/docker/vnmd/afni_21.2.00

you can create a singularity container from this by running: singularity build afni_21.2.00.simg docker://vnmd/afni_21.2.00

or you could use our afni container as a base in your recipe and add more packages to it :)

I hope this helps Kind regards Steffen

stebo85 avatar Jul 31 '21 23:07 stebo85

I know this is ancient, but if you export the timezone to the environment at the start of %post, it won't ask when installing tzdata during container creation. You can also export the front-end as non-interactive:

e.g. %post export TZ='America/New_York' export DEBIAN_FRONTEND=noninteractive

afonsoguerra avatar Oct 08 '22 08:10 afonsoguerra

Installing a (small) package compatible with "dialog" feature with clear the "can't find a dialog-like program" error when installing other packages in an interactive way 👍 apt install whiptail

did it for me.

esalome avatar Oct 23 '22 03:10 esalome

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 09 '23 01:09 github-actions[bot]

should export DEBIAN_FRONTEND=noninteractive be added as a default for apt based images? This could prevent many user problems like this?

stebo85 avatar Sep 11 '23 00:09 stebo85

should export DEBIAN_FRONTEND=noninteractive be added as a default for apt based images? This could prevent many user problems like this?

I would be in favor of this

Remi-Gau avatar Sep 11 '23 01:09 Remi-Gau

a mi me funciono esta linea que esta en el docker de laravel sail

ENV TZ=UTC RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

DiegoGuati00 avatar Oct 29 '23 19:10 DiegoGuati00