Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 201323 - Yum exit with 'Error parsing baseurl'
Summary: Yum exit with 'Error parsing baseurl'
Status: CLOSED DUPLICATE of bug 212180
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-08-04 12:20 UTC by Mykola Ulianytskyi
Modified: 2014-01-21 22:54 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-11-29 17:02:50 UTC

Attachments (Terms of Use)

Description Mykola Ulianytskyi 2006-08-04 12:20:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv: Gecko/20060801 Fedora/ Firefox/ pango-text

Description of problem:
yum will not work if you have space symbol in baseurl

baseurl=file:///media/Fedora Core 6/RPMS/

If we replace ' ' to '%20' yum start to execute 'list' command but 'yum install some_package' failed with 'Error Downloading Packages: package_name: failure ... [Errno 256] No more mirrors to try' 

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

How reproducible:

Steps to Reproduce:
Insert space symbol in baseurl

Actual Results:

Expected Results:

Additional info:

Comment 1 Jeremy Katz 2006-08-07 15:12:34 UTC
Does it work if you quote it?  spaces can be used for separating args, so alone
there really isn't a way for them to work

Comment 2 Mykola Ulianytskyi 2006-08-07 15:26:17 UTC
> Does it work if you quote it? 

Comment 3 Julian Sikorski 2006-10-31 15:46:18 UTC
The issue is iirc not really caused by spaces in baseurl, but by media:/// entry
in DVD repodata.

Comment 4 Aleksandar Milivojevic 2006-11-29 16:34:11 UTC
I've run into the same problem with RHEL5 beta 2.  It's the media:/// stuff in
DVD repodata:

Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel-xen to pack into transaction set.
media://1163271601.930360%231/kernel-xen-2.6.18-1.2747.el5.x86_64.rpm: [Errno 4]
IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve kernel-xen-2.6.18-1.2747.el5.x86_64.rpm from
error was [Errno 4] IOError: <urlopen error unknown url type: media>

I don't remember having this problem with CentOS4 (RHEL4 clone) and yum that
came with it (ver. 2.4.x).  Maybe you could borrow some code back ;-)

Workaround is to copy installation media onto disk (if there's enough space) and
rebuild repodata stuff (using createrepo command), than point yum to on-disk
copy.  Tested on RHEL5 beta 2, works.  Downside is that it will waste couple of
gigs of disk space.  Upside is that you don't need to dig for that installation
media anymore ;-)

Comment 5 Jeremy Katz 2006-11-29 17:02:50 UTC

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

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

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