Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have RHEL which is deployed from Amazon AMI, and yum is somehow broken. I must use that AMI because of corporate software installed on it. There is no way to rollback to previous state. This is the output of all yum commands except yum delete:

[root@ip-10-0-7-208 ~]# yum update
Loaded plugins: amazon-id, rhui-lb, security
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/", line 345, in doCommands
  File "/usr/lib/python2.4/site-packages/yum/", line 101, in _getTs
  File "/usr/lib/python2.4/site-packages/yum/", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/", line 661, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/", line 501, in _getSacks
  File "/usr/lib/python2.4/site-packages/yum/", line 232, in populateSack
  File "/usr/lib/python2.4/site-packages/yum/", line 79, in doSetup'postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/", line 89, in postreposetup_hook
    path = urlparse.urlparse(repo.mirrorlist)[2]
  File "/usr/lib64/python2.4/", line 50, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib64/python2.4/", line 89, in urlsplit
    i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
share|improve this question
Seems to break while parsing the repo list, check your repos, also try the yum plugins and see if that helps. – Petter H Jun 3 '15 at 14:49
Find the person who created the AMI and have them fix it. – Michael Hampton Jun 3 '15 at 16:20
I've solved it. It is known bug in RHEL 5.5 when instance is in Amazon VPC. Source: – azivanovic Jun 4 '15 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.