LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-29-2008, 04:49 AM   #1
dijeshkk
Member
 
Registered: Aug 2008
Posts: 35

Rep: Reputation: 15
Post Yum Not Working


im using fedora core 8....im using yum for software updates....it was working properly till yesterday . now its showing an error like this

Loading "priorities" plug in
Options Error: Error parsing 'file://media/Fedora 8 i386 DVD': URL must be http, ftp, file or https not ""


when i tried to use add or remove software option it gives a bug report lsayin exception occurred

i want to add fedora installation cd as one of the repositories ..

the bug report im getting is like this


Component: pirut
Summary: TB65e8237b config.py:84:__set__:ValueError: Error parsing 'file://media/Fedora 8 i386 DVD': URL must be http, ftp, file or https not ""

Traceback (most recent call last):
File "/usr/sbin/pirut", line 476, in <module>
main()
File "/usr/sbin/pirut", line 469, in main
pm = PackageManager(options.config, options.onlyrepo)
File "/usr/sbin/pirut", line 63, in __init__
GraphicalYumBase.__init__(self, False, config)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__
plugin_types=(yum.plugins.TYPE_CORE,))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 116, in doConfigSetup
errorlevel=errorlevel)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 167, in _getConfig
self.getReposFromConfig()
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 240, in getReposFromConfig
thisrepo = self.readRepoConfig(parser, section)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 262, in readRepoConfig
repo.populate(parser, section, self.conf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 401, in populate
setattr(self, name, value)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 84, in __set__
raise ValueError('Error parsing %r: %s' % (value, str(e)))
ValueError: Error parsing 'file://media/Fedora 8 i386 DVD': URL must be http, ftp, file or https not ""

Local variables in innermost frame:
obj: InstallMedia
self: <yum.config.UrlListOption object at 0x9edbe8c>
e: URL must be http, ftp, file or https not ""
value: file://media/Fedora 8 i386 DVD
 
Old 08-29-2008, 08:50 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
What is the output of 'yum repolist' ?
What is the content of the '.repo' file in '/etc/yum.repos.d' that contains the repository information for the DVD?
Can you try 'yum --noplugins update' ?
 
Old 08-29-2008, 09:27 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,843

Rep: Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711
that is odd
Quote:
i want to add fedora installation cd as one of the repositories
most want that off if somehow it is on after the install ,because the software on the dvd is old
 
Old 08-30-2008, 02:14 AM   #4
dijeshkk
Member
 
Registered: Aug 2008
Posts: 35

Original Poster
Rep: Reputation: 15
yum repolist

i tried yum repolist and yum-no plugins update i got an output like this

Loading "priorities" plugin
Options Error: Error parsing 'baseurl = file://media/Fedora 8 i386 DVD': URL must be http, ftp, file or https not ""

/etc/yum.repos.d/Fedora-install-media.repo is like this


InstallMedia]
name = Fedora 8
mediaid=1194015397.199387
metadata_expire=-1
gpgcheck = 0
cost=500
baseurl = baseurl = file://media/Fedora 8 i386 DVD
 
Old 08-30-2008, 03:23 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,843

Rep: Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711
delete /etc/yum.repos.d/Fedora-install-media.repo
and install lvina repo
http://www.mjmwired.net/resources/mj...ra-f8.html#yum
but do not use " sudo " unless you have ALREADY set it up -- use " su - "
example:
Code:
su -
( your root password when asked)
rpm -ivh http://rpm.livna.org/livna-release-8.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
so yum repolist did NOT give you a list of turned on repo's
Code:
su -
yum repolist
 
Old 07-23-2009, 08:53 PM   #6
wikopl
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
No answers here nor in the net

Hi
I have exactly the same problem, i.e.
[root@localhost etc]# yum repolist
Loaded plugins: refresh-packagekit
Options Error: Error parsing 'file:///media/Fedora 11 i386 DVD': URL must be http, ftp, file or https not ""

The reason why I would like to add a repo from a DVD (as somebody above questioned it is odd) is my recent upgrade to Fedora 11. I see no reason why to download everything from the net if many RPMs are on DVD already. Especially that I am limited with monthly download allowance (mobile broadband).
 
Old 07-24-2009, 02:18 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,843

Rep: Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711
what is on the dvd is OLD and UNSTABLE . The sound is broken and the Updates will fix that .there was also a bug in the wireless that was fixed . there is a kernel update that FIXES a KNOWN exploit .

i have already had over 300 updates to fix things from the dvd .

if you do not want UPDATES to fix things on the "stable" and i put that in quotes because fedora is a TESTING DESTRO AND NOT EVERYTHING WILL WORK OUT OF THE BOX


install CentOS 5.3 or BUY a license for RHEL 5.3 .

If you do not want to install updates then do not use Fedora . With fedora you will need to reinstall every 6 months when a new version comes out. then install approx. 1 to 5 gig's of updates.
 
Old 03-16-2011, 12:10 PM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Rep: Reputation: 31
I know this is an old post but I just had the same issue with Oracle enterprise linux so in case anyone has the problem.

I ran this
Code:
ls /etc/yum.repos.d
Found a bad repo and deleted it
Code:
ls /etc/yum.repos.d
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not working dale_chip Linux - Networking 4 07-03-2007 11:51 AM
Why is YUM not working? rayj00 Linux - Software 2 10-07-2006 09:44 PM
Getting and working with YUM redhat beginer Linux - Software 3 04-24-2005 12:20 PM
Yum not working acidblue Fedora 3 10-24-2004 08:47 PM
Yum Not working ntesla Linux - Software 2 08-06-2004 09:51 AM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration