1

I have installed php, mysql, httpd on my vps. But when I try upgrade php via yum I get the following error.

[root@ns1 home]# yum --enablerepo=remi update php

Package(s) php available, but not installed.
No Packages marked for Update

Then I am trying to install it with the following command but I get a "Segmentation fault".

[root@ns1 home]# yum --enablerepo=remi install php"

Yum update without a package is also not working:

[root@ns1 home]# yum update

Freeing read locks for locker 0x1ab: 23312/140158884435712
Freeing read locks for locker 0x1ad: 23312/140158884435712
Freeing read locks for locker 0x1b3: 23312/140158884435712
Freeing read locks for locker 0x1b4: 23312/140158884435712
Freeing read locks for locker 0x1b5: 23312/140158884435712
Freeing read locks for locker 0x1b6: 23312/140158884435712

I tried to clean cache but no luck.

cd /var/lib

rm __db*

rpm --rebuilddb

I waiting for your suggestions guys. Thank you very much!!!

  • I don't understand your problem discription... – Jodka Lemon Dec 20 '15 at 17:10
  • Yum is not working!!! – UniCredito Dec 20 '15 at 17:12
  • 1
    Yes, I do understand, that you have a problem with yum. What happens, when you just runyum upgrade? – Jodka Lemon Dec 20 '15 at 17:28
  • i have installed php [root@ns1 home]# php -v PHP 5.4.36 (cli) I couldn't upgrade php via yum. Yum gives me this error Package(s) php available, but not installed. No Packages marked for Update – UniCredito Dec 20 '15 at 17:39
  • 1
    Why do you have double quotes at the end of the command? – doktor5000 Dec 21 '15 at 19:43
1

It has been suggested here that it may be a lack of memory on the VPS and to try to resolve the issue by either shutting down running services or add a swap file. Then run

package-cleanup --cleandupes

prior to running other updates. One comment stated that stopping httpd service to do the yum updates worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.