
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
。