Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know this question has been asked and answered several many on this forum so I hate to ask it again. Unfortunately none of the solutions I've seen posted have worked for me to upgrade my PHP sever.

I had Ubuntu 10.04 installed with PHP version 5.2.10. I've upgraded my Ubuntu install to 12.04 with no problems, however every attempt I make to upgrade my PHP server using all of the solutions, packages, repositories, commands, etc I've found here have not worked.

Each attempt has ended with the message that PHP is already at the newest version. I have a feeling I may have downgraded PHP from a newer version to 5.2 oh so long ago, but I can't remember.

Is there a way to safely uninstall PHP 5.2 and upgrade to a newer supported version? Any additional help I can get would be greatly appreciated. Thank you.

dpkg -l | grep -P '\sphp5\s'
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 16164 package 'ffmpeg':
 error in Version string '4:SVN-r24992-1': version number does not start with digit
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 42601 package 'qt-faststart':
 error in Version string '4:SVN-r24992-1': version number does not start with digit
ii  php5                                          5.2.10.dfsg.1-2ubuntu6                          server-side, HTML-embedded scripting language (metapackage)
ii  php5-cli                                      5.2.10.dfsg.1-2ubuntu6                          command-line interpreter for the php5 scripting language
ii  php5-common                                   5.2.10.dfsg.1-2ubuntu6                          Common files for packages built from the php5 source
tskipton@sscl:~$ 


/etc/apt/sources.list
# 
# deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ - Release i386 (20100427)]/ lucid main restricted
deb-src http://archive.ubuntu.com/ubuntu precise restricted main #Added by software-properties

# deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ - Release i386 (20100427)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://archive.ubuntu.com/ubuntu precise-security main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-security restricted main multiverse universe #Added by software-properties
deb http://archive.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security multiverse
share|improve this question
    
I think that you should read this: askubuntu.com/q/151283/62483 –  Lucio Mar 15 at 23:22
    
Please post the output of dpkg -l | grep -P '\sphp5\s' and the contents of your /etc/apt/sources.list file. –  terdon Mar 15 at 23:56
    
Thank you for your post. Apparently the output is to large to post here as a comment so I'll see if I can add it as text to my original question. –  user2831495 Mar 16 at 19:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.