virtualjj / automated-openvpnas

AWS CloudFormation template to automate a more secure deployment of the OpenVPN Access Server Community Edition.
MIT License
21 stars 17 forks source link

apt-get upgrade -y not completing #2

Closed virtualjj closed 7 years ago

virtualjj commented 7 years ago

When using apt-get upgrade -y or apt-get dist-upgrade -y Userdata fails and does not complete because the following messages are requiring interactive input:

Configuration file '/etc/issue'
  ==> Modified (by you or by a script) since installation.
  ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
   Y or I  : install the package maintainer's version
   N or O  : keep your currently-installed version
   D     : show the differences between the versions
   Z     : start a shell to examine the situation
The default action is to keep your current version.
 *** issue (Y/I/N/O/D/Z) [default=N]

Configuration file '/etc/cloud/cloud.cfg'
  ==> Modified (by you or by a script) since installation.
  ==> Package distributor has shipped an updated version.
    What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
    D     : show the differences between the versions
    Z     : start a shell to examine the situation
The default action is to keep your current version.
*** cloud.cfg (Y/I/N/O/D/Z) [default=N]

Have tried the following commands within Userdata using advice from Stackoverflow but the result is the same:

DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" upgrade

export DEBIAN_FRONTEND=noninteractive
apt-get -o Dpkg::Options::="--force-confnew" upgrade -y 

export DEBIAN_FRONTEND=noninteractive
apt-get -q -y upgrade

For now have not included apt-get upgrade -y in the Userdata script.

virtualjj commented 7 years ago

This issue is gone with the new OpenVPN AMIs.

image