Bug 439115

Summary: PackageKit displays the error "No package cache is available" on first use
Product: [Fedora] Fedora Reporter: Basil Mohamed Gohar <me>
Component: PackageKitAssignee: Robin Norwood <robin.norwood>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: pbjazzy, richard, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-15 21:08:07 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 Basil Mohamed Gohar 2008-03-27 02:31:29 UTC
On a fresh install of Fedora 9 Beta x86_64, when first using the Add/Remove
Software component of System -> Administration, PackageKit displays the error
"No package cache is available" and "yum cache is invalid and has been rebuilt"
when attempting to view groups.  However, the yum cache does not appear to be
created.

A Google search of the error message lead me to this:

http://lists.freedesktop.org/archives/packagekit/2008-February/002052.html

Running the command 'pkcon refresh' did appear to fix the problem.

Comment 1 Richard Hughes 2008-03-31 14:02:09 UTC
Robin, we are currently doing:

self._refresh_yum_cache()
self.error(ERROR_NO_CACHE,"Yum cache was invalid and has been rebuilt.")

If we got the cache, can't we just requeue the request in the backend?
ERROR_NO_CACHE is designed for when we have no cache and can't get any.

Ideally, the cache should be refreshed, and then the method should continue.


Comment 2 Robin Norwood 2008-04-07 16:05:46 UTC
Richard,

Yes, I think you're correct.  I'll need to look at it a bit.

If we do 'start over', at which point should we start over?  Is it alright for
us to resend signals like these:

        self.AllowCancel(True)
        self.NoPercentageUpdates()
        self.StatusChanged(STATUS_QUERY)

?


Comment 3 Richard Hughes 2008-04-13 16:47:14 UTC
Yup. :-) I followed up in my email with other stuff we need to do.

Comment 4 Richard Hughes 2008-04-15 21:06:09 UTC
*** Bug 440689 has been marked as a duplicate of this bug. ***

Comment 5 Richard Hughes 2008-04-15 21:08:07 UTC

*** This bug has been marked as a duplicate of 439735 ***