[solved] Samba install problem with 23.05.x

I have 23.05.0 on a TL-WR1043nd fresh install, no othe probelms but am unable to install samba4 at all with the following errors: Idential thing happens with 23.05.2 on a TL-WR810n.

# opkg install samba4-server
Installing samba4-server (4.18.8-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/packages/samba4-server_4.18.8-1_mips_24kc.ipk
Installing libavahi-dbus-support (0.8-8) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/packages/libavahi-dbus-support_0.8-8_mips_24kc.ipk
Collected errors:
 * check_data_file_clashes: Package libavahi-dbus-support wants to install file /usr/lib/libavahi-common.so.3
        But that file is already provided by package  * libavahi-nodbus-support
 * check_data_file_clashes: Package libavahi-dbus-support wants to install file /usr/lib/libavahi-common.so.3.5.4
        But that file is already provided by package  * libavahi-nodbus-support
 * check_data_file_clashes: Package libavahi-dbus-support wants to install file /usr/lib/libavahi-core.so.7
        But that file is already provided by package  * libavahi-nodbus-support
 * check_data_file_clashes: Package libavahi-dbus-support wants to install file /usr/lib/libavahi-core.so.7.1.0
        But that file is already provided by package  * libavahi-nodbus-support
 * opkg_install_cmd: Cannot install package samba4-server.

No amount of searching the forum or google finds a solution

Any assistance most welcome.

It is trying to install this:

But you have libavahi-nodbus-support already installed.

You'll need to remove the nodbus version to allow samba4 to install.

1 Like

Ok, thanks, but some other package installed this. I do not know what this is but all the packages installed are needed. Is there a work arround?

Both of your devices have 8 MB flash, there is no way to fit samba4 into that (RAM will also be very, very limited).

In general, you have to choose - either the dbus variant of libavahi or the non-dbus one (I assume that anything using the non-dbus library will do with the dbus one as well, but not vice versa).

3 Likes

As @slh pointed out, you're going to be out of space with samba4. There is ksmbd which may fit, but RAM, as also noted, may also be problematic.

1 Like

In terms of space I have extroot on a usb so it is not so a concern. The issue seems to be at root to do with openssh-sftp-avahi-service removing that and libavahi-nodbus-support allowed samba in. This is now installed, though not configured. Its a shame there are incompatable packages like this. Losing openssh-sftp-avahi-service is a small loss but it is unfortunate.