![]() |
/etc/cron.daily/apt apparently not working
Ubuntu 8.04 LTS Server Hardy Heron
/etc/cron.daily/apt apparently does not work. I do: Code:
cd / && run-parts --report /etc/cron.dailyand then: Code:
apt-get updateWhen I compared this with a Ubuntu 8.04 LTS Desktop (with GUI), I saw that the files in /etc/cron.daily are identical, the only difference is that anacron is installed on the Desktop, but this should not change the way /etc/cron.daily/apt works. On the Desktop, the system is updated well. If anyone has experienced this strange behavior, please let me know. |
Is it configured to apply the packages it downloads?
|
Quote:
|
It may be configured to check for and download them but it is not configured to apply them. That would be silly.
Do you have apticron or cron-apt installed? /etc/cron.daily/apt belongs to apt and is less flexible, but does have this: Quote:
|
Quote:
I don't have apticron or cron-apt installed, only cron. Should I uncomment that in my /etc/cron.daily/apt? This file also has UnattendedUpgradeInterval=0, should I make it =1? Still, /etc/cron.daily/apt is the same with the one on my desktop. |
Ok, now compare /etc/apt/preferences and/or all the files in /etc/apt/preferences.d/* if they exist. You should find a difference there.
And no, don't uncomment it in /etc/cron.daily/apt; you're supposed to set apt config variables in /etc/apt/preferences. |
Quote:
apt is from Desktop (automatic update works) and /etc/apt is from server (automatic update does not work). Seems to me that, apart from apt/apt.conf.d, there are no other important differences, only some comments and some depositories. Quote:
Quote:
|
Well there you go.
|
Quote:
The following pages also indicate that there is no default automatic update in Ubuntu Servers. https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo https://help.ubuntu.com/community/Au...ecurityUpdates I am confused about the function of /etc/cron.daily/apt, which also takes a long time to complete when I run it. |
The solution to automatic upgrades in Ubuntu 8.04 lts server:
I installed the unattended-upgrades and anacron packages (anacron because my server is not always up). Following /usr/share/doc/unattended-upgrades/README, I put in /etc/apt/apt.conf: Code:
APT::Periodic::Update-Package-Lists "1";According to the default settings in: Code:
/etc/apt/apt.conf.d/50unattended-upgradesCode:
/usr/share/doc/unattended-upgrades/READMEunattended-upgrades keeps a log in: Code:
/var/log/unattended-upgrades/https://help.ubuntu.com/community/Au...ecurityUpdates https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo Thank you again for your time. Now this looks better: https://help.ubuntu.com/10.04/server...c-updates.html |
| All times are GMT -5. The time now is 02:30 AM. |