I need to set environment variables for unattended-upgrades:
Packages that attempted to upgrade:
msodbcsql17
Package installation log:
Log started: 2019-10-28 06:51:03
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
Preparing to unpack .../msodbcsql17_17.4.2.1-1_amd64.deb ...
ERROR: The EULA was not accepted. Installation aborted.
dpkg: error processing archive /var/cache/apt/archives/msodbcsql17_17.4.2.1-1_amd64.deb (--unpack):
new msodbcsql17 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/msodbcsql17_17.4.2.1-1_amd64.deb
Log ended: 2019-10-28 06:51:05
Microsoft needs "ACCEPT_EULA=Y" beeing set for the user who tries to install msodbcsql17. I already added the line to "/etc/environment" which works fine for shell users but not for unattended-upgrades.
I've not been successful browsing the docs for a solution. I could inject ENV using the Systemd service file but it would be more clean if unattended-upgrades allows to specify them somewhere.
Any ideas?