Necesito ayuda para averiguar qué está mal. Quiero instalar phpmyadmin en un servidor para importar una base de datos de wordpress pero cuando lo instalo tengo un problema con php-twig
Instalo phpmyadmin:
debian@XXX:~$ sudo apt-get install phpmyadmin 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: phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed E: Unable to correct problems, you have held broken packages.Así que instalo php-twig:
Reading package lists... Done Building dependency tree Reading state information... Done php-twig is already the newest version (2.6.2-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.¿Cómo estas dos oraciones pueden ser verdaderas y al mismo tiempo?
¿Qué me falta?
Gracias por tu ayuda
La instalación desde la fuente es más fácil y eficiente. Yo uso este tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-phpmyadmin-from-source-debian-10
Tuve el mismo problema, no encontré cómo instalar php-twig 2.9, así que finalmente seguí los pasos descritos aquí para instalarlo desde la fuente: https://www.itzgeek.com/how-tos/linux/debian/how -para-instalar-phpmyadmin-con-nginx-en-debian-10.html
Tienes que usar el repositorio de backports ( https://wiki.debian.org/Backports ):
aptitude -t buster-backports install php-twigluego, puede instalar phpmyadmin con:
apt install phpmyadmin