Python — Попытка обновления до PHP 5.4

Я уже давно пытаюсь обновить версию PHP моего сервера Ubuntu до 5.4.

Сначала я пытаюсь запустить:

sudo add-apt-repository ppa:ondrej/php5-oldstable

Но я получаю это:

sudo: add-apt-repository: command not found

Итак, я запускаю это:

sudo apt-get install python-software-properties

Тогда я получаю это:

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

Итак, я пытаюсь установить python-apt:

sudo apt-get install python-apt

И еще одно сообщение об ошибке:

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

Итак, я пытаюсь установить libapt-inst-libc6.10-6-1.1:

sudo apt-get install libapt-inst-libc6.10-6-1.1

И я получаю:

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

И это продолжается и продолжается и продолжается. Я не знаю что делать. Пожалуйста помоги!

0

Решение

вот мои 2 цента. Чтобы исправить некоторые из ваших зависимостей, прочитайте первый ответ в этой статье: https://askubuntu.com/questions/263378/how-to-fix-dependencies-broken-packages
Я уверен, что это часть вашей проблемы. Шаг 1 в этом:http://tecadmin.net/install-apache2-mysql-php5-on-ubuntu-systems/ статья проведет вас через установку PHP 5.4 в Ubuntu, которая выглядит так, как вы уже видели. Я надеюсь, что помог даже немного. Дайте нам знать,

Ура,

RonAtomics

Постскриптум Я знаю, что это не имеет смысла, но пытались ли вы повторить все свои команды еще раз? … CentOS глупая, Ubuntu может быть слишком, поэтому я решил упомянуть об этом.

P.S.S. Ниже приведен PPA для Ubuntu 12.04 и 14.04 для Python.
http://ubuntuhandbook.org/index.php/2014/05/install-python-3-3-5-or-3-4-via-ppa-in-ubuntu-14-04-12-04/

0

Другие решения

Других решений пока нет …