我尝试安装作曲家.....尝试运行此命令
sudo apt install curl php-cli php-mbstring git unzip
在 ubuntu 18.10 上...我在 cmd 上显示了此消息
sudo apt install curl php-cli php-mbstring git unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version (6.0-21ubuntu1).
curl is already the newest version (7.61.0-1ubuntu2.2).
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-mbstring : Depends: php7.2-mbstring but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
你使用的是不稳定版本吗?你安装的 php 是什么版本?
如果您只有 php5,则可以安装 php7。
此外,您可以使用 usephp7.2-mbstring
作为包名称来apt
确保获得 7.2。