Timeline for How to avoid interactive dialogs when running "apt-get upgrade -y" in Ubuntu 16.04 when packaging with Packer?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 22, 2018 at 12:24 | comment | added | Tensibai | FWIW, this may lead in apt-get just skipping the package needing interaction and not upgrading it (leaving a word in the log about 'package X need manual upgrade'). If the idea is to get patched packages then it is not the way to go. | |
May 18, 2017 at 12:14 | comment | added | Philipp Claßen | @MichaelMol Works fine. I have updated my answer. | |
May 18, 2017 at 12:13 | history | edited | Philipp Claßen | CC BY-SA 3.0 |
setting DEBIAN_FRONTEND=noninteractive is sufficient
|
May 17, 2017 at 23:18 | comment | added | Michael Mol |
You can (probably?) simplify that to apt-get update ; DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq . I don't think apt-get update prompts for anything, so it probably doesn't need DEBIAN_FRONTEND , and thus you don't really have to export DEBIAN_FRONTEND and have it continue to exist through the rest of your environment. To whatever degree that matters to you.
|
|
May 15, 2017 at 16:37 | vote | accept | Philipp Claßen | ||
May 11, 2017 at 8:44 | history | answered | Philipp Claßen | CC BY-SA 3.0 |