![安装 joomla 4 ubuntu 21.04](https://linux22.com/image/1183073/%E5%AE%89%E8%A3%85%20joomla%204%20ubuntu%2021.04.png)
$ sudo apt install apache2 libapache2-mod-php openssl php-imagick php-gd php-imap php-intl php-json php-ldap php-mbstring php-mysql php-pgsql php-smbclient php-ssh2 php-sqlite3 php-xml php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-smbclient is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php-smbclient' has no installation candidate
答案1
此php-smbclient
套餐仅提供在 18.04 Universe 存储库中,因此如果不添加第三方仓库,则无法在 21.04 上安装,例如安德烈 PPA。
您可以像这样将其添加到您的系统中:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
从这里您将能够安装该php-smbclient
包。