Am 25.10.20 um 15:00 schrieb Christian Boltz:
Am Sonntag, 25. Oktober 2020, 14:08:31 CET schrieb Peter McD:
Am 24.10.20 um 20:57 schrieb Christian Boltz:
... The postinstall script is more interesting:
postinstall scriptlet (using /bin/sh): echo "This software is based in part on the work of the Independent JPEG Group." if [ $(uname -m) = x86_64 ];then libdirs="/usr/lib/ /usr/lib64/ /usr/lib/x86_64-linux-gnu/" else libdirs="/usr/lib/ /usr/lib32/ /usr/lib/i386-linux-gnu/" fi for libdir in $libdirs do if [ -e $libdir/sane ];then library=libsane-brother5.so.1.0.7 lnkfile1=$(echo $library | sed s/"\.[0-9]*$"//g) lnkfile2=$(echo $lnkfile1 | sed s/"\.[0-9]*$"//g) ln -s /opt/brother/scanner/brscan5/$library $libdir/sane/${library} ln -s $libdir/sane/${library} $libdir/sane/${lnkfile1} ln -s $libdir/sane/${lnkfile1} $libdir/sane/${lnkfile2} fi if [ -e $libdir/ ];then extlibs="libLxBsDeviceAccs.so.1.0.0 libLxBsNetDevAccs.so.1.0.0 libLxBsScanCoreApi.so.2.0.0 libLxBsUsbDevAccs.so.1.0.0" for library in ${extlibs} do lnkfile1=$(echo $library | sed s/"\.[0-9]*$"//g) lnkfile2=$(echo $lnkfile1 | sed s/"\.[0-9]*$"//g) ln -s /opt/brother/scanner/brscan5/$library $libdir/${library} ln -s $libdir/${library} $libdir/${lnkfile1} ln -s $libdir/${lnkfile1} $libdir/${lnkfile2} done fi done /opt/brother/scanner/brscan5/setupSaneScan5 -i /opt/brother/scanner/brscan5/udev-rules/udev_install
So postinstall creates some symlinks and finally runs two commands in /opt/brother/scanner/. That's not nice (it bypasses the rpm database), but explains why installing with --noscripts doesn't result in a working scanner.
Basically you'll need to run the postinstall script. There are two options: a) re-install the package and skip only the preinstall script: rpm -Uhv --nopre brscan5-1.2.2-0.x86_64 .rpm (you might also need -f to force a re-install of the package) b) paste the whole postinstall script into a file and then to run it with bash the_file_you_created
Afterwards, the scanner should[tm] work.
Option (a) another set of error messages (in English, hi Carlos!) --lux-tw:/home/peter/Scannerablage # ./Konsole_English rpm -Uhv --force --nopre brscan5-1.2.2-0.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:brscan5-1.2.2-0 ################################# [ 14%] This software is based in part on the work of the Independent JPEG Group. warning: %post(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 255 /var/tmp/rpm-tmp.Xf32eo: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed /var/tmp/rpm-tmp.MOo2lp: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0.7': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed /var/tmp/rpm-tmp.WeUg9l: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0.7': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed /var/tmp/rpm-tmp.fjYz6o: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0.7': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed /var/tmp/rpm-tmp.58C5jo: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0.7': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed /var/tmp/rpm-tmp.tqDyQm: line 1: /opt/brother/scanner/brscan5/udev-rules/udev_uninstall: No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//sane/libsane-brother5.so.1.0.7': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsScanCoreApi.so.2.0.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0': No such file or directory rm: cannot remove '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': No such file or directory rm: cannot remove '/opt/brother/scanner/brscan5/udev-rules/udev_uninstall': No such file or directory error: %preun(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 1 error: brscan5-1.2.2-0.x86_64: erase failed lux-tw:/home/peter/Scannerablage # ------------------------- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org