Remove php 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1
<p>I installed php on ubuntu 14.04 with nginx but the version installed was php 5.5.9. Since I wanted to upgrade it to php 5.6 I fired the below commands:</p>

<pre><code>sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
</code></pre>

<p>I got a message stating that the ppa is depricated but however php 5.6 was installed and working fine only that it was showing as <code>PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 (cli)</code> I later went on and entered the command <code>LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php</code> and <code>sudo apt-get install php5.6</code> which again installed php5.6 for me. </p>

<p>Now when I do: <code>php -v</code> I get <code>PHP 5.6.23-1+deb.sury.org~trusty+2 (cli)</code> and when I do: <code>php5 -v</code> I get <code>PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 (cli)</code> How do I remove the deprecated one?</p>