Results 1 to 3 of 3

Thread: Yum problem

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Default Yum problem

    I have a yum problem.

    I have a VPSlink 2 vps. (128 MB of RAM)

    I installed centos with Hostin-a-box

    The server is totally fresh. I have made nothing yet.

    When I try to run this command:
    yum install php-mbstring

    I get the following result:
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    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/yummain.py", line 229, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
    File "/usr/share/yum-cli/cli.py", line 339, in doCommands
    self._getTs(needTsRemove)
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
    self.repos.populateSack(which=repos)
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
    self.doSetup()
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
    self.ayum.plugins.run('postreposetup')
    File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
    File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
    File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
    File "/usr/lib/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
    thread.error: can't start new thread



    Then,
    I run this command:
    yum clean metadata

    I get this result:
    Loaded plugins: fastestmirror
    4 metadata files removed
    0 sqlite files removed
    0 metadata files removed



    Then,
    I run this command:
    yum clean all

    I get his result:
    Loaded plugins: fastestmirror
    Cleaning up Everything
    Cleaning up list of fastest mirrors


    Then I run this command:
    yum install php-mbstring

    I get the same result which I copy below just in case:

    Loaded plugins: fastestmirror
    Determining fastest mirrors
    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/yummain.py", line 229, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
    File "/usr/share/yum-cli/cli.py", line 339, in doCommands
    self._getTs(needTsRemove)
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
    File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 591, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 434, in _getSacks
    self.repos.populateSack(which=repos)
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 223, in populateSack
    self.doSetup()
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 71, in doSetup
    self.ayum.plugins.run('postreposetup')
    File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
    File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
    File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
    File "/usr/lib/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
    thread.error: can't start new thread


    What can I do now? I would appreciate any help a lot.

    Thank you.

  2. #2
    Join Date
    Sep 2009
    Posts
    2

    Default

    I found the solution at
    www-linuxquestions-org/questions/fedora-35/prob-with-yum-errno-1-metadata-file-does-not-match-checksum-trying-other-mirro-462093/

    (I am copying the URL to respect their hardwork)

    this is the solution (I applied this and worked for me)
    "vi /etc/yum/pluginconf.d/fastestmirror.conf" and set "enable=0"

  3. #3
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    Thank you for the report - our template developers will need to take a look at the OpenVZ Hostinabox template.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •