apt-get install tzdata noninteractive

This is the script I used (Updated Version with input from @elquimista from the comments) #!/bin/bash ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata dpkg-reconfigure –frontend noninteractive tzdata Seems to work fine. As one liner: DEBIAN_FRONTEND=noninteractive apt-get install -y –no-install-recommends tzdata

Docker build “Could not resolve ‘archive.ubuntu.com'” apt-get fails to install anything

Uncommenting DOCKER_OPTS=”–dns 8.8.8.8 –dns 8.8.4.4″ in /etc/default/docker as Matt Carrier suggested did NOT work for me. Nor did putting my corporation’s DNS servers in that file. But, there’s another way (read on). First, let’s verify the problem: $ docker run –rm busybox nslookup google.com # takes a long time nslookup: can’t resolve ‘google.com’ # <— … Read more

Is it possible to answer dialog questions when installing under docker?

See the discussion here: https://github.com/docker/docker/issues/4032. In short, setting ENV DEBIAN_FRONTEND noninteractive is not recommended as it persists in the final image, even when running something like docker run -i -t … bash. Therefore it is recommended either to omit DEBIAN_FRONTEND and live with the warning, or specify it explicitly for each command e.g. RUN DEBIAN_FRONTEND=noninteractive … Read more

How to thoroughly purge and reinstall postgresql on ubuntu? [closed]

Option A If your install isn’t already damaged, you can drop unwanted PostgreSQL servers (“clusters”) using pg_dropcluster. Use that in preference to a full purge and reinstall if you just want to restart with a fresh PostgreSQL instance. $ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 11 main 5432 online postgres /var/lib/postgresql/11/main … Read more