LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   yum chec-update error (https://www.linuxquestions.org/questions/fedora-35/yum-chec-update-error-356421/)

linux juggler 08-24-2005 04:25 AM

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

Simon Bridge 08-24-2005 06:28 AM

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?

linux juggler 08-24-2005 07:43 AM

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 ;-(

sanchez348 08-24-2005 03:52 PM

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!

Simon Bridge 08-24-2005 10:23 PM

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

linux juggler 08-25-2005 06:49 AM

thank yuo now its work fine ...

sanchez348 08-25-2005 12:36 PM

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.

Simon Bridge 08-25-2005 07:45 PM

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.

cristina_crow 09-04-2005 01:03 PM

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

Simon Bridge 09-06-2005 12:20 AM

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.


All times are GMT -5. The time now is 07:52 AM.