3

I want to update my php to new version. Dealing with this source: https://webtatic.com/packages/php56/#comment-139854

And now I can't use yum commands. Anytime when I'm trying install something or update I receive: xz compression not available.

PHP was not updated of course but I need to.

I hope you will help me with this. My OS: CentOS 6.5 (Plesk 12) in OVH (VPS).

gicu
  • 35
  • 1
  • 1
  • 6
  • You have an administration control panel installed, which makes all kinds of odd changes to system, and then you try to manually upgrade PHP. I think the only reasonable way to get the system working again is to restore latest working backup. And, to upgrade PHP, you want to contact OVH / Plesk support on how to do it with Plesk. – Tero Kilkanen Mar 16 '15 at 12:27
  • Thank you. I will contact ovh but I don't think they can halp me with. So I can upgrade my php using plesk? – gicu Mar 16 '15 at 12:40
  • [Administration panels are off topic](http://serverfault.com/help/on-topic). [Even the presence of an administration panel on a system,](http://meta.serverfault.com/q/6538/118258) because they [take over the systems in strange and non-standard ways, making it difficult or even impossible for actual system administrators to manage the servers normally](http://meta.serverfault.com/a/3924/118258), and tend to indicate low-quality questions from *users* with insufficient knowledge for this site. – HopelessN00b Mar 23 '15 at 21:49

1 Answers1

4

It's probably due to a corrupt epel-release repo file.

Try rm -rf /var/cache/yum/x86_64/6/epel, then yum remove epel-release and install a correct one.

Xavier Lucas
  • 13,095
  • 2
  • 44
  • 50
  • Command error: No such option: -r – gicu Mar 16 '15 at 13:07
  • @gicu What do you mean ? – Xavier Lucas Mar 16 '15 at 13:09
  • I received this error after pasting your command No such option: -r – gicu Mar 16 '15 at 13:10
  • Are you actually using the command line ? There's no reason this would fail, it's the most basic command. Except if you have set up weird aliases. – Xavier Lucas Mar 16 '15 at 13:11
  • [root@vps133375 ~]# yum remove epel-release Wczytane wtyczki: fastestmirror Ustawianie procesu usuwania Brak wyników dla parametru: epel-release Loading mirror speeds from cached hostfile * webtatic: uk.repo.webtatic.com Błąd: xz compression not available (some commands is in PL language) – gicu Mar 16 '15 at 13:18
  • 1
    @gicu You need to remove the cached files with the rm command. LZMA compression is used for EPEL 7 repo metadata and requires a LZMA lib but cross repository import should not happen. Also, don't use cpanel / plesk or all this crap. – Xavier Lucas Mar 16 '15 at 13:35
  • Ok, when I put paste this command: rm -rf /var/cache/yum/x86_64/6/epel - nothing happened. What should I do now? Forgive me I'm not to good with this :) – gicu Mar 16 '15 at 13:37
  • @gicu Let's continue in a [chat room](http://chat.stackexchange.com/rooms/21982/xz-compression-not-available-yum-error-on-centos) to avoid spamming this answer. – Xavier Lucas Mar 16 '15 at 13:41
  • I can't: You must have 20 reputation on The Stack Exchange Network to talk here. :-P So because rules and FAQ I have to spam here :-) – gicu Mar 16 '15 at 13:50