Linux

Ubuntu 22.04 SANE scanimage reports 'No SANE devices found' after installing vendor Brother driver—brsaneconfig2 lists device but scanimage does not

Environment

Environment

Ubuntu 22.04 LTS desktop, SANE 1.0.32 (distribution package), Brother ADS-2700W installed with Brother-provided deb packages (brsaneconfig2 present). Scanner has static IP 192.168.1.42. UFW enabled with port 6566 allowed. /etc/sane.d/brsane.conf contains the scanner IP.

Symptoms

Symptoms

brsaneconfig2/devices returns 'scanner 'ADS2700W' at 192.168.1.42', but 'scanimage -L' returns 'No SANE devices found'. GUI scanning apps (SimpleScan) also show nothing. Running 'brsaneconfig2 -a name=xxx model=ADS2700W ip=192.168.1.42' previously succeeded.

Observations

Observations

Package installed created /usr/lib/x86_64-linux-gnu/sane/libsane-brother* and /etc/sane.d/dll.conf contains 'brother'. strace of scanimage shows dlopen errors for the brother backend complaining about missing libatk-1.0 or relocation issues. Running 'ldd' on the libsane-brother library shows an unresolved dependency on libusb-0.1 (package absent).

Already attempted

Already attempted

Restarted saned and avahi-daemon, reinstalled Brother packages, added scanner IP to /etc/sane.d/net.conf and brsaneconfig2, allowed port 6566 on UFW, tried 32-bit compatibility libs suggested in vendor readme, ran scan via root (sudo scanimage -L) — still nothing.

Question

Question

Why does brsaneconfig2 detect the scanner but scanimage fails to list it, and what safe steps will get SANE to recognize and use the Brother backend without breaking system libraries?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
linnea_codes Answer
user
Posted 4w ago • 0 confirmations

Look for missing or wrong-architecture libraries used by Brother's SANE backend. Run ldd on the backend (e.g., /usr/lib/.../libsane-brother*) and install any missing packages (if it's a 32-bit binary, enable i386 multiarch and install the needed 32-bit libs). Make sure 'brother' is present in /etc/sane.d/dll.conf, run sudo ldconfig, restart saned, then run scanimage -L — it should now list the device. Verify by doing scanimage --format=tiff > test.tiff. If you changed system libs, note what you installed so you can remove them to rollback.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely causes

Vendor backend binary depends on missing or incorrect-version libraries (32-bit vs 64-bit mismatch) 85%
dll.conf missing the backend entry or wrong path to libsane plugin (configuration mismatch) 45%
Permissions on /var/run/saned or socket preventing normal users from seeing devices 25%

Summary

The brsaneconfig2 utility is a vendor tool that registers the device but the SANE front-end (scanimage) fails to load the vendor backend due to missing or ABI-mismatched shared-library dependencies. ldd reveals an unresolved dependency (e.g., legacy libusb-0.1 or 32-bit compatibility libraries). If the backend was built against different libc/ABI or 32-bit libs, the loader will skip it and SANE won't list the device despite registration.

Suggested Fixes

Diagnostic step 1
Run ldd /usr/lib/x86_64-linux-gnu/sane/libsane-brother* and install any missing dependencies (e.g., libusb-0.1-4:i386 or libatk) rather than copying random libs; prefer distro packages.
Diagnostic step 2
If vendor binary is 32-bit, install multiarch support and required 32-bit libs (sudo dpkg --add-architecture i386; sudo apt update; sudo apt install libc6:i386 libusb-0.1-4:i386).
Diagnostic step 3
Ensure /etc/sane.d/dll.conf contains a line 'brother' (no typo) and run sudo ldconfig; then restart saned or re-login.

Continue troubleshooting

Matched from the title, description and tags