Error while loading shared libraries: libsmbclient.so.0: cannot open shared object file: No such file or directory

I’m trying to run the command to tell Nextcloud to rescan all the files, sudo -u www-data ./php occ files:scan --all, but I keep getting the following error:

./php: error while loading shared libraries: libsmbclient.so.0: cannot open shared object file: No such file or directory

I have very little Linux experience, so any help figuring how to fix this would be greatly appreciated.

Correct command can be found here: Nextcloud · syncloud/platform Wiki · GitHub

Today it looks like this:

snap run nextcloud.occ files:scan --all
1 Like