Problem with installing php on Ubuntu 16.04 The Next CEO of Stack OverflowWhy did my PHP5.5...

Is a distribution that is normal, but highly skewed, considered Gaussian?

How to unfasten electrical subpanel attached with ramset

Does Germany produce more waste than the US?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

How seriously should I take size and weight limits of hand luggage?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

Calculate the Mean mean of two numbers

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Masking layers by a vector polygon layer in QGIS

How can the PCs determine if an item is a phylactery?

Is it reasonable to ask other researchers to send me their previous grant applications?

How to find if SQL server backup is encrypted with TDE without restoring the backup

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

Man transported from Alternate World into ours by a Neutrino Detector

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

Avoiding the "not like other girls" trope?

Does the Idaho Potato Commission associate potato skins with healthy eating?

Prodigo = pro + ago?

How to show a landlord what we have in savings?

pgfplots: How to draw a tangent graph below two others?

Strange use of "whether ... than ..." in official text

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

Why does freezing point matter when picking cooler ice packs?

Ising model simulation



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

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...