-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DEBIAN_FRONTEND=noninteractive
not working when installing apt-get freeipa-server
#1022
Comments
I guess you mean In your commands, UPDATE: fix the URL of virtualenvwrapper |
Hi @yan12125 it doesn't work when you are using non-interactive ansible-playbooks or scripts that run on the docker image I have tried to load the environment with source <env_path>/bin/activate, but still failed.Please checkout the logs!! So is it because the environment is created by mkvirtualenv and not virtualenv ?? https://gist.github.com/yabhinav/35bd42af202262f803bc63611d7eda3a Can you please check once running the command on docker image docker run -h testlab.example.com --name testlab --rm -it yabhinav/ansible:ubuntu16.04 /bin/bash [Update] Added logs for both virtualenv and workon , there are two files in one gist |
I was able to reproduce the problem. On my MacBook (Python 2.7.15, Virtualenv 16.0.0) everything works fine, but on a CentOS instance (Python 2.7.5, Virtualenv 15.1.0) I cannot install packages in a Docker container (Debian 8, Ubuntu 16.04) because the apt-utils package is missing. So I uninstalled the python-virtualenv package on the CentOS instances and installed Virtualenv 16.0.0 via pip. I also compiled Python 2.7.15 and created a new Virtualenv, based on that version but the problem still occurs |
For reference, look at duplicate Issue on ansible GitHub:
ansible/ansible#21691
SUMMARY
When installing freeipa-server the post installation script try to setup the IPA server or krb5 configuration.
To prevent that apt-get install should be run with DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yf freeipa-server
Installing freeipa-client and freeipa-server with command line fails when running on virutalenv /bin/bash
The issue is probably due to incompatibility with docker 1.13.1 + ubuntu 16.04 + virtualenv
The same command works on ubuntu:14.04, while it fails on ubuntu:16.04 docker image
Also the following installation command works on ubuntu16:04 when any python virtialenv is not activated
"apt-get update && apt-get -y install freeipa-server"
So the issue is not with docket images but with the python-virtual env , which is installed wither with pip or with apt-get. They are not reading the environment variable
DEBIAN_FRONTEND=noninteractive
The text was updated successfully, but these errors were encountered: