Unable to locate package php5 6

TL;DR: You can't install php5.6 on 14.04, consider upgrade releases.


Php 5.6 is still available on Ondrej's repository.

:~$ apt-cache policy php5.6
php5.6:
  Installed: 5.6.40-6+ubuntu18.04.1+deb.sury.org+3
  Candidate: 5.6.40-7+ubuntu18.04.1+deb.sury.org+1
  Version table:
     5.6.40-7+ubuntu18.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main i386 Packages
 *** 5.6.40-6+ubuntu18.04.1+deb.sury.org+3 100
        100 /var/lib/dpkg/status

The problem is you're using Ubuntu 14.04 which has reached End Of Life, it is recommended that you update to newer version.

The ppa maintainer has dropped support for Ubuntu 14.04, the supported releases is as follow:

  • Ubuntu 16.04 Xenial
  • Ubuntu 18.04 Bionic
  • Ubuntu 18.10 Cosmic
  • Ubuntu 19.04 Disco

You have to upgrade/fresh install above version of Ubuntu to get php5.6 working.

I think you'd want to upgrade to Xenial since it doesn't require any fresh installing method and can be upgraded directly.

Related How to install software or upgrade from an old unsupported release?

currently I want to update my old php 5.6 application in ubuntu xenial 16.04.6 with php5.6-zip extension.

sudo apt-get install php5.6-zip

E: Unable to locate package php5.6-zip
E: Couldn't find any package by glob 'php5.6-zip'
E: Couldn't find any package by regex 'php5.6-zip'

tried to add the ppa repository sudo add-apt-repository -y ppa:ondrej/php5-5.6

The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6'

Then tried to run sudo add-apt-repository -y ppa:ondrej/php and sudo apt-get install php5.6-zip

still got the unable to locate package php5.6-zip error. Btw there is no php5.6-zip from apt-cache policy php5.6 command. Does anyone have solution regarding this problem? your help would be much appreciated. Thank you

I am using php5.6 in my docker - FROM romeoz/docker-phpfpm:5.6
and below installation is failing all of sudden today, it was working fine when I last checked couple of days ago..please help!!

RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

RUN apt-get update && apt-get install -y --no-install-recommends
libapache2-mod-php5.6
php5.6
php5.6-cli
php5.6-curl
php5.6-dev
php5.6-odbc
php5.6-mbstring
php5.6-mcrypt
php5.6-mysql
php5.6-xml
php5.6-xmlrpc
php5.6-soap

Error: E: Unable to locate package libapache2-mod-php5.6
E: Couldn't find any package by glob 'libapache2-mod-php5.6'
E: Couldn't find any package by regex 'libapache2-mod-php5.6'
E: Unable to locate package php5.6-dev
E: Couldn't find any package by glob 'php5.6-dev'
E: Couldn't find any package by regex 'php5.6-dev'
E: Unable to locate package php5.6-odbc
E: Couldn't find any package by glob 'php5.6-odbc'
E: Couldn't find any package by regex 'php5.6-odbc'
E: Unable to locate package php5.6-xmlrpc
E: Couldn't find any package by glob 'php5.6-xmlrpc'
E: Couldn't find any package by regex 'php5.6-xmlrpc'
E: Unable to locate package php5.6-soap

  • Unable to locate package php5 6
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Specialised Support
  • Ubuntu Servers, Cloud and Juju
  • Server Platforms
  • Unable to install php5.6-fpm on Ubuntu 16.04

  1. Unable to install php5.6-fpm on Ubuntu 16.04

    Hello All,

    We are trying to install php5.6-fpm on Ubuntu 16.04 server but we unable to install. We are following the below steps to install.

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa

    Unable to locate package php5 6
    ndrej/php
    sudo apt-get update

    sudo apt-get install -y php5.6

    Error while installing:-
    $apt-get install php5.6-fpm
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package php5.6-fpm
    E: Couldn't find any package by glob 'php5.6-fpm'
    E: Couldn't find any package by regex 'php5.6-fpm'

    Can someone help me with the possible solution to install php 5.6-fpm


  2. Re: Unable to install php5.6-fpm on Ubuntu 16.04

    16.04 reached end of life in April unless you have Extend Maintenance Security. That may explain why the package is not found.
    https://ubuntu.com/security/esm


  3. Re: Unable to install php5.6-fpm on Ubuntu 16.04

    Hello Frogs,

    Thanks for the update. We are using Ubuntu 16.04 in Azure from Canonical publisher which comes with Extended Maintenance Security. Is there anything to be done to get php5.6-fpm to be installed.


  4. Re: Unable to install php5.6-fpm on Ubuntu 16.04

    Unable to locate package php5 6
    Originally Posted by kumar3314
    Unable to locate package php5 6

    Hello Frogs,

    Thanks for the update. We are using Ubuntu 16.04 in Azure from Canonical publisher which comes with Extended Maintenance Security. Is there anything to be done to get php5.6-fpm to be installed.

    I can't tell you tell you what package repositories other than security are available with EMS. The Ubuntu old repositories are available, but mainly for distribution upgrade purposes.


  5. Re: Unable to install php5.6-fpm on Ubuntu 16.04

    Thread moved to Server Platforms.


  6. Re: Unable to install php5.6-fpm on Ubuntu 16.04

    LOL

    You need to add this PPA . He does have a note about end-of release Ubuntu, but worth a try. He is the main maintainer for the PHP packages...

    Code:

    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get update
    sudo apt-get install php5.6-fpm

    Enjoy...

    Last edited by MAFoElffen; August 25th, 2021 at 02:37 AM.


Bookmarks

Bookmarks

Unable to locate package php5 6
Posting Permissions