LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-24-2005, 04:25 AM   #1
linux juggler
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 25

Rep: Reputation: 15
yum chec-update error


hi:
when i try to stat yum with : yum check-update i got this error ?
Code:
[root@linux-juggler juggler]# yum check-update
Setting up repositories
Traceback (most recent call last):
  File "/usr/bin/yum", line 15, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 72, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 476, in doCommands
    ypl = self.returnPkgLists()
  File "/usr/share/yum-cli/cli.py", line 1083, in returnPkgLists
    ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
  File "__init__.py", line 857, in doPackageLists
  File "/usr/share/yum-cli/cli.py", line 72, in doRepoSetup
    yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
  File "__init__.py", line 208, in doRepoSetup
  File "repos.py", line 516, in baseurlSetup
  File "repos.py", line 768, in getMirrorList
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 444, in urlopen
    return default_grabber.urlopen(url, **kwargs)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 575, in urlopen
    return self._retry(opts, retryfunc, url)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 547, in _retry
    return apply(func, (opts,) + args, {})
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 574, in retryfunc
    return URLGrabberFileObject(url, filename=None, opts=opts)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 727, in __init__
    self._do_open()
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 794, in _do_open
    fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 885, in _make_request
    fo = opener.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 573, in <lambda>
    lambda r, proxy=url, type=type, meth=self.proxy_open: \
  File "/usr/lib/python2.4/urllib2.py", line 580, in proxy_open
    if '@' in host:
TypeError: iterable argument required
any idea?
by the way i have installed the yum-fedorafaq and used his yum.conf file and got the same error
 
Old 08-24-2005, 06:28 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
I've just done the same with yum 2.3.2 in FC4 with 2.6.11-1.1369_FC4 kernel. No trouble.

There are some bugs in earlier versions of yum.
To diagnose this problem, you should tell us your version of fedora (put that in your profile), the version of yum (yum --version) and your kernel version (uname -r).

Googling your error message gets the impression that you are trying to use yum through a proxy? Is this correct?
 
Old 08-24-2005, 07:43 AM   #3
linux juggler
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
i have yum 2.3.2 in FC4 with 2.6.11-1.1369_FC4 kernel.
yes am using a proxy , and i try to change the yum.conf and add the proxy settings and didnt work ;-(
 
Old 08-24-2005, 03:52 PM   #4
sanchez348
LQ Newbie
 
Registered: Aug 2005
Location: Michigan
Posts: 2

Rep: Reputation: 0
I am having the same problem!!
FC4 kernel 2.6.11-1.1369 / YUM 2.3.2 / PYTHON 2.4.1 in a minimal server configuration behind a corporate firewall.


[root@overseer etc]# yum check-update
Repository updates-released already added, not adding again
Repository base already added, not adding again
Traceback (most recent call last):
File "/usr/bin/yum", line 27, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 75, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 207, in getOptionsConfig
self.plugins.setCmdLine(opts, self.cmds)
AttributeError: DummyYumPlugins instance has no attribute 'setCmdLine'


I have reinstalled FC4 (possible conflict?), edited yum.conf with verified baseurls and mirrors, along with fedora repos.

Any ideas will be greatly appreciated!
 
Old 08-24-2005, 10:23 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
This is a very common problem - it is due to the proxy configuration not being set up properly for yum. You can set the proxy in yum.conf or globally ... see below. Otherwise, google for yum proxy and read the many many pages ...

Quote:
beatlelane in LQ
$set "http://myproxy.mydomain:8080/"
$export proxy_http="http://myproxy.mydomain:8080/"
Then there is this:
http://www.fedoraforum.org/forum/sho...=&threadid=742

I can't really get very specific without sitting in front of your machine... so I'm concentrating on helping you help yourselves if you see what I mean. Have fun

Last edited by Simon Bridge; 08-24-2005 at 10:36 PM.
 
Old 08-25-2005, 06:49 AM   #6
linux juggler
LQ Newbie
 
Registered: Oct 2003
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
thank yuo now its work fine ...
 
Old 08-25-2005, 12:36 PM   #7
sanchez348
LQ Newbie
 
Registered: Aug 2005
Location: Michigan
Posts: 2

Rep: Reputation: 0
I am not using a proxy, could there be another reason.
There is an argument not being passed. I have googled the error to no assistance.

I have now got the CORRECT DNS addresses, so I can now get name resolution.
Still cannot run YUM or up2date ( which is not recommended )

Thanks in advance.
 
Old 08-25-2005, 07:45 PM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
linux juggler: Great. That one took a bit of effort - please send affero (click "thanks" and follow your nose.)

sanchez348: You don't seem to have the same problem (except in the superficial sence that yum gives errors.) My apologies for not reading the whole text of your post.

Obvious things - try it without the firewall.

However:
This sort of thing sometimes happens when you change python version without also updating YUM - however, you have the same YUM/Python that I have... so it should work.
Is this the default server install? It sounds like you've been having trouble with server internet connections anyway...

The YUM list can be found from:
https://lists.linux.duke.edu/mailman/listinfo/yum

To debug this, you need to find the earliest error - the one that started it all off. It may be as simple as a missing package you wouldn't suspect.
 
Old 09-04-2005, 01:03 PM   #9
cristina_crow
LQ Newbie
 
Registered: Apr 2005
Location: Bucharest
Distribution: debian lenny, RHEL AS3, gentoo 1.12
Posts: 5

Rep: Reputation: 0
hello

well, I also have a http proxy connection
when trying to use yum, i get the following error message:

[root@localhost yum.repos.d]# yum update
Setting up Update Process
Setting up repositories
http://ftp.belnet.be/packages/dries....ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: dries
failure: repodata/repomd.xml from dries: [Errno 256] No more mirrors to try.

if I use closer baseurls or mirrorlist, I don't get the [Errno 4], but the [Errno 256] is always present
what can I do?

thank you very much
 
Old 09-06-2005, 12:20 AM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
This sort of thing can happen when the servers are being updated ... try again.

ref: http://forums.fedoraforum.org/archiv...p/t-48250.html

Interesting - cannot find anything from SuSE ... looking into it...
It seems SuSE likes apt better, but you can get yum repos if you put /yum on the end of the url for the apt repostitory (9.1-9.3). None of the url's in your post have this, could it be that you are pointing yum to apt repositories?

http://rubberturnip.org.uk/index.cgi/2005/08/06/

Whatever - I'd use apt for SuSE - it's more polished.
 
  


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 update is giving error namit Linux - Software 14 07-20-2007 11:02 AM
Yum Update - Error: Missing Dependencies? gandalf2041 Fedora 8 09-07-2005 07:07 PM
yum error, can't update system simeandrews Fedora 8 09-01-2005 11:35 AM
Yum Update error fcoutel Red Hat 1 12-30-2004 09:22 AM
Error message using yum update Seventh_Warrior Fedora 7 06-23-2004 11:47 AM


All times are GMT -5. The time now is 10:41 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