title: How to add curl on php7.2 and ubuntu 14
body: <p>I am trying to install curl on my ubunutu 14 server with php 7.2 installed. I run the following command:</p>
  <pre><code>sudo apt-get install php7.0-curl
  </code></pre>
  <p>but it gives error:</p>
  <blockquote>
  <p>Reading package lists... Done</p>
  <p>Building dependency tree</p>
  <p>Reading state information... Done</p>
  <p>E: Unable to locate package php7.0-curl</p>
  <p>E: Couldn't find any package by regex 'php7.0-curl'</p>
  </blockquote>
  <p>I then tried to resolve this issue by running commands:</p>
  <pre><code>sudo apt-add-repository ppa:ondrej/php
  sudo apt-get update
  sudo apt install apache2 libapache2-mod-php7.0 php7.0
  </code></pre>
  <p>But that also end up with same &quot;Couldn't find package&quot; error.</p>