Skip to content
Code and Bytes Code and Bytes

Code and Bytes
Code and Bytes

No se puede instalar PHP en Debian

Posted on 31 March, 20197 April, 2020

Cuando se ejecuta sudo apt-get install php7.0 aparece el error:

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:
 php : Depends: php7.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Se debe ejecutar el siguiente comando para verificar que PPAs tenemos configurados:

LC_ALL=C apt policy

Si la salida es esta:

 500 http://ppa.launchpad.net/ondrej/php/ubuntu disco/main amd64 Packages
     release v=19.04,o=LP-PPA-ondrej-php,a=disco,n=disco,l=***** The main PPA fo                                                                             r supported PHP versions with many PECL extensions *****,c=main,b=amd64
     origin ppa.launchpad.net

Quiere decir que hemos roto el sistema agregando fuentes extranjeras, hay que eliminar las fuentes php del sourcelist:

cd /etc/apt/sources.list.d/

Eliminar las fuentes php:

rm ondrej-ubuntu-php-disco.list
rm ondrej-ubuntu-php-disco.list.save
rm php7.3.list
rm php7.3.list.save

Actualizar e instalar

apt-get update
apt-get install php

Y listo.

Linux PHP

Post navigation

Previous post
Next post

Related Posts

Instalar dropbox desde línea de comandos en Debian

Posted on 24 February, 201312 June, 2015

1. Desde el home del usuario (preferiblemente que no sea el root) ejecutar: wget -O dropbox.tar.gz “https://www.dropbox.com/download?plat=lnx.x86” –no-check-certificate Con ésto descargamos el archivo dropbox.tar.gz para luego extraerlo: tar -xvzf dropbox.tar.gz

Read More

Mantener sincronizada la hora en Debian / Ubuntu

Posted on 24 February, 201323 December, 2014

Algunos programas requieren mantener la hora sincronizada ya que de esto depende el buen funcionamiento por ejemplo de rrdtool, actualmente estoy usando Debian en modo consola por lo que mostraré como hacerlo: Antes de instalar NTP y sincronizar hay que tener configurada la zona horaria correcta en el fichero /etc/localtime…

Read More

Resolver nombres de equipos Windows en Linux Ubuntu

Posted on 1 July, 20115 April, 2014

Cuando queremos realizar un ping a otro equipo en la red pero no recordamos su ip lo podemos hacer con el nombre, y el resultado del ping nos muestra la Ip del equipo si éste se encuentra encendido. Pero en Ubuntu nos va a mostrar este error: Este problema se…

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Buscar

Categorias

  • AI (2)
  • Asterisk (9)
  • Bases de datos (1)
  • DevOps (4)
  • Git (2)
  • HTML (1)
  • Laravel (6)
  • Linux (67)
  • MCP Server (1)
  • Mikrotik (3)
  • MySQL (5)
  • n8n (1)
  • Personal (4)
  • PHP (15)
  • Python (2)
  • Software recomendado (1)
  • Tips (1)
  • VSCode (4)
  • vTiger (4)
  • Windows (10)
  • Wordpress (4)
©2026 Code and Bytes | WordPress Theme by SuperbThemes