Bug 220084

Summary: yum failing to install with file:// based repo
Product: Red Hat Enterprise Linux 5 Reporter: Dax Kelson <dkelson>
Component: yumAssignee: Jeremy Katz <katzj>
Severity: high Docs Contact:
Priority: medium    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-19 13:52:45 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Dax Kelson 2006-12-18 15:11:41 EST
Description of problem:

I setup a repo with the following:

name=RHEL $releasever - Server - $basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta

Commands like "yum list" and "yum search foo" work fine. However, when I try to
install something, it blows up:

# yum install bind-chroot
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for bind-chroot to pack into transaction set.
media://1163270928.939995%232/bind-chroot-9.3.3-5.el5.i386.rpm: [Errno 4]
IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve bind-chroot-9.3.3-5.el5.i386.rpm from RHEL5-Server
error was [Errno 4] IOError: <urlopen error unknown url type: media>

Version-Release number of selected component (if applicable):

I opened a yum bug upstream at:
Comment 1 Dax Kelson 2006-12-18 16:02:45 EST
According to upstream this will be fixed in yum at some point. 

Being able to use the same directory tree to install from with anaconda and then
use with yum is extremely useful in a isolated network without RHN (not at all
Comment 2 Jeremy Katz 2006-12-19 13:52:45 EST

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