Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu 8.04 LTS Server Hardy Heron
/etc/cron.daily/apt apparently does not work.
I do:
Code:
cd / && run-parts --report /etc/cron.daily
which I found in my /etc/crontab
and then:
Code:
apt-get update
apt-get upgrade
shows a large number of packages to be updated.
When 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?
Please tell me how to check this. Of course, I considered that the default installation of a Ubuntu server should be configured to update the system every day.
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:
# "APT::Periodic::Unattended-Upgrade"
# - Run the "unattended-upgrade" security upgrade script
# every n-days (0=disabled)
# Requires the package "unattended-upgrades" and will write
# a log in /var/log/unattended-upgrades
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:
Thank you for your answer.
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.
This is the little hell which emerged.
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:
sudo diff -r /etc/apt apt
[sudo] password for user:
Only in apt/apt.conf.d: 10periodic
Only in apt/apt.conf.d: 15update-stamp
Only in apt/apt.conf.d: 20archive
Only in apt/apt.conf.d: 50unattended-upgrades
Only in apt/apt.conf.d: 99update-notifier
diff -r /etc/apt/sources.list apt/sources.list
1,4c1
< #
< # deb cdrom:[Ubuntu-Server 8.04.3 _Hardy Heron_ - Release i386 (20090709)]/ hardy main restricted
<
< #deb cdrom:[Ubuntu-Server 8.04.3 _Hardy Heron_ - Release i386 (20090709)]/ hardy main restricted
---
> #deb cdrom:[Ubuntu 8.04.3 _Hardy Heron_ - Release i386 (20090713.1)]/ hardy main restricted
53,64c50,55
< # Line commented out by installer because it failed to verify:
< #deb http://security.ubuntu.com/ubuntu hardy-security main restricted
< # Line commented out by installer because it failed to verify:
< #deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
< # Line commented out by installer because it failed to verify:
< #deb http://security.ubuntu.com/ubuntu hardy-security universe
< # Line commented out by installer because it failed to verify:
< #deb-src http://security.ubuntu.com/ubuntu hardy-security universe
< # Line commented out by installer because it failed to verify:
< #deb http://security.ubuntu.com/ubuntu hardy-security multiverse
< # Line commented out by installer because it failed to verify:
< #deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
---
> deb http://security.ubuntu.com/ubuntu hardy-security main restricted
> deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
> deb http://security.ubuntu.com/ubuntu hardy-security universe
> deb-src http://security.ubuntu.com/ubuntu hardy-security universe
> deb http://security.ubuntu.com/ubuntu hardy-security multiverse
> deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
Only in /etc/apt: sources.list~
Only in apt/sources.list.d: hardy-partner.list
Binary files /etc/apt/trustdb.gpg and apt/trustdb.gpg differ
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.