We create a digital ocean server running on Ubuntu 20.04.2 LTS (Focal Fossa) per user. Once every few months, this process gets stuck, as something in the update requires a Y or a Yes etc. We keep looking up new ways to deal with "automatically say yes", but every few months, there is a new thing that we have not dealt with it seems.
Our update command right now is: yes Y | sudo apt-get dist-upgrade -qq -y
.
Our most recent stop was this:
Configuring openssh-server
--------------------------
A new version (/tmp/fileJQ04gT) of configuration file /etc/ssh/sshd_config is
available, but the version installed currently has been locally modified.
1. install the package maintainer's version
2. keep the local version currently installed
3. show the differences between the versions
4. show a side-by-side difference between the versions
5. show a 3-way difference between available versions
6. do a 3-way merge between available versions
7. start a new shell to examine the situation
What do you want to do about modified configuration file sshd_config
Is this the way to automatically say yes to all questions in the update (or to just silently update)?