Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carolin31 opened this issue Jul 30, 2021 · 7 comments

Comments

@carolin31
Copy link

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

@stebo85
Copy link
Collaborator

stebo85 commented Jul 31, 2021

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

@afonsoguerra
Copy link

afonsoguerra commented Oct 8, 2022

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

@esalome
Copy link

esalome commented Oct 23, 2022

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.

@github-actions
Copy link

github-actions bot commented Sep 9, 2023

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

@github-actions github-actions bot added the stale label Sep 9, 2023
@stebo85
Copy link
Collaborator

stebo85 commented Sep 11, 2023

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

@Remi-Gau
Copy link
Collaborator

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

@github-actions github-actions bot removed the stale label Sep 11, 2023
@DiegoGuati00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants