我需要帮助找出问题所在。我想在服务器上安装 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.
这两个句子怎么可以同时是真的?
我错过了什么?
谢谢你的帮助
最佳答案
您必须使用 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/