Bug 445096

Summary: apt Autoupdates w/o user permission
Product: [Fedora] Fedora Reporter: Suren Karapetyan <suren>
Component: aptAssignee: Axel Thimm <Axel.Thimm>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 10CC: cweyl, pmatilai
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-15 03:11:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Suren Karapetyan 2008-05-03 17:24:44 UTC
Description of problem:
The default install of apt adds a script in cron.daily to run apt-get update
every night.
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

How reproducible:
Nicely :)

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")
  
Actual results:
Loads of fun doing degrading :D

Expected results:
Synaptic

Comment 1 Kevin Kofler 2008-05-04 20:48:49 UTC
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.

Comment 2 Kevin Kofler 2008-05-04 20:49:21 UTC
(Maybe a regression caused by the switch from SysVInit to Upstart?)

Comment 3 Suren Karapetyan 2008-05-04 21:28:30 UTC
(In reply to comment #1)
> 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.

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

Comment 4 Bug Zapper 2008-05-14 10:36:00 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Suren Karapetyan 2008-06-21 10:12:56 UTC
Ping?
Anybody out there?

Come on guys... this is EASY.
I don't even think there is need for maintainer's permission to do this.

Comment 6 Fedora Update System 2009-01-07 08:05:14 UTC
apt-0.5.15lorg3.95-0.git416.3.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/apt-0.5.15lorg3.95-0.git416.3.fc10

Comment 7 Suren Karapetyan 2009-01-07 12:56:18 UTC
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

Comment 8 Fedora Update System 2009-01-07 21:52:28 UTC
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

Comment 9 Fedora Update System 2009-01-15 03:10:48 UTC
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.