phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Kan*_*rpp 11 php mysql phpmyadmin mariadb twig

I need help figuring out what's wrong. I want to install phpmyadmin on a server to import a wordpress DB but when I install it I have a problem with php-twig

I install 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.
Run Code Online (Sandbox Code Playgroud)

So I install 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.
Run Code Online (Sandbox Code Playgroud)

How this two sentences can be true and at the same time ?

  • phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed
  • php-twig is already the newest version (2.6.2-2).

What I have missing ?

Thanks for your help

小智 30

您必须使用 backports 存储库 ( https://wiki.debian.org/Backports ):

aptitude -t buster-backports install php-twig
Run Code Online (Sandbox Code Playgroud)

然后,您可以使用以下命令安装 phpmyadmin:

apt install phpmyadmin
Run Code Online (Sandbox Code Playgroud)