yum が動作せず、パッケージをアップデートできない

Solution Unverified - Updated -

Issue

  • yum list コマンドを実行すると、以下のような ssl エラーが発生します。
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 139, in getLoginInfo
    login()
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 98, in login
    li = server.up2date.login(systemId)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 64, in __call__
    raise up2dateErrors.SSLCertificateVerifyFailedError()
up2date_client.up2dateErrors.SSLCertificateVerifyFailedError:The SSL certificate failed verification.
  • https の代わりに http を使用すると登録できますが、yum ツールをアップグレードすると以下のエラーが発生します。
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 209, in _getFile
    start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in _noExceptionWrappingGet
    return result
UnboundLocalError: local variable 'result' referenced before assignment

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Classic Registration

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In