phpmyadmin : Depends: php-twig (>= 2. 9) 但要安装 2.6.2-2。什么?

标签 php mysql phpmyadmin twig mariadb

我需要帮助找出问题所在。我想在服务器上安装 phpmyadmin 以导入 wordpress DB,但是当我安装它时,我遇到了 php-twig 问题

我安装 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.

所以我安装了 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.

这两个句子怎么可以同时是真的?
  • phpmyadmin : 取决于: php-twig (>= 2.9) 但要安装 2.6.2-2
  • php-twig 已经是最新版本(2.6.2-2)。

  • 我错过了什么?

    谢谢你的帮助

    最佳答案

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

    aptitude -t buster-backports install php-twig
    

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

    关于phpmyadmin : Depends: php-twig (>= 2. 9) 但要安装 2.6.2-2。什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61477019/

    相关文章:

    php - 在 symfony 实体中获取和设置下划线

    php - 使用 phpMyAdmin 同步 MySQL 远程和本地数据库

    php - while循环多次显示一条记录php和mysql问题

    php - MYSQL字符计数错误

    mysql - 两张不同的表,都获取另一个表的信息

    mysql - 如何使用 PhpStorm 连接到 localhost MySQL5.7 数据库?

    mysql - 如何在mysql中对多列的三个表进行连接查询?

    mysql - 手动删除wordpress数据库中的第一张图片

    mysql - PHPMyAdmin 中的 mysql 查询中出现意外标记

    php - 从 html 表单编辑数据库中的单个 ROW