无法找到软件包php7.3-gd [英] Unable to locate package php7.3-gd

查看:247
本文介绍了无法找到软件包php7.3-gd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从cakephp 2.x项目中得到了错误:

I get the error from my cakephp 2.x project:

The PHP GD extension is required, but is not installed.

我在Debian上使用php7.3和apache

I use php7.3 with apache on debian

我搜索并找到

apt-get install php7.3-gd

我尝试了此操作,但仅收到以下错误:

I tried this but i only get following error:

E: Unable to locate package php7.3-gd
E: Couldn't find any package by glob 'php7.3-gd'
E: Couldn't find any package by regex 'php7.3-gd'

我再次搜索,但没有找到仅针对ubunto的解决方案没有其他工作。我希望有人可以帮助我解决这个问题。

I searched again, but didnt find a soulution for this problem only for ubunto and nothing else worked. I hope someone could help me with this problem.

推荐答案

似乎您没有添加适当的存储库。尝试:

It looks like you do not have the appropriate repo added. Try :

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3-gd

这篇关于无法找到软件包php7.3-gd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