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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.