PHP5 is broken - unable to install

Asked by SeanGee

root@vm3104:/etc/apt# sudo fuser -vvv /var/lib/dpkg/lock
root@vm3104:/etc/apt# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"
root@vm3104:/etc/apt# uname -a
Linux vm3104.vps.tagadab.com 2.6.24-24-xen #1 SMP Tue Aug 18 18:15:39 UTC 2009 x86_64 GNU/Linux
root@vm3104:/etc/apt# sudo rm /var/lib/apt/lists/lock
root@vm3104:/etc/apt# sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
root@vm3104:/etc/apt# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
root@vm3104:/etc/apt# sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
root@vm3104:/etc/apt# sudo rm -rf /var/lib/dpkg/updates/*
root@vm3104:/etc/apt# sudo rm -rf /var/lib/apt/lists
root@vm3104:/etc/apt# sudo rm /var/cache/apt/*.bin
root@vm3104:/etc/apt# sudo mkdir /var/lib/apt/lists
root@vm3104:/etc/apt# sudo mkdir /var/lib/apt/lists/partial
root@vm3104:/etc/apt# LANG=C;sudo apt-get clean
root@vm3104:/etc/apt# LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@vm3104:/etc/apt# LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up libhtml-template-perl (2.9-1) ...
root@vm3104:/etc/apt# LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://gb.archive.ubuntu.com hardy Release.gpg [189B]
Get:2 http://gb.archive.ubuntu.com hardy-updates Release.gpg [198B]
Get:3 http://security.ubuntu.com hardy-security Release.gpg [198B]
Get:4 http://gb.archive.ubuntu.com hardy Release [65.9kB]
Get:5 http://security.ubuntu.com hardy-security Release [58.5kB]
Get:6 http://ppa.launchpad.net hardy Release.gpg [307B]
Get:7 http://packages.dotdeb.org stable Release.gpg [836B]
Get:8 http://packages.dotdeb.org stable Release [2197B]
Get:9 http://ubuntu.positive-internet.com hardy Release.gpg [189B]
Get:10 http://ppa.launchpad.net hardy Release [65.9kB]
Get:11 http://ubuntu.positive-internet.com hardy Release [65.9kB]
Get:12 http://packages.dotdeb.org stable/all Packages [15.4kB]
Get:13 http://gb.archive.ubuntu.com hardy-updates Release [58.5kB]
Get:14 http://security.ubuntu.com hardy-security/main Packages [297kB]
Get:15 http://ppa.launchpad.net hardy/main Packages [4872B]
Get:16 http://packages.dotdeb.org stable/all Sources [3916B]
Get:17 http://ubuntu.positive-internet.com hardy/main Packages [1173kB]
Get:18 http://gb.archive.ubuntu.com hardy/main Packages [1173kB]
Get:19 http://security.ubuntu.com hardy-security/restricted Packages [5968B]
Get:20 http://security.ubuntu.com hardy-security/main Sources [115kB]
Get:21 http://security.ubuntu.com hardy-security/restricted Sources [14B]
Get:22 http://ubuntu.positive-internet.com hardy/restricted Packages [6397B]
Get:23 http://ubuntu.positive-internet.com hardy/main Sources [338kB]
Get:24 http://ubuntu.positive-internet.com hardy/restricted Sources [1488B]
Get:25 http://ubuntu.positive-internet.com hardy/universe Packages [4254kB]
Get:26 http://gb.archive.ubuntu.com hardy/restricted Packages [6397B]
Get:27 http://gb.archive.ubuntu.com hardy/main Sources [338kB]
Get:28 http://gb.archive.ubuntu.com hardy/restricted Sources [1488B]
Get:29 http://gb.archive.ubuntu.com hardy/universe Packages [4254kB]
Get:30 http://ubuntu.positive-internet.com hardy/universe Sources [1323kB]
Get:31 http://gb.archive.ubuntu.com hardy/universe Sources [1323kB]
Get:32 http://gb.archive.ubuntu.com hardy-updates/main Packages [515kB]
Get:33 http://gb.archive.ubuntu.com hardy-updates/restricted Packages [6012B]
Get:34 http://gb.archive.ubuntu.com hardy-updates/main Sources [189kB]
Get:35 http://gb.archive.ubuntu.com hardy-updates/restricted Sources [14B]
Fetched 15.7MB in 5s (2629kB/s)
Reading package lists... Done
root@vm3104:/etc/apt# sudo dpkg --clear-avail
root@vm3104:/etc/apt# sudo dpkg --configure -a
root@vm3104:/etc/apt# LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@vm3104:/etc/apt# LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@vm3104:/etc/apt# LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://gb.archive.ubuntu.com hardy Release.gpg
Hit http://gb.archive.ubuntu.com hardy-updates Release.gpg
Hit http://security.ubuntu.com hardy-security Release.gpg
Hit http://gb.archive.ubuntu.com hardy Release
Hit http://security.ubuntu.com hardy-security Release
Hit http://ppa.launchpad.net hardy Release.gpg
Hit http://ubuntu.positive-internet.com hardy Release.gpg
Hit http://gb.archive.ubuntu.com hardy-updates Release
Hit http://ppa.launchpad.net hardy Release
Hit http://gb.archive.ubuntu.com hardy/main Packages
Hit http://packages.dotdeb.org stable Release.gpg
Hit http://ubuntu.positive-internet.com hardy Release
Hit http://gb.archive.ubuntu.com hardy/restricted Packages
Hit http://gb.archive.ubuntu.com hardy/main Sources
Hit http://gb.archive.ubuntu.com hardy/restricted Sources
Hit http://gb.archive.ubuntu.com hardy/universe Packages
Hit http://gb.archive.ubuntu.com hardy/universe Sources
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://packages.dotdeb.org stable Release
Hit http://gb.archive.ubuntu.com hardy-updates/main Packages
Hit http://gb.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://gb.archive.ubuntu.com hardy-updates/main Sources
Hit http://gb.archive.ubuntu.com hardy-updates/restricted Sources
Hit http://ppa.launchpad.net hardy/main Packages
Hit http://ubuntu.positive-internet.com hardy/main Packages
Hit http://ubuntu.positive-internet.com hardy/restricted Packages
Hit http://ubuntu.positive-internet.com hardy/main Sources
Hit http://ubuntu.positive-internet.com hardy/restricted Sources
Hit http://ubuntu.positive-internet.com hardy/universe Packages
Hit http://ubuntu.positive-internet.com hardy/universe Sources
Hit http://packages.dotdeb.org stable/all Packages
Hit http://packages.dotdeb.org stable/all Sources
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libmysqlclient16
The following packages have been kept back:
  mysql-server
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 1969kB of archives.
After this operation, 4497kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://packages.dotdeb.org stable/all libmysqlclient16 5.1.57-1~dotdeb.1 [1969kB]
Fetched 1969kB in 0s (3039kB/s)
Selecting previously deselected package libmysqlclient16.
(Reading database ... 34192 files and directories currently installed.)
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.57-1~dotdeb.1_amd64.deb) ...
Setting up libmysqlclient16 (5.1.57-1~dotdeb.1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@vm3104:/etc/apt#

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
SeanGee
Solved:
Last query:
Last reply:
Revision history for this message
Paul Stewart (paulbrianstewart) said :
#1

Hi,

Can you install it using xampp from www.apachefriends.org?

Revision history for this message
SeanGee (sean-gatesworld-deactivatedaccount) said :
#2

Thanks for the response.

Decided it wasn't worth spending too much time over so restored a backup and used it as an opportunity to upgrade from 8.04 to 10.04 (which is the latest image my VPS host provides