Page 1 of 1

Unable to install the libapache2-mod-php5

Posted: Thu Jan 18, 2018 9:26 am
by faruqx
Hi, i have rasbberry pi3 and installed on Raspibian

I am trying reinstall apache2 and php5. I removed these installations with apt-get purge

I was install apache2 and php5, php-common etc..

But i cant install "libapache2-mod-php5" , when i check depends, all is installed.

Output;

Code: Select all

farux@fgx-rsp3:/etc/php5 $ sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
 adduser : Depends: perl-base (>= 5.6.0) but it is not going to be installed
           Depends: passwd (>= 1:4.0.12) but it is not going to be installed
           Depends: debconf but it is not going to be installed or
                    debconf-2.0
 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-mpm-prefork (> 2.0.52) but it is not going to be installed or
                                apache2-mpm-itk but it is not going to be installed
                       Depends: apache2.2-common but it is not going to be installed
                       Depends: php5-common (= 5.4.45-0+deb7u11) 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
                       Recommends: php5-cli but it is not going to be installed
 libfontconfig1 : Depends: fontconfig-config (>= 2.11.0-6.3+deb8u1) but it is not going to be installed
 libxt6 : Depends: libsm6 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Code: Select all

farux@fgx-rsp3:/etc/php5 $ sudo aptitude install libapache2-mod-php5
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,501 kB of archives. After unpacking 7,944 kB will be used.
The following packages have unmet dependencies:
 dpkg : Breaks: libapache2-mod-php5 (< 5.6.4+dfsg-3~) but 5.4.45-0+deb7u11 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/?] y
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.

Re: Unable to install the libapache2-mod-php5

Posted: Fri Jan 19, 2018 1:35 am
by therealzsheley
I ran into this problem yesterday and found you have to change php from 5 to 7.0
ex: sudo apt-get install libapache2-mod-php7.0

Hope this helped! :P
If you have any further questions about this just let me know!

-therealzsheley