External Storage: smbclient is not installed. But, i installed php-smbclient and smbclient

Hi.

My system:

SO: Linux Ubuntu 24.04.3 LTS

PHP: 8.3.6

PHP smb: php8.3-smbclient

Nextcloud: 25 Autumn

I intalled smbclient anda php-smbclient via APT

root@srv-cloud1:/# apt install smbclient php-smbclient
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
smbclient is already the newest version (2:4.19.5+dfsg-4ubuntu9.4).
php-smbclient is already the newest version (1.0.6-8ubuntu3).

Restarted host. Activated ‘External Storage’. But, when i go to ‘External Storage’, i recive this mensage:

Either the php-smbclient library (preferred) or the smbclient binary is required for SMB storages.

I don’t use docer.

Have you installed nextcloud snap?

Then it is not supported.

When you install nextcloud pure instead, you also need a database like mariadb and configure it.

1 Like

Hey @NCA welcome to the nextcloud community :waving_hand:

you have omitted to complete the Support template. Please use this when you request support which makes it difficult to help you and leads to questions:

@DevelOpsMan quite correctly inquires…

this is only partly so since the snap does not include third party binaries, but connecting samba shares or local network shares works if you do it the Linux way, see

Okay. Let’s go:

Yes, I installed Nextcloud via snap, following the standard instructions.

From what I researched, SNAP restricts access to the system. I changed the mode to dev or classic. But it didn’t work.

So, I uninstalled and reinstalled with the --dev option and then with --classic, but neither worked.

Then, I uninstalled everything and installed it manually directly on the system. And, voilà, it worked!

Therefore, the problem is ‘snap’!

Now, my Nextcloud is integrated with Active Directory using LDAP and mapped to a Windows share for web access.

So, if you need SMB, you can’t use SNAP.

that is simply false

that is simply wrong… read the docs

well done, good job :+1:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.