3

I have Ubuntu 14.04, wanted to try php5.6.

Added ppa:ondrej/php5-5.6. Updated. Installed php5. Got php5.6. Did not find some extensions and decided to switch back to ubuntu's own php 5.5.

Deleted that ppa. Updated. Uninstalled php5. Installed php5. apt-get says it is installing php5.5 but after that php -v says php5.6. Tried almost the same in different combinations several times with clean, purge, remove, autoremove etc. No result.

Even deleted /usr/bin/php to make sure it is restored upon installation. But it is not.

not only I cannot delete php5.6 but apache2 as well. and now it messed up with my nginx

Braiam
  • 66,947
  • 30
  • 177
  • 264
coviex
  • 201
  • 1
  • 2
  • 5
  • possible duplicate of [How can PPAs be removed?](http://askubuntu.com/questions/307/how-can-ppas-be-removed) add back the PPA, then use `ppa-purge`. – muru Oct 21 '14 at 14:49
  • 1
    that question helps but not a duplicate as motivation is completely different. have to accept my own answer because I don't know how to accept comment as the right answer. – coviex Oct 21 '14 at 15:55

1 Answers1

5

Used ppa-purge ppa:ondrej/php5-5.6 as suggested by muru. It helped. Had to fix all configs manually though.

coviex
  • 201
  • 1
  • 2
  • 5