LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum Not Working (https://www.linuxquestions.org/questions/linux-newbie-8/yum-not-working-666253/)

dijeshkk 08-29-2008 04:49 AM

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

mjmwired 08-29-2008 08:50 PM

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' ?

John VV 08-29-2008 09:27 PM

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

dijeshkk 08-30-2008 02:14 AM

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

John VV 08-30-2008 03:23 AM

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


wikopl 07-23-2009 08:53 PM

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).

John VV 07-24-2009 02:18 AM

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.

davholla 03-16-2011 12:10 PM

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


All times are GMT -5. The time now is 07:26 PM.