Skip to content

push unattended-upgrades fix to shared-apt

ugh. sadly, i just had this error first time deploying to an openvpn node:

   - [hippo] notice: /Stage[main]/Site_apt/Apt::Apt_conf[90disable-pdiffs]/File[/etc/apt/apt.conf.d/90disable-pdiffs]/ensure: created
   - [hippo] notice: /Stage[main]/Common::Moduledir/File[/var/lib/puppet/modules]/ensure: created
   - [hippo] notice: /File[/var/lib/puppet/modules/README]/ensure: defined content as '{md5}54000a2c832d3c13c1b6c5e2d4624644'
   - [hippo] notice: /Stage[main]/Site_apt::Leap_repo/Apt::Sources_list[leap.list]/File[/etc/apt/sources.list.d/leap.list]/ensure: created
   - [hippo] notice: /Stage[main]/Site_apt/Apt::Sources_list[secondary.list.disabled]/File[/etc/apt/sources.list.d/secondary.list.disabled]/ensure: created
   - [hippo] notice: /Stage[main]/Apt/Apt::Apt_conf[02show_upgraded]/File[/etc/apt/apt.conf.d/02show_upgraded]/ensure: defined content as '{md5}f8b9fbb99496bc2d919bb757b9819540'
   - [hippo] notice: /Stage[main]/Apt/File[/etc/apt/sources.list]/content: content changed '{md5}832677096bc43a65a852e144a3a2f98a' to '{md5}8caa45c8e8b54ce440ad988fe8310093'
   - [hippo] notice: /Stage[main]/Apt/Apt::Apt_conf[03clean]/File[/etc/apt/apt.conf.d/03clean]/ensure: defined content as '{md5}9c94d212b6be1a8a08d1facc24424f8b'
   - [hippo] notice: /Stage[main]/Apt/File[/var/cache/local]/ensure: created
   - [hippo] notice: /Stage[main]/Apt/File[/var/cache/local/preseeding]/ensure: created
   - [hippo] notice: /Stage[main]/Site_apt/Apt::Preferences_snippet[facter]/File[/etc/apt/preferences.d/facter]/ensure: created
   - [hippo] err: /Stage[main]/Apt::Unattended_upgrades/Package[unattended-upgrades]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install unattended-upgrades' returned 100: Reading package lists...
   - [hippo] Building dependency tree...
   - [hippo] Reading state information...
   - [hippo] Package unattended-upgrades is not available, but is referred to by another package.
   - [hippo] This may mean that the package is missing, has been obsoleted, or
   - [hippo] is only available from another source
   - [hippo] E: Package 'unattended-upgrades' has no installation candidate
   - [hippo] notice: /Stage[main]/Apt::Unattended_upgrades/Apt::Apt_conf[50unattended-upgrades]/File[/etc/apt/apt.conf.d/50unattended-upgrades]: Dependency Package[unattended-upgrades] has failures: true
   - [hippo] warning: /Stage[main]/Apt::Unattended_upgrades/Apt::Apt_conf[50unattended-upgrades]/File[/etc/apt/apt.conf.d/50unattended-upgrades]: Skipping because of failed dependencies

i only saw this problem once. next time, everything worked fine.

(from redmine: created on 2013-07-05, closed on 2013-07-16, relates #3747 (closed))