When installing the package with yum install, the error "IOError: <urlopen error unknown url type: media>" prompted.

Solution Unverified - Updated -

Issue

When running yum install pkg-name, an error is found and we cannot run the command successfully.

# yum install zsh
....
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for zsh to pack into transaction set.
media://1250663123.136977%231/zsh-4.2.6-3.el5.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve zsh-4.2.6-3.el5.i386.rpm from server
error was [Errno 4] IOError: <urlopen error unknown url type: media>

Environment

  • Red Hat Enterprise Linux 5.0 and 5.1

  • A package repository is set up locally

  • The system is not registered to RHN

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content