我正在尝试在 Ubuntu 18.04 中为 php 7.4 安装 php 扩展 pear。当我运行命令时,sudo apt-get install php7.4-pear
我得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.4-pear
E: Couldn't find any package by glob 'php7.4-pear'
E: Couldn't find any package by regex 'php7.4-pear'
我该如何解决这个问题?
答案1
除非您有第三方存储库,否则没有名为 的包php7.4-pear
。正确的名称应该是php-pear
。