I've been trying to upgrade my Ubuntu server's PHP version to 5.4 for quite a while now.
First I'm trying to run:
sudo add-apt-repository ppa:ondrej/php5-oldstable
But I get this:
sudo: add-apt-repository: command not found
So I run this:
sudo apt-get install python-software-properties
Then I get this:
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:
python-software-properties : Depends: python-apt (>= 0.6.20ubuntu16) but it is not going to be installed
Depends: unattended-upgrades but it is not going to be installed
E: Broken packages
So, I'm trying to install python-apt:
sudo apt-get install python-apt
And yet another error message:
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:
python-apt : Depends: libapt-inst-libc6.10-6-1.1
Depends: libapt-pkg-libc6.10-6-4.8
E: Broken packages
So, I try to install libapt-inst-libc6.10-6-1.1:
sudo apt-get install libapt-inst-libc6.10-6-1.1
And I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apt-utils' instead of 'libapt-inst-libc6.10-6-1.1'
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:
apt-utils : Depends: libapt-pkg-libc6.10-6-4.8
E: Broken packages
And it goes on and on and on. I don't know what to do. Please help!