Skip to main content

cPanel & WHM was blocked

Comments

6 comments

  • Jcats
    Cannot upgrade because yum is locked
    # ps aux |grep yum|grep -Ev grep
    What does that provide. If nothing.
    # rm -f /var/run/yum.pid # yum clean all # /scripts/upcp --force
    0
  • Infopro
    This post by cPanelMichael may be of some use to you: Cpanel version change is blocked - cPanel Forums
    0
  • Nirjonadda
    This post by cPanelMichael may be of some use to you: Cpanel version change is blocked - cPanel Forums

    Does not work. Please let me know.
    login as: root Using keyboard-interactive authentication. Password: Last login: Sat Oct 3 10:25:00 2015 from 151.55.132.147 root@na [~]# ps aux|grep rpm root 13712 0.0 0.0 103300 868 pts/0 S+ 09:31 0:00 grep rpm root@na [~]# ps aux|grep yum root 13718 0.0 0.0 103300 872 pts/0 S+ 09:31 0:00 grep yum root@na [~]# mkdir /root/old_rpm_dbs/ root@na [~]# mv /var/lib/rpm/__db* /root/old_rpm_dbs/ root@na [~]# rpm --rebuilddb root@na [~]# yum update Loaded plugins: fastestmirror, tsflags, universal-hooks Setting up Update Process 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 300, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 146, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 440, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 233, in doCommand return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to')) File "/usr/share/yum-cli/cli.py", line 728, in updatePkgs self.update() File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3791, in update updates = self.up.getUpdatesTuples() File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 926, in up = property(fget=lambda self: self._getUpdates(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 744, in _getUpdates self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList()) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 907, in pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 687, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.6/site-packages/yum/repos.py", line 295, in populateSack self.doSetup() File "/usr/lib/python2.6/site-packages/yum/repos.py", line 110, in doSetup self.ayum.plugins.run('postreposetup') File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/fastestmirror.py", line 185, in postreposetup_hook read_timedhosts() File "/usr/lib/yum-plugins/fastestmirror.py", line 269, in read_timedhosts host, time = line.split() ValueError: too many values to unpack root@na [~]#
    0
  • cPanelMichael
    Hello :) Try running the following command to see if it allows "yum update" to succeed:
    yum clean all
    Thank you.
    0
  • Nirjonadda
    Thanks, This is working to update !
    0
  • cPanelMichael
    I am happy to see that command helped. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.