Can't install Apache2 and PHP in Linux Mint 17.3 (libapache2-mod-php)
Apache2 and PHP are correctly installed, but libapache2-mod-php
is giving problems.
I try to install it with apt-get
and I get the following:
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:
gnupg : Depends: libreadline6 (>= 6.0) but it is not going to be installed
libapache2-mod-php5 : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: apache2-api-20120211
Depends: apache2 (>= 2.4) but it is not going to be installed
Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.17) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
libuuid1 : Depends: passwd
libuuid1:i386 : Depends: passwd:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I try to install each package, but says that they are already installed.
I also try to install the module with aptitude, for which I get the following output:
The following NEW packages will be installed:
libapache2-mod-php5
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.212 kB of archives. After unpacking 9.897 kB will be used.
The following packages have unmet dependencies:
dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.5.9+dfsg-1ubuntu4.17 is to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libapache2-mod-php5 [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
I select Yes, but nothing is installed; after restarting Apache, my phpinfo
page is not working.
This is the output of uname -a
, if it is useful:
Linux julen-Surface-Pro-3 4.4.6-3-surface #tigerite ZEN SMP Tue May 24 13:22:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EDIT: the output of apt-cache policy dpkg
:
dpkg:
Installed: 1.17.25ubuntu1.2
Candidate: 1.17.25ubuntu1.2
Version table:
*** 1.17.25ubuntu1.2 0
500 http://ppa.launchpad.net/tigerite/mint-xorg-update/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.17.5ubuntu5.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.17.5ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apt php apache-httpd
add a comment |
Apache2 and PHP are correctly installed, but libapache2-mod-php
is giving problems.
I try to install it with apt-get
and I get the following:
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:
gnupg : Depends: libreadline6 (>= 6.0) but it is not going to be installed
libapache2-mod-php5 : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: apache2-api-20120211
Depends: apache2 (>= 2.4) but it is not going to be installed
Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.17) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
libuuid1 : Depends: passwd
libuuid1:i386 : Depends: passwd:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I try to install each package, but says that they are already installed.
I also try to install the module with aptitude, for which I get the following output:
The following NEW packages will be installed:
libapache2-mod-php5
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.212 kB of archives. After unpacking 9.897 kB will be used.
The following packages have unmet dependencies:
dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.5.9+dfsg-1ubuntu4.17 is to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libapache2-mod-php5 [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
I select Yes, but nothing is installed; after restarting Apache, my phpinfo
page is not working.
This is the output of uname -a
, if it is useful:
Linux julen-Surface-Pro-3 4.4.6-3-surface #tigerite ZEN SMP Tue May 24 13:22:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EDIT: the output of apt-cache policy dpkg
:
dpkg:
Installed: 1.17.25ubuntu1.2
Candidate: 1.17.25ubuntu1.2
Version table:
*** 1.17.25ubuntu1.2 0
500 http://ppa.launchpad.net/tigerite/mint-xorg-update/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.17.5ubuntu5.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.17.5ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apt php apache-httpd
add a comment |
Apache2 and PHP are correctly installed, but libapache2-mod-php
is giving problems.
I try to install it with apt-get
and I get the following:
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:
gnupg : Depends: libreadline6 (>= 6.0) but it is not going to be installed
libapache2-mod-php5 : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: apache2-api-20120211
Depends: apache2 (>= 2.4) but it is not going to be installed
Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.17) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
libuuid1 : Depends: passwd
libuuid1:i386 : Depends: passwd:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I try to install each package, but says that they are already installed.
I also try to install the module with aptitude, for which I get the following output:
The following NEW packages will be installed:
libapache2-mod-php5
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.212 kB of archives. After unpacking 9.897 kB will be used.
The following packages have unmet dependencies:
dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.5.9+dfsg-1ubuntu4.17 is to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libapache2-mod-php5 [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
I select Yes, but nothing is installed; after restarting Apache, my phpinfo
page is not working.
This is the output of uname -a
, if it is useful:
Linux julen-Surface-Pro-3 4.4.6-3-surface #tigerite ZEN SMP Tue May 24 13:22:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EDIT: the output of apt-cache policy dpkg
:
dpkg:
Installed: 1.17.25ubuntu1.2
Candidate: 1.17.25ubuntu1.2
Version table:
*** 1.17.25ubuntu1.2 0
500 http://ppa.launchpad.net/tigerite/mint-xorg-update/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.17.5ubuntu5.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.17.5ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apt php apache-httpd
Apache2 and PHP are correctly installed, but libapache2-mod-php
is giving problems.
I try to install it with apt-get
and I get the following:
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:
gnupg : Depends: libreadline6 (>= 6.0) but it is not going to be installed
libapache2-mod-php5 : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: apache2-api-20120211
Depends: apache2 (>= 2.4) but it is not going to be installed
Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.17) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
libuuid1 : Depends: passwd
libuuid1:i386 : Depends: passwd:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I try to install each package, but says that they are already installed.
I also try to install the module with aptitude, for which I get the following output:
The following NEW packages will be installed:
libapache2-mod-php5
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.212 kB of archives. After unpacking 9.897 kB will be used.
The following packages have unmet dependencies:
dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.5.9+dfsg-1ubuntu4.17 is to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libapache2-mod-php5 [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
I select Yes, but nothing is installed; after restarting Apache, my phpinfo
page is not working.
This is the output of uname -a
, if it is useful:
Linux julen-Surface-Pro-3 4.4.6-3-surface #tigerite ZEN SMP Tue May 24 13:22:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EDIT: the output of apt-cache policy dpkg
:
dpkg:
Installed: 1.17.25ubuntu1.2
Candidate: 1.17.25ubuntu1.2
Version table:
*** 1.17.25ubuntu1.2 0
500 http://ppa.launchpad.net/tigerite/mint-xorg-update/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.17.5ubuntu5.6 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.17.5ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apt php apache-httpd
apt php apache-httpd
edited Jun 1 '16 at 9:45
Jeff Schaller
41.3k1056131
41.3k1056131
asked Jun 1 '16 at 8:12
JulenJulen
1034
1034
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
tigerlite's PPA includes an updated dpkg
(presumably for valid reasons), but it doesn't include updates to other packages that updated dpkg
breaks. These broken packages include libapache2-mod-php5
...
So ideally you should ask tigerlite to add the relevant, updated packages to his PPA.
Alternatively, if you're feeling adventurous you could try downgrading dpkg
to the Ubuntu 14.04 version:
sudo apt-get install dpkg=1.17.5ubuntu5.6
If that works without forcing anything, you should be OK. Downgrades aren't officially supported in Debian packages though, so this will not have been tested at all; and since it's dpkg
we're talking about it may well break your package management entirely.
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f286835%2fcant-install-apache2-and-php-in-linux-mint-17-3-libapache2-mod-php%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
tigerlite's PPA includes an updated dpkg
(presumably for valid reasons), but it doesn't include updates to other packages that updated dpkg
breaks. These broken packages include libapache2-mod-php5
...
So ideally you should ask tigerlite to add the relevant, updated packages to his PPA.
Alternatively, if you're feeling adventurous you could try downgrading dpkg
to the Ubuntu 14.04 version:
sudo apt-get install dpkg=1.17.5ubuntu5.6
If that works without forcing anything, you should be OK. Downgrades aren't officially supported in Debian packages though, so this will not have been tested at all; and since it's dpkg
we're talking about it may well break your package management entirely.
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
add a comment |
tigerlite's PPA includes an updated dpkg
(presumably for valid reasons), but it doesn't include updates to other packages that updated dpkg
breaks. These broken packages include libapache2-mod-php5
...
So ideally you should ask tigerlite to add the relevant, updated packages to his PPA.
Alternatively, if you're feeling adventurous you could try downgrading dpkg
to the Ubuntu 14.04 version:
sudo apt-get install dpkg=1.17.5ubuntu5.6
If that works without forcing anything, you should be OK. Downgrades aren't officially supported in Debian packages though, so this will not have been tested at all; and since it's dpkg
we're talking about it may well break your package management entirely.
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
add a comment |
tigerlite's PPA includes an updated dpkg
(presumably for valid reasons), but it doesn't include updates to other packages that updated dpkg
breaks. These broken packages include libapache2-mod-php5
...
So ideally you should ask tigerlite to add the relevant, updated packages to his PPA.
Alternatively, if you're feeling adventurous you could try downgrading dpkg
to the Ubuntu 14.04 version:
sudo apt-get install dpkg=1.17.5ubuntu5.6
If that works without forcing anything, you should be OK. Downgrades aren't officially supported in Debian packages though, so this will not have been tested at all; and since it's dpkg
we're talking about it may well break your package management entirely.
tigerlite's PPA includes an updated dpkg
(presumably for valid reasons), but it doesn't include updates to other packages that updated dpkg
breaks. These broken packages include libapache2-mod-php5
...
So ideally you should ask tigerlite to add the relevant, updated packages to his PPA.
Alternatively, if you're feeling adventurous you could try downgrading dpkg
to the Ubuntu 14.04 version:
sudo apt-get install dpkg=1.17.5ubuntu5.6
If that works without forcing anything, you should be OK. Downgrades aren't officially supported in Debian packages though, so this will not have been tested at all; and since it's dpkg
we're talking about it may well break your package management entirely.
edited Jan 31 at 15:45
answered Jun 1 '16 at 9:12
Stephen KittStephen Kitt
171k24386462
171k24386462
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
add a comment |
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
The downgrading worked like a charm, and allowed to install the module. Many thanks.
– Julen
Jun 1 '16 at 9:14
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f286835%2fcant-install-apache2-and-php-in-linux-mint-17-3-libapache2-mod-php%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