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
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
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.
|
show 1 more comment
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
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 runningsudo 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 thensudo 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 ansudo apt-get update && sudo apt-get dist-upgrade
. beside that I'm out of ideas right now.
– Videonauth
Jun 10 '16 at 7:48
|
show 1 more comment
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
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
php held-packages
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 runningsudo 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 thensudo 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 ansudo apt-get update && sudo apt-get dist-upgrade
. beside that I'm out of ideas right now.
– Videonauth
Jun 10 '16 at 7:48
|
show 1 more comment
Try runningsudo 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 thensudo 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 ansudo 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
|
show 1 more comment
1 Answer
1
active
oldest
votes
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 ...
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 ...
add a comment |
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 ...
add a comment |
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 ...
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 ...
answered Jan 31 '17 at 22:28
user3413723user3413723
1013
1013
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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