Red Hat Bugzilla – Bug 445096
apt Autoupdates w/o user permission
Last modified: 2009-01-14 22:11:05 EST
Description of problem:
The default install of apt adds a script in cron.daily to run apt-get update
There is CHECK_ONLY option in /etc/sysconfig/apt which (defaults to no) if set
to yes only checks for updates. Note that it's the default behaviour of
yum-updatesd (it doesn't update without asking you)
Version-Release number of selected component (if applicable):
Well for me it's apt-0.5.15lorg3.94-3
Steps to Reproduce:
1.yum install apt
2.go to sleep
3.enjoy Your fully upgraded system (read: have fun uninstalling mesa*, half of
xorg, and all the kernel modules, cause you've been using rawhide and didn't
update the badly broken parts. Switch back to "fedora-stable", install mesa*,
xserver, rhxpl, ... Again switch back to rawhide and don't forget to check
/etc/sysconfig/apt to switch the line from "CHECK_ONLY=no" to "CHECK_ONLY=yes")
Loads of fun doing degrading :D
The real bug there is that the apt service is running by default, it's supposed
to be disabled by default and this has always been the case. CHECK_ONLY is only
relevant if the apt service is actually enabled.
(Maybe a regression caused by the switch from SysVInit to Upstart?)
(In reply to comment #1)
> The real bug there is that the apt service is running by default, it's
> to be disabled by default and this has always been the case. CHECK_ONLY is
> relevant if the apt service is actually enabled.
Well.. I mostly agree with You: apt service should be disabled.
But even if apt is disabled and a user enables it himself, he/she will
probably expect it to behave just like yum-updatesd (i.e. only update the
package list - not the packages).
So IMO the service should be disabled and CHECK_ONLY should be yes.
BTW: /etc/init.d/apt is a really funny script to read :)
It's the only thing I've seen which uses touch/rm to control a cron job and
emulate a service.
I don't say I don't like it (well.. opposite: I do LOVE it) but it really
looks like a hack :D
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Anybody out there?
Come on guys... this is EASY.
I don't even think there is need for maintainer's permission to do this.
apt-0.5.15lorg3.95-0.git416.3.fc10 has been submitted as an update for Fedora 10.
apt-0.5.15lorg3.95-0.git416 (at least partly) fixes this, but it still isn't the expected behaviour.
In the old times when we had yum-updatesd it was on by default but it only downloaded package lists (to be able to tell You if there is an update) instead of autoupdating.
To get the same result with apt the "CHECK_ONLY=no" should be changed to "CHECK_ONLY=yes" in /etc/sysconfig/apt
apt-0.5.15lorg3.95-0.git416.3.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update apt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0304
apt-0.5.15lorg3.95-0.git416.3.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.