jnv / ansible-role-unattended-upgrades

[DEPRECATED] Setup unattended-upgrades on Debian-based systems
https://github.com/jnv/ansible-role-unattended-upgrades/issues/98
GNU General Public License v2.0
272 stars 94 forks source link

conffile prompt and needs to be upgraded manually #56

Closed memelet closed 5 years ago

memelet commented 5 years ago

I'm getting emails daily

/etc/cron.daily/apt:
Package 'apport' has conffile prompt and needs to be upgraded manually

I have unattended_mail:false (default), and unattended_autofix_interrupted_dpkg:true (default).

I'm not quite sure what needs to be done.

jnv commented 5 years ago

Hi, this is not a problem specific to this role, but unattended-upgrades behavior. You need to do what does it say, i.e. run apt upgrade apport, because there are some changes in apport's configuration files which need to be confirmed manually.

Alternatively you can set default behavior for unattended upgrades to keep or overwrite configuration files automatically, see for example here. This post is also useful and might give you some insight. In the context of this role, you'd set unattended_dpkg_options variable like this, to keep old configuration files:

unattended_dpkg_options: ["--force-confdef", "--force-confold"]

I will close this issue as it is not something directly applicable to this role.

memelet commented 5 years ago

Thanks unattended_dpkg_options is exactly what I was missing.