LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-24-2010, 10:49 PM   #1
yuanjunliang
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
yum IOError: <urlopen error unknown url type: media>


My yum repository file:

# cat yjltest.repo
[yjltest]
name=yjltest
baseurl=http://192.168.0.103/Server
enabled=1
gpgcheck=0

Use web browser navigate to http://192.168.0.103/Server, see all packages

Error message when install package
# yum install vsftpd
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 vsftpd to pack into transaction set.
media://1192656534.547140%232/vsftpd-2.0.5-10.el5.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve vsftpd-2.0.5-10.el5.i386.rpm from yjltest
error was [Errno 4] IOError: <urlopen error unknown url type: media>
 
Old 01-26-2010, 06:02 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
It looks to me like a problem with the repository. Is this a
custom one or a copy? If a copy, did you recursively copy all
of the repodata directories?
 
Old 01-27-2010, 07:29 PM   #3
yuanjunliang
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Original Poster
Rep: Reputation: 0
it copied from the Install DVD.

I ran the createrepo to create the repository. It works.
# cd /share_file/Server
# createrepo .

Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum IOError Styles Linux - Newbie 27 09-20-2011 03:36 PM
error timeout: <urlopen error timed out> when using yum on centos5.2 dadidudedo Linux - General 9 05-01-2009 04:21 AM
Unknown media type in command line kabith Linux - Newbie 1 03-19-2009 06:06 PM
Help!! Yum Ioerror? sean_zhang Linux - Software 2 01-12-2009 07:15 PM
yum 'urlopen error (-2, 'Name or service not known')' gozza11 Linux - Networking 1 05-16-2006 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration