How to correct the command for PHP 7.0.* in following PHP cli and git installation?












0















I'm using Ubuntu Linux 14.04 LTS 64-bit OS on my machine.



I just updated all the softwares and packages installed on my system by running following commands from the terminal :



sudo apt-get update

sudo apt-get upgrade


Now I'm using PHP 7.0.5, the latest current stable version of PHP.



For checking it I run the following command from the terminal :



php -v

PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


Now I was trying to install Composer(The Project Dependency Management Software). As a prerequisite it needs cli and Git to be installed so for it I typed in following command and got following error. How to resolve this error?



sudo apt-get install curl php5-cli git

Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
curl set to manually installed.
git is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
Recommends: php5-readline but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


The error I want to resolve is as below from above output :



Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
Recommends: php5-readline but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Someone please provide me the correct command I need to run from the terminal and remove this error.



I think it's occurring since I'm no more using PHP 5.5.9. Just provide me the necessary command.



Thanks in advance.










share|improve this question



























    0















    I'm using Ubuntu Linux 14.04 LTS 64-bit OS on my machine.



    I just updated all the softwares and packages installed on my system by running following commands from the terminal :



    sudo apt-get update

    sudo apt-get upgrade


    Now I'm using PHP 7.0.5, the latest current stable version of PHP.



    For checking it I run the following command from the terminal :



    php -v

    PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


    Now I was trying to install Composer(The Project Dependency Management Software). As a prerequisite it needs cli and Git to be installed so for it I typed in following command and got following error. How to resolve this error?



    sudo apt-get install curl php5-cli git

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    curl is already the newest version.
    curl set to manually installed.
    git is already the newest version.
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
    Recommends: php5-readline but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    The error I want to resolve is as below from above output :



    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
    Recommends: php5-readline but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    Someone please provide me the correct command I need to run from the terminal and remove this error.



    I think it's occurring since I'm no more using PHP 5.5.9. Just provide me the necessary command.



    Thanks in advance.










    share|improve this question

























      0












      0








      0








      I'm using Ubuntu Linux 14.04 LTS 64-bit OS on my machine.



      I just updated all the softwares and packages installed on my system by running following commands from the terminal :



      sudo apt-get update

      sudo apt-get upgrade


      Now I'm using PHP 7.0.5, the latest current stable version of PHP.



      For checking it I run the following command from the terminal :



      php -v

      PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS )
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
      with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


      Now I was trying to install Composer(The Project Dependency Management Software). As a prerequisite it needs cli and Git to be installed so for it I typed in following command and got following error. How to resolve this error?



      sudo apt-get install curl php5-cli git

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      curl is already the newest version.
      curl set to manually installed.
      git is already the newest version.
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
      Recommends: php5-readline but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      The error I want to resolve is as below from above output :



      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
      Recommends: php5-readline but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      Someone please provide me the correct command I need to run from the terminal and remove this error.



      I think it's occurring since I'm no more using PHP 5.5.9. Just provide me the necessary command.



      Thanks in advance.










      share|improve this question














      I'm using Ubuntu Linux 14.04 LTS 64-bit OS on my machine.



      I just updated all the softwares and packages installed on my system by running following commands from the terminal :



      sudo apt-get update

      sudo apt-get upgrade


      Now I'm using PHP 7.0.5, the latest current stable version of PHP.



      For checking it I run the following command from the terminal :



      php -v

      PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS )
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
      with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


      Now I was trying to install Composer(The Project Dependency Management Software). As a prerequisite it needs cli and Git to be installed so for it I typed in following command and got following error. How to resolve this error?



      sudo apt-get install curl php5-cli git

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      curl is already the newest version.
      curl set to manually installed.
      git is already the newest version.
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
      Recommends: php5-readline but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      The error I want to resolve is as below from above output :



      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.32+dfsg-1+deb.sury.org~precise+1 is to be installed
      Recommends: php5-readline but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.


      Someone please provide me the correct command I need to run from the terminal and remove this error.



      I think it's occurring since I'm no more using PHP 5.5.9. Just provide me the necessary command.



      Thanks in advance.







      14.04 command-line php git






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 20 '16 at 12:00









      PHPLoverPHPLover

      71661526




      71661526






















          1 Answer
          1






          active

          oldest

          votes


















          0














          PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f759468%2fhow-to-correct-the-command-for-php-7-0-in-following-php-cli-and-git-installati%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.






            share|improve this answer




























              0














              PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.






              share|improve this answer


























                0












                0








                0







                PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.






                share|improve this answer













                PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 22 '16 at 9:50









                oerdnjoerdnj

                6,8843248




                6,8843248






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f759468%2fhow-to-correct-the-command-for-php-7-0-in-following-php-cli-and-git-installati%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents