Problem with installing php on Ubuntu 16.04 The Next CEO of Stack OverflowWhy did my PHP5.5 upgrade fail?Ubuntu 12.04 LTS server - build-essential install not possibleUbuntu 12.04 - upgraded to PHP5.4 - error on PHP SuhosinHow can I resolve package conflicts when installing old version of PHP with apache2?Apache won't start - PHP issues?Trouble installing PHP5 modulesUbuntu Xenial 16.04 libapache2-mod-php5.6 NO PPAAttempting to install php-zip - getting libzip4 dependancy (>=1.0) error even though I have 1.0.1 installedunable to install libapache2-mod-php5 5.3+ on ubuntu 16.04php not working within apache2

How should I connect my cat5 cable to connectors having an orange-green line?

Is there a rule of thumb for determining the amount one should accept for a settlement offer?

Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?

What difference does it make matching a word with/without a trailing whitespace?

Finitely generated matrix groups whose eigenvalues are all algebraic

Early programmable calculators with RS-232

Does Germany produce more waste than the US?

How to implement Comparable so it is consistent with identity-equality

Why was Sir Cadogan fired?

Why did early computer designers eschew integers?

Is this a new Fibonacci Identity?

Airship steam engine room - problems and conflict

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

What is the difference between 'contrib' and 'non-free' packages repositories?

Simplify trigonometric expression using trigonometric identities

Masking layers by a vector polygon layer in QGIS

Are British MPs missing the point, with these 'Indicative Votes'?

MT "will strike" & LXX "will watch carefully" (Gen 3:15)?

How to show a landlord what we have in savings?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

How can I prove that a state of equilibrium is unstable?

logical reads on global temp table, but not on session-level temp table

Mathematica command that allows it to read my intentions

What day is it again?



Problem with installing php on Ubuntu 16.04



The Next CEO of Stack OverflowWhy did my PHP5.5 upgrade fail?Ubuntu 12.04 LTS server - build-essential install not possibleUbuntu 12.04 - upgraded to PHP5.4 - error on PHP SuhosinHow can I resolve package conflicts when installing old version of PHP with apache2?Apache won't start - PHP issues?Trouble installing PHP5 modulesUbuntu Xenial 16.04 libapache2-mod-php5.6 NO PPAAttempting to install php-zip - getting libzip4 dependancy (>=1.0) error even though I have 1.0.1 installedunable to install libapache2-mod-php5 5.3+ on ubuntu 16.04php not working within apache2










1















Entering this into the terminal:



sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql


gives me this output:



it@it-Latitude-E6410:~$ sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version (1:1.10.1+submodules+notgz-8+donate.sury.org~trusty+2).
php-pear set to manually installed.
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:
libapache2-mod-php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0-mysql : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
E: Unable to correct problems, you have held broken packages.
it@it-Latitude-E6410:~$


I'm running Ubuntu 16.04 LTS (xenial).










share|improve this question














bumped to the homepage by Community 23 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Try running sudo apt-get -f install and tell us if this wolked your for you.

    – Videonauth
    Jun 10 '16 at 6:37











  • @Videonauth I ran what you told me but nothing happened.

    – glitchedout
    Jun 10 '16 at 7:20











  • What happens if you then sudo apt-get install php-common

    – Videonauth
    Jun 10 '16 at 7:22











  • it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

    – glitchedout
    Jun 10 '16 at 7:43











  • The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

    – Videonauth
    Jun 10 '16 at 7:48















1















Entering this into the terminal:



sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql


gives me this output:



it@it-Latitude-E6410:~$ sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version (1:1.10.1+submodules+notgz-8+donate.sury.org~trusty+2).
php-pear set to manually installed.
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:
libapache2-mod-php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0-mysql : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
E: Unable to correct problems, you have held broken packages.
it@it-Latitude-E6410:~$


I'm running Ubuntu 16.04 LTS (xenial).










share|improve this question














bumped to the homepage by Community 23 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Try running sudo apt-get -f install and tell us if this wolked your for you.

    – Videonauth
    Jun 10 '16 at 6:37











  • @Videonauth I ran what you told me but nothing happened.

    – glitchedout
    Jun 10 '16 at 7:20











  • What happens if you then sudo apt-get install php-common

    – Videonauth
    Jun 10 '16 at 7:22











  • it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

    – glitchedout
    Jun 10 '16 at 7:43











  • The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

    – Videonauth
    Jun 10 '16 at 7:48













1












1








1


1






Entering this into the terminal:



sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql


gives me this output:



