Report this

What is the reason for this report?

I am unable to update php 5.5.9 to 7.2 on ubuntu 14.04 getting error as unable to locate package. URGENT

Posted on May 21, 2019

Hi Community Members,

I am having some issues in updating the PHP version from 5.59 to 7 or 7.1 or 7.2. I tried below commands

sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.2

but i am getting error as

unable to locate package php7.2 couldn’t find any package by regex ‘php7.2’

Also followed but having same error

https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04

How To Upgrade to PHP 7 on Ubuntu 14.04 (Answers provided frequently asked questions)

Any help/suggestion/guidance will be appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi restart your Apache server and update the packages

Have you found the solution?

did u ever figure this out . Restarting Apache does nothing

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.