Certifique-se de ter executado sudo apt-get update
antes de executar sudo apt-get install php5 libapache2-mod-php5 php5-mysql
, porque ele atualizará as listas de pacotes para que o software mais recente possa ser instalado.
Estou tentando instalar o PEAR e outros componentes, mas obtendo o seguinte.
$ sudo apt-get install php5 libapache2-mod-php5 php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-mysql is already the newest version.
php5-mysql set to manually installed.
libapache2-mod-php5 is already the newest version.
libapache2-mod-php5 set to manually installed.
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:
php5 : Depends: libapache2-mod-php5 (>= 5.5.11+dfsg-2+deb.sury.org~precise+1) but 5.5.10+dfsg-1+deb.sury.org~precise+1 is to be installed or
libapache2-mod-php5filter (>= 5.5.11+dfsg-2+deb.sury.org~precise+1) but it is not going to be installed or
php5-cgi (>= 5.5.11+dfsg-2+deb.sury.org~precise+1) but it is not going to be installed or
php5-fpm (>= 5.5.11+dfsg-2+deb.sury.org~precise+1) but 5.5.10+dfsg-1+deb.sury.org~precise+1 is to be installed
Depends: php5-common (>= 5.5.11+dfsg-2+deb.sury.org~precise+1) but 5.5.10+dfsg-1+deb.sury.org~precise+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Eu fiz as instruções encontradas aqui, para obter a configuração do PPA para o PHP 5.5 ... e não estou claro como proceder.
Depois de tentar a postagem sugerida nestes comentários:
$ sudo apt-get clean
$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
$ 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 0 not upgraded.
Certifique-se de ter executado sudo apt-get update
antes de executar sudo apt-get install php5 libapache2-mod-php5 php5-mysql
, porque ele atualizará as listas de pacotes para que o software mais recente possa ser instalado.