I want make Ubuntu 18.04 server (text only) upgrade itself and keep original configure in a bash script. I tried
apt update && apt upgrade -y
and
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
and
apt upgrade --yes --force-yes
and
export DEBIAN_FRONTEND=noninteractive
apt-get -o Dpkg::Options::="--force-confold" upgrade -q -y --force-yes
ALL not working which means they all ask for interactive.