it@it-Latitude-E6410:~$ sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version (1:1.10.1+submodules+notgz-8+donate.sury.org~trusty+2).
php-pear set to manually installed.
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:
libapache2-mod-php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0-mysql : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
E: Unable to correct problems, you have held broken packages.
it@it-Latitude-E6410:~$


I'm running Ubuntu 16.04 LTS (xenial).










share|improve this question














Entering this into the terminal:



sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql


gives me this output:



it@it-Latitude-E6410:~$ sudo apt-get install php7.0 php-pear libapache2-mod-php7.0 php7.0-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version (1:1.10.1+submodules+notgz-8+donate.sury.org~trusty+2).
php-pear set to manually installed.
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:
libapache2-mod-php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0 : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
php7.0-mysql : Depends: php7.0-common (= 7.0.4-7ubuntu2.1) but 7.0.6-13+donate.sury.org~trusty+1 is to be installed
E: Unable to correct problems, you have held broken packages.
it@it-Latitude-E6410:~$


I'm running Ubuntu 16.04 LTS (xenial).







php held-packages






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 10 '16 at 6:14









glitchedoutglitchedout

614




614





bumped to the homepage by Community 23 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 23 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Try running sudo apt-get -f install and tell us if this wolked your for you.

    – Videonauth
    Jun 10 '16 at 6:37











  • @Videonauth I ran what you told me but nothing happened.

    – glitchedout
    Jun 10 '16 at 7:20











  • What happens if you then sudo apt-get install php-common

    – Videonauth
    Jun 10 '16 at 7:22











  • it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

    – glitchedout
    Jun 10 '16 at 7:43











  • The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

    – Videonauth
    Jun 10 '16 at 7:48

















  • Try running sudo apt-get -f install and tell us if this wolked your for you.

    – Videonauth
    Jun 10 '16 at 6:37











  • @Videonauth I ran what you told me but nothing happened.

    – glitchedout
    Jun 10 '16 at 7:20











  • What happens if you then sudo apt-get install php-common

    – Videonauth
    Jun 10 '16 at 7:22











  • it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

    – glitchedout
    Jun 10 '16 at 7:43











  • The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

    – Videonauth
    Jun 10 '16 at 7:48
















Try running sudo apt-get -f install and tell us if this wolked your for you.

– Videonauth
Jun 10 '16 at 6:37





Try running sudo apt-get -f install and tell us if this wolked your for you.

– Videonauth
Jun 10 '16 at 6:37













@Videonauth I ran what you told me but nothing happened.

– glitchedout
Jun 10 '16 at 7:20





@Videonauth I ran what you told me but nothing happened.

– glitchedout
Jun 10 '16 at 7:20













What happens if you then sudo apt-get install php-common

– Videonauth
Jun 10 '16 at 7:22





What happens if you then sudo apt-get install php-common

– Videonauth
Jun 10 '16 at 7:22













it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

– glitchedout
Jun 10 '16 at 7:43





it@it-Latitude-E6410:~$ sudo apt-get install php-common [sudo] password for it: Reading package lists... Done Building dependency tree Reading state information... Done php-common is already the newest version (1:41+donate.sury.org~trusty+1). php-common set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. it@it-Latitude-E6410:~$

– glitchedout
Jun 10 '16 at 7:43













The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

– Videonauth
Jun 10 '16 at 7:48





The only thing coming to my mind is asking you further to do an sudo apt-get update && sudo apt-get dist-upgrade. beside that I'm out of ideas right now.

– Videonauth
Jun 10 '16 at 7:48










1 Answer
1






active

oldest

votes


















0














I had this issue after adding and removing php5.6. To solve, I removed all php packages and then added the ones I wanted again.



apt remove php*
apt install php ...





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%2f785163%2fproblem-with-installing-php-on-ubuntu-16-04%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














    I had this issue after adding and removing php5.6. To solve, I removed all php packages and then added the ones I wanted again.



    apt remove php*
    apt install php ...





    share|improve this answer



























      0














      I had this issue after adding and removing php5.6. To solve, I removed all php packages and then added the ones I wanted again.



      apt remove php*
      apt install php ...





      share|improve this answer

























        0












        0








        0







        I had this issue after adding and removing php5.6. To solve, I removed all php packages and then added the ones I wanted again.



        apt remove php*
        apt install php ...





        share|improve this answer













        I had this issue after adding and removing php5.6. To solve, I removed all php packages and then added the ones I wanted again.



        apt remove php*
        apt install php ...






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 31 '17 at 22:28









        user3413723user3413723

        1013




        1013



























            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%2f785163%2fproblem-with-installing-php-on-ubuntu-16-04%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

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org