Nyt ihmetyttää. Crontabin kautta ei asennu mikään paketti. apt-get -y dist-upgrade kyllä hakee paketin mutta sitten se tyssää siihen.
crontab -l:
0 0 * * * date >> /var/log/apt-update.log
1 0 * * * apt-get update >> /var/log/apt-update.log
3 0 * * * date >> /var/log/apt-dupgrade.log
4 0 * * * apt-get -y dist-upgrade >> /var/log/apt-dupgrade.log
ja tässä esimerkki logista /var/log/apt-dupgrade.log:
Wed Nov 9 00:03:01 EET 2005
Reading package lists...
Building dependency tree...
The following packages will be upgraded:
fetchmail
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 286kB of archives.
After unpacking 0B of additional disk space will be used.
Get:1 http://security.ubuntu.com breezy-security/main fetchmail 6.2.5-13ubuntu3.1 [286kB]
Fetched 286kB in 1s (238kB/s)
Käsin apt-get -y dist-upgrade toimii hyvin.