TurnKey Linux Virtual Appliance Library

Manually fixing automatic updates

Appliance versions before the 2009.02 release had a bug that could potentially break auto-updates.

To be on the safe side we recommend users either migrate to a newer appliance version or manually fix the auto-updates mechanism on their appliances by executing the following commands in a shell:

  1. Comment out the OPTIONS parameter in /etc/cron-apt/config
    sed -i 's/^ *OPTIONS/#OPTIONS/' /etc/cron-apt/config
    
  2. Update /etc/cron-apt/action.d/5-install
    echo "\
    autoclean -q -y
    dist-upgrade -q -y\
    -o APT::Get::Show-Upgraded=true \
    -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/security.sources.list \
    -o Dir::Etc::sourceparts=nonexistent -o DPkg::Options::=--force-confdef \
    -o DPkg::Options::=--force-confold" > /etc/cron-apt/action.d/5-install