
我正在嘗試在 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
.