Re: RHEL5 yum problem



McDougall, Marshall (FSH) wrote:
This is my first foray into RHEL5 and so far change is not so good. I
was quite comfortable with up2date, but alas it is not part of 5.
Locate doesn't seem to work very well either, but that is another story.


I am having some problems getting yum to run at all and I am not quite
sure if it's yum or python, as I am familiar with neither one. This is
compounded by the fact that I am behind a proxy and I am not completely
sure that I am getting through it with what ever yum is using to get
there. Currently, when I run yum I get the following:

[root@fsh1166db07x Server]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 102, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 359, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in
doRepoSetup
repo.setup(self.conf.cache)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in
setup
self._loadRepoXML(text=self)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in
_loadRepoXML
cache=self.http_caching == 'all')
File "/usr/lib/yum-plugins/rhnplugin.py", line 208, in
_YumRepository__get
start, end, copy_local, checkfunc, text, reget, cache)
File "/usr/lib/yum-plugins/rhnplugin.py", line 276, in
_noExceptionWrappingGet
http_headers=headers,
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
927, in urlgrab
return self._retry(opts, retryfunc, url, filename)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
845, in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
913, in retryfunc
fo = URLGrabberFileObject(url, filename, opts)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1001, in __init__
self._do_open()
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1072, in _do_open
fo, hdr = self._make_request(req, opener)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1172, 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 597, in proxy_open
return self.parent.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/site-packages/M2Crypto/m2urllib2.py", line
66, in https_open
h.request(req.get_method(), req.get_full_url(), req.data, headers)
File "/usr/lib/python2.4/httplib.py", line 804, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.4/httplib.py", line 827, in _send_request
self.endheaders()
File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
145, in endheaders
HTTPSConnection.endheaders(self)
File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
self._send_output()
File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
self.send(msg)
File "/usr/lib/python2.4/httplib.py", line 646, in send
self.connect()
File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
161, in connect
self._start_ssl()
File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line
176, in _start_ssl
self.sock.connect_ssl()
File "/usr/lib/python2.4/site-packages/M2Crypto/SSL/Connection.py",
line 149, in connect_ssl
return m2.ssl_connect(self.ssl, self._timeout)
M2Crypto.SSL.SSLError: unknown protocol

As I said before, I am not familiar with either yum or python. I have
read the faqs and docs and wiki at DUKE and been through RH KB and am no
further ahead. I really don't want to open a ticket with RH until I
have to because that in itself is kinda painful. If anyone can point me
in a proper direction I would appreciate. Thanks.

Regards, Marshall

Hi,

Check that your HTTP proxy allows SSL, that you have set the httpProxy
directive correctly ( httpProxy=server.name.blah:3128 for example ).
If your HTTP proxy requires authentication make sure the httpUser and
httpPassword dirctives are set too. The configuration should be the same
as your older RHEL systems BTW.

Also, there may be a problem with the initial release of yum-rhn plugin,
try using pup to update ( graphical ) first.

Cheers

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: yum update/install from a specific repo
    ... This plugin adds the command alias, ... Yum plugin to enable manual downgrading of packages ... Yum plugin to let Yum install only basearch packages. ...
    (Fedora)
  • Re: Yum FC6 error
    ... Loading "installonlyn" plugin ... That's my stablemirror plugin, not updated for FC6, probably not really ... yum-fastestmirror, part of yum. ... only a few FC6 packages and mostly FC5 packages. ...
    (Fedora)
  • Re: yum is needed by package yum
    ... $ sudo yum update yum ... Loading "kernel-module" plugin ... Beginning Kernel Module Plugin ... If you do not have a Red Hat Contract and do not want one, then you need to get support for your system elsewhere. ...
    (comp.os.linux.setup)
  • Yum proxy authentication problem in F11
    ... I tried to upgrade my F10 box to F11 with the preupgrade utility. ... and was working again except I can't launch yum anymore. ... Not loading "blacklist" plugin, as it is disabled ...
    (Fedora)
  • Re: Dependency issue trying to install mplayer
    ... Loading "refresh-updatesd" plugin ... yum install mplayer ...
    (Fedora)