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

Leaving behind file: /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist ? #10

Closed msabramo closed 8 years ago

msabramo commented 8 years ago

After using this role on a couple of machines, it set up unattended upgrades (yay!), but it seems that it might be leaving behind a file /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist?

CORP\marca@marcatest1:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension

I'll try to take a look and see if I can figure out what's going on.

msabramo commented 8 years ago

Hmmm, I don't see the Ansible code doing this so probably when the apt package is installed, this file gets dropped. So maybe we should add something like:

- name: remove 20auto-upgrades.ucf-dist if present
  file: path=/etc/apt/apt.conf.d/20auto-upgrades.ucf-dist state=absent

?

msabramo commented 8 years ago

Hmmm, maybe it's not coming at all from this role and it's coming from me manually installing stuff and then when I get prompted what to do about the config files?

http://manpages.ubuntu.com/manpages/trusty/man1/ucf.1.html

This utility provides a means of asking the user whether or not to accept new versions of configuration files provided by the package maintainer, with various heuristics designed to minimize interaction time.

During the course of operations, when working with configuration files, ucf optionally creates copies of versions of the configuration file in question. For example, a file with the suffix ucf-old holds the old version of a configuration file replaced by ucf. Also, copies of the configuration file with the suffixes ucf-new and ucf-dist may be created; and the maintainer scripts should consider purging copies of the configuration file with these extensions during purge.

jnv commented 8 years ago

Hey Marc, thanks for report! I'm not sure either, but it is likely that you ran into conflict with configuration files, though I'm not sure how could that happen. The role installs the package first and then it writes 20auto-upgrades file. Did you install unattended-upgrades manually or with other role? Also, could you please show me the diff between 20auto-upgrades and 20auto-upgrades.ucf-dist?

jnv commented 8 years ago

Sorry but I can't help you with this issue without further information. Please tell me if you learn more, I will close this in meantime.

Eslam-Bouz commented 7 years ago

Hey ... i Have The same Err .. :( Bad Luck !

What i did is sudo rm /etc/apt/apt.conf.d/20auto-upgrades.ucf-d

and The Err is Died :+1: