Bug 476048

Summary: "yum provides /some/file" fails (no cache)
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: ffesti, james.antill, katzj, pmatilai, 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-12-11 19:43:21 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 Horst H. von Brand 2008-12-11 17:53:44 UTC
Description of problem:
I tried:

$ yum provides /usr/lib64/gtk-2.0/modules/libpk-gtk-module.so
Loaded plugins: fastestmirror, refresh-packagekit
Importing additional filelist information
Error: Caching enabled but no local cache of //var/cache/yum/rawhide/4416992610e6a7aaf089a4c6cba2a694887f6c70-filelists.sqlite.bz2 from rawhide

Version-Release number of selected component (if applicable):
yum-3.2.20-7.fc11.noarch

How reproducible:
Always, the repo configuration doesn't matter

Steps to Reproduce:
1. yum provides /etc
2.
3.
  
Actual results:
Above message

Expected results:
Get the missing file and continue

Additional info:

Comment 1 seth vidal 2008-12-11 18:19:13 UTC
If you run it as root does it work?

Comment 2 Horst H. von Brand 2008-12-11 19:37:27 UTC
Yes, running as root does work.

Comment 3 seth vidal 2008-12-11 19:43:21 UTC
right, then what is it you want this to do? The data yum needs to do the lookup is not present and you're not running as root. So it can't write to the paths where it normally would.