Error install php

Asked by heru

root@webserver:~# sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libapache2-mod-php5 : Depends: php5-common (= 5.3.10-1ubuntu3.26) but 5.3.10-1ubuntu3.21 is to be installed
 libc6 : Depends: libc-bin (= 2.15-0ubuntu10.18)
         Breaks: libc6:i386 (!= 2.15-0ubuntu10.18) but 2.15-0ubuntu10.15 is to be installed
 libc6:i386 : Breaks: libc6 (!= 2.15-0ubuntu10.15) but 2.15-0ubuntu10.18 is to be installed
 libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.15) but 2.15-0ubuntu10.18 is to be installed
             Depends: libc-dev-bin (= 2.19-0ubuntu6.15)
             Recommends: gcc but it is not going to be installed or
                         c-compiler
 libc6-dev:i386 : Depends: libc6:i386 (= 2.19-0ubuntu6.15) but 2.15-0ubuntu10.15 is to be installed
                  Depends: libc-dev-bin:i386 (= 2.19-0ubuntu6.15)
                  Recommends: gcc:i386 but it is not going to be installed or
                              c-compiler:i386
 libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.15) but 2.15-0ubuntu10.18 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you are already root, why are you prefixing with sudo? It's not required. Root has 100% system access all the time....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of:

apt-cache policy libapache2-mod-php5 php5-common

Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Please also add the output of

uname -a
lsb_release -crid

Revision history for this message
heru (hesa1510) said :
#4

root@webserver:~# apt-cache policy libapache2-mod-php5 php5-common
libapache2-mod-php5:
  Installed: (none)
  Candidate: 5.3.10-1ubuntu3.26
  Version table:
     5.3.10-1ubuntu3.26 0
        500 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Pack ages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packa ges
     5.3.10-1ubuntu3.21 0
        100 /var/lib/dpkg/status
     5.3.10-1ubuntu3 0
        500 http://id.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
php5-common:
  Installed: 5.3.10-1ubuntu3.21
  Candidate: 5.3.10-1ubuntu3.26
  Version table:
     5.3.10-1ubuntu3.26 0
        500 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Pack ages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packa ges
 *** 5.3.10-1ubuntu3.21 0
        100 /var/lib/dpkg/status
     5.3.10-1ubuntu3 0
        500 http://id.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Revision history for this message
heru (hesa1510) said :
#5

uname -a
Linux webserver 3.13.0-67-generic #110~precise1-Ubuntu SMP Mon Oct 26 11:55:47 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

root@webserver:~# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#6

Support for Ubuntu 12.04 "precise" has already ended. Even ESM (the paid support enhancement) ended a year ago.
see https://wiki.ubuntu.com/Releases
You should upgrade to a supported Ubuntu release (or do a new install with a supported release) in due course.

And for your dependency problem, what output do you receive for

sudo apt-get dist-upgrade

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Precise is long dead. I suggest you wipe the install off and do a clean install of Focal. Focal is LTS and supported until April 2025. It's like calling Microsoft for Windows 95 support. It's not supported anymore by anyone.

Obviously do a final full backup of your important data so that it can be restored in the new installation

Revision history for this message
heru (hesa1510) said :
#8

Thanks Manfred Hampl, that solved my question.