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
Configure debconf to be always non-interactive #80
Comments
We already configure apt to "assume yes" and that has been sufficient for now. How does your project use debconf? |
I think we also need to configure sudo to preserve |
My project needs python3-gi-cairo which does not exist in Ubuntu 11.10, so I’m installing it from 12.04. From
Doing so also upgrades libc6. debconf then tries to ask "interactively" whether PostgreSQL should be restarted. I don’t care about Postgres though. |
sudo doesn't provide environment - but if you pass it -E it'll pass the environment - as sudo is only ever called by your code, not the internals of travis for this - using -E on sudo should suffice. |
It will take some time to upgrade all VM images to have updates sudoers, I think in the meantime if you copy the same file we install in fa89acd in a before_install step and make sure it has permissions So,
|
Both of these worked for me: |
Or a la make: |
See for example http://travis-ci.org/#!/Kozea/WeasyPrint/jobs/1895338/L208
Even though
DEBIAN_FRONTEND=noninteractive
is passed explicitly, debconf still tries to ask questions with a ncurses-based interactive interface. Apparently, sudo does not preserve environment variables.A more permanent fix could be to set
Frontend noninteractive
near the top of /etc/debconf.conf.The text was updated successfully, but these errors were encountered: