Where i get package "php-smbclient"?


at the moment i use nextcloud with docker. My Problem is, some Features doesnt work. SMB Shares sometimes not scan with errors, preview Thumbnails doenst create with error.

Here we find out, we need to use php-smbclient package, not smbclient package. We use Debian 11.

Do anyone know how i can add the package for the Image?

I build my Image with this Command:

FROM nextcloud:25.0.1

RUN set -x \
	&& apt-get update \
	&& apt-get install -y libmagickcore-6.q16-6-extra smbclient \
	&& rm -rf /var/lib/apt/lists/*

php-smbclient i dont find in the repositories of the host or Container. Both use different Repositories (Container use docker repos)

I miss a repo and dont know, if i have a repo, how i can add this in the command.

I hope you can help me


See here for some examples. They only use smbclient here, so I’m not sure about php-smbclient. Does it not come up in apt search?

In this one they have a libsmbclient-dev and a php extension also named smbclient.

“smbclient” is not “php-smbclient”. There are different.
With “smbclient” i cant scan videofiles, the scanner crash and stuck.
With php-smbclient on testsystem of a friend (hosted by a provider, not selfhosted, so no expertise or package for me) the scan is fine, no crash or stuck.

or is smbclient in debian php-smbclient?
On Debiantracker the php-smbclient is still unstable oder 1 1/2 years.

You can see here, smbclient is different:

Sorry, I don’t know then. I’ve never needed it. It looks like the source code is available, so I suppose you could always build it if it isn’t there.

1 Like

Builded Image with this Docker file solved my problem. I dont know why, before i used similar, but now it works. Now i have another Problem :smiley:

Thank you