Bug#1037004: msmtp-mta doesn't respect DEBIAN_FRONTEND=noninteractive
On Thu, Jun 01, 2023 at 09:06:52AM -0700, Tao Effect wrote: > Wow, that worked! Sorry for not understanding that that had to be prepended > to both commands. > > Lesson learned! Thank you and please feel free to close this bug report now > (I have no idea how to do that). Perfect, hence I'm closing this bugs. Regards, -- Emmanuel Bouthenot kolter@{openics,debian}.org kolter@{libera,oftc} 0x929D42C3/4096R
Bug#1037004: msmtp-mta doesn't respect DEBIAN_FRONTEND=noninteractive
Wow, that worked! Sorry for not understanding that that had to be prepended to both commands. Lesson learned! Thank you and please feel free to close this bug report now (I have no idea how to do that). - Greg > On May 31, 2023, at 10:31 PM, Emmanuel Bouthenot wrote: > > Hello (again), > > On Wed, May 31, 2023 at 03:26:23PM -0700, Greg wrote: > [...] > >> RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \ >> apt-get install -yq --no-install-recommends msmtp-mta s-nail htop dialog >> less paxctl sudo > > I didn't noticed it in the first place but you also have to set the > noninteractive frontend when installing/updating the package not only > when updating the packages index. > > Try: > RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && > DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends > msmtp-mta s-nail htop dialog less paxctl sudo > > If it works as expected it's far better than preseeding (suggested in my > previous reply). > > Have a nice day. > > Regards, > > -- > Emmanuel Bouthenot > kolter@{openics,debian}.org kolter@{libera,oftc} > 0x929D42C3/4096R
Bug#1037004: msmtp-mta doesn't respect DEBIAN_FRONTEND=noninteractive
Hello (again), On Wed, May 31, 2023 at 03:26:23PM -0700, Greg wrote: [...] > RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \ > apt-get install -yq --no-install-recommends msmtp-mta s-nail htop dialog > less paxctl sudo I didn't noticed it in the first place but you also have to set the noninteractive frontend when installing/updating the package not only when updating the packages index. Try: RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends msmtp-mta s-nail htop dialog less paxctl sudo If it works as expected it's far better than preseeding (suggested in my previous reply). Have a nice day. Regards, -- Emmanuel Bouthenot kolter@{openics,debian}.org kolter@{libera,oftc} 0x929D42C3/4096R
Bug#1037004: msmtp-mta doesn't respect DEBIAN_FRONTEND=noninteractive
Hello Greg, On Wed, May 31, 2023 at 03:26:23PM -0700, Greg wrote: [...] > Regarding your commit here: > https://salsa.debian.org/kolter/msmtp/-/commit/7633ea472e24bf3be003396a2e4567d101f8cf53 > > This has added a TUI when installing the `msmtp-mta` package that > appears even on non-interactive terminals. This is making it very > difficult for us to upgrade our Gitlab install which has this command > in a Dockerfile: > > RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \ apt-get > install -yq --no-install-recommends msmtp-mta s-nail htop dialog less > paxctl sudo Before installing or upgrading msmtp-mta (or msmtp) from your Dockerfile try to pressed the debconf questions by executing the following commands: echo "msmtp msmtp/apparmor boolean false" | debconf-set-selections echo "msmtp msmtp/security-information error seen" | debconf-set-selections Let me know if it works. Have a nice day. Regards, -- Emmanuel Bouthenot kolter@{openics,debian}.org kolter@{libera,oftc} 0x929D42C3/4096R
Bug#1037004: msmtp-mta doesn't respect DEBIAN_FRONTEND=noninteractive
Package: msmtp-mta Version: 1.8.6-1 Severity: important Dear Maintainer, Regarding your commit here: https://salsa.debian.org/kolter/msmtp/-/commit/7633ea472e24bf3be003396a2e4567d101f8cf53 This has added a TUI when installing the `msmtp-mta` package that appears even on non-interactive terminals. This is making it very difficult for us to upgrade our Gitlab install which has this command in a Dockerfile: RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \ apt-get install -yq --no-install-recommends msmtp-mta s-nail htop dialog less paxctl sudo The command is executed by `docker-compose build --pull` However the TUI shows up and there’s no way to dismiss it without aborting the install. Pressing enter/space etc does not work, it only types keys over the TUI. Any help with this is greatly appreciated! -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Kernel: Linux 6.1.6-200.fc37.x86_64 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) Versions of packages msmtp-mta depends on: ii init-system-helpers 1.57 ii libc62.31-0ubuntu9.9 ii msmtp1.8.6-1 msmtp-mta recommends no packages. msmtp-mta suggests no packages. -- no debconf information