&引用;作曲家更新“;在ubuntu vagrant box中安装gd后出错

&引用;作曲家更新“;在ubuntu vagrant box中安装gd后出错,vagrant,gd,composer-php,php-gd,Vagrant,Gd,Composer Php,Php Gd,嗨,我的composer.json中有以下依赖项 "require": { "gd": ">=2.0.28", "ext-gd": "*" } 当我更新composer时,会出现以下错误 Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package gd could not be found in any versi

嗨,我的composer.json中有以下依赖项

"require": {
    "gd": ">=2.0.28",
    "ext-gd": "*"
}
当我更新composer时,会出现以下错误

Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package gd could not be found in any version, there may be a typo in the package name.
Potential causes:
    - A typo in the package name
    - The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.**
无法将您的需求解析为一组可安装的软件包。
问题1
-在任何版本中都找不到请求的包gd,包名称中可能有键入错误。
潜在原因:
-软件包名称中的输入错误
-根据您的最低稳定性设置,该软件包没有足够稳定的版本
有关更多详细信息,请参阅**
但是,我已经使用命令安装了php gd:sudo apt get install php5 gd

还有什么别的办法可以让它工作吗

任何帮助都将不胜感激

谢谢

“gd”不是已知的PHP库包名称。如果您想强制提供扩展,则只能使用“ext gd”

请注意,Composer建议不要对扩展强制执行版本,因为它们的版本架构可能不一致。请参见,您可以尝试

$composer global需要“fxp/composer资产插件:1.0.1”