Bug 439115 - PackageKit displays the error "No package cache is available" on first use
Summary: PackageKit displays the error "No package cache is available" on first use
Keywords:
Status: CLOSED DUPLICATE of bug 439735
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Robin Norwood
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 440689 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-27 02:31 UTC by Basil Mohamed Gohar
Modified: 2008-04-15 21:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-15 21:08:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.