Friday, March 22, 2013

“IOError: urlopen error unknown url type: media” + RHEL Linux

Hey Friends,

Today i faced a different and new problem i.e. while using yum.repo. media error started coming. so i did some googling on it. find some good answers and used them.

1. the first answer i got was to check your repo file.
2. to check the dvd.
3. yes i want to mention that, yum list all, yum update commands were running properly.
but when it came to yum install "rpm" then it started giving problem or media error.

“IOError:

4. the google search suggested to use createrepo command while sitting on the directory where your dvd is or if you have copied all dvd data on your system for repository. this repository can be used to sync using HTTP, NFS, etc.

5.In my case createrepo command itself was not there in the OS. that is createrepo was not installed.

6. the create repo rpm was there in dvd but i was not able to install it due to that error again and again.
7. so just downloaded the rpm from RHEL site named as createrepo.
8. ran rpm -ivh "createrepo......" It got installed.
9. now ran the command from

#pwd
/mnt/Server/
#createrepo /mnt/Server

it created one repo and removed the media error after yum clean all.

10. Now #yum install "package name " worked.


[root@redhat yum.repos.d]# yum install xorg-x11-proto-devel.i386 Loading "installonlyn" plugin Loading "rhnplugin" 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 xorg-x11-proto-devel to pack into transaction set.

media://1170972069.396645%232/xorg-x11-proto-devel-7.1-9.fc6.i386.rpm: [Errno 4] IOError: Trying other mirror.

Error: failed to retrieve xorg-x11-proto-devel-7.1-9.fc6.i386.rpm from Installer error was [Errno 4] IOError: [root@redhat yum.repos.d]# [root@redhat yum.repos.d]#

 

No comments: