LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help!! Yum Ioerror? (http://www.linuxquestions.org/questions/linux-software-2/help-yum-ioerror-644413/)

sean_zhang 05-23-2008 09:48 PM

Help!! Yum Ioerror?
 
OS: RHEL5.1
I created a local yum repo. It worked fine in the last a few months, but today I got the following error message when using yum to install rpms (yum list still works).
Quote:

Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" 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 nmap-frontend to pack into transaction set.
media://1192656534.547140%233/nmap-frontend-4.11-1.1.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve nmap-frontend-4.11-1.1.i386.rpm from Server
error was [Errno 4] IOError: <urlopen error unknown url type: media>
I also tried the pirut. Here is error message:

Quote:

Component: Software Manager
Summary: TBe634e670 __init__.py:767:downloadHeader:RepoError: failed to retrieve nmap-frontend-4.11-1.1.i386.rpm from Server
error was [Errno 4] IOError: <urlopen error unknown url type: media>

Traceback (most recent call last):
File "/usr/sbin/pirut", line 334, in _apply
self.applyChanges(self.mainwin)
File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 557, in applyChanges
self.checkDeps(mainwin)
File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 322, in checkDeps
self.populateTs(keepold=0)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 153, in populateTs
self.downloadHeader(txmbr.po)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 767, in downloadHeader
raise Errors.RepoError, saved_repo_error
RepoError: failed to retrieve nmap-frontend-4.11-1.1.i386.rpm from Server
error was [Errno 4] IOError: <urlopen error unknown url type: media>

Local variables in innermost frame:
errors: {}
e: [Errno 2] No such file or directory: '//var/cache/yum/Server/headers/nmap-frontend-4.11-1.1.i386.hdr'
self: <__main__.PackageManager object at 0x92ce1cc>
saved_repo_error: failed to retrieve nmap-frontend-4.11-1.1.i386.rpm from Server
error was [Errno 4] IOError: <urlopen error unknown url type: media>
repo: Server
checkfunc: (<bound method PackageManager.verifyHeader of <__main__.PackageManager object at 0x92ce1cc>>, (<yum.sqlitesack.YumAvailablePackageSqlite instance at 0x970fdcc>, 1), {})
local: //var/cache/yum/Server/headers/nmap-frontend-4.11-1.1.i386.hdr
po: nmap-frontend - 2:4.11-1.1.i386
Here is my repo file:
Quote:

baseurl=file:///Data/RHEL5.1/Server/
enabled=1
gpgcheck=0
I also tried (autofs works):
Quote:

baseurl=file:///misc/cd/Server/
enabled=1
gpgcheck=0
I searched on Google but still don't know why this happens. I used yum to install some rpms yesterday! But it symply doesn't work now.
I didn't change any thing on my system. Strange~~~

ehawk 05-25-2008 09:07 AM

http://www.mail-archive.com/oscar-de.../msg08631.html

vakulb5678 01-12-2009 07:15 PM

yum giving error no.4 media not found
 
Hi Sean,

dear just try creating the repo again , by using createrepo command
i was also getting the sameissue but was able to overcome it by creating a new repo
hope this helps u out


All times are GMT -5. The time now is 03:48 AM.