Am 24.10.20 um 20:57 schrieb Christian Boltz:
Am Freitag, 23. Oktober 2020, 23:25:15 CEST schrieb Carlos E. R.:
On 23/10/2020 22.26, Peter McD wrote: [...]
Checking for file conflicts: .... [done] (1/1) Installing: brscan5-1.2.2-0.x86_64 ... [error] Installation of brscan5-1.2.2-0.x86_64 failed: Error: Subprocess failed. Error: RPM failed: grep: /usr/lib64/libstdc++.so.6: binary file matches ERROR: brscan5 depends on libstdc++/libstdc++6 (>= GLIBCXX_3.4.14) error: %prein(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 254 error: brscan5-1.2.2-0.x86_64: install failed
I don't remember if this means that they want glibc version greater than 3.4.14, or the reverse. In any case, the condition fails.
I'm not sure if the failure comes from the rpm dependencies ("requires"). The error message looks more like the %pre script is failing, maybe the glibc version check is done in the %pre script? The failing %pre script will then abort/prevent the package installation.
Assuming you downloaded the package manually, you can - check what that script wants to do: rpm -qp --scripts brscan5-1.2.2-0.x86_64 .rpm (If unsure, post the output of this command.) - install the package without running these scripts: rpm -Uhv --noscripts brscan5-1.2.2-0.x86_64 .rpm (needless to say that whatever the %pre and %post scripts would do will not be done, so you'll probably need to do these things manually)
Oh, thanks:-) I'll do both. rpm -qp as user rpm -Uhv as root --------------------------------------------- peter@lux-tw:~/Scannerablage> rpm -qp --scripts brscan5-1.2.2-0.x86_64.rpm > atemp.txt preinstall scriptlet (using /bin/sh): GLIBSTDCPP="/usr/lib/libstdc++.so.6" GLIBC="/lib/libc.so.6" if [ $(uname -m) = x86_64 ];then if [ -e /usr/lib64/libstdc++.so.6 ];then GLIBSTDCPP="/usr/lib64/libstdc++.so.6" GLIBC="/lib64/libc.so.6" elif [ -e /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ];then GLIBSTDCPP="/usr/lib/x86_64-linux-gnu/libstdc++.so.6" GLIBC="/lib/x86_64-linux-gnu/libc.so.6" fi else if [ -e /usr/lib32/libstdc++.so.6 ];then GLIBSTDCPP="/usr/lib32/libstdc++.so.6" GLIBC="/lib32/libc.so.6" elif [ -e /usr/lib/i386-linux-gnu/libstdc++.so.6 ];then GLIBSTDCPP="/usr/lib/i386-linux-gnu/libstdc++.so.6" GLIBC="/lib/i386-linux-gnu/libc.so.6" fi fi if [ "$(grep 'GLIBCXX_3\.4\.14' $GLIBSTDCPP)" = '' ];then echo -e '\033[1;31m'"ERROR: brscan5 depends on libstdc++/libstdc++6 (>= GLIBCXX_3.4.14)"'\033[1;0m' exit -2 fi if [ "$(grep 'GLIBC_2\.17' $GLIBC)" = '' ];then echo -e '\033[1;31m'"ERROR: brscan5 depends on libc6.so.6 (>= GLIBC_2.17)"'\033[1;0m' exit -2 fi 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 preuninstall scriptlet (using /bin/sh): /opt/brother/scanner/brscan5/udev-rules/udev_uninstall 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) rm $libdir/sane/${lnkfile2} rm $libdir/sane/${lnkfile1} rm $libdir/sane/${library} 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) rm $libdir/${lnkfile2} rm $libdir/${lnkfile1} rm $libdir/${library} done fi done /opt/brother/scanner/brscan5/setupSaneScan5 -e rm /opt/brother/scanner/brscan5/udev-rules/udev_uninstall --------------------------------------------------------------------- lux-tw:/home/peter/Scannerablage # rpm -Uhv --noscripts brscan5-1.2.2-0.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:brscan5-1.2.2-0 ################################# [100%] lux-tw:/home/peter/Scannerablage # -------------------------------------------------------------------------- Yast: brscan5 installed scanner: ON xsane: Keiner Geräte errreichbar (no devices accessible??) Where should I look? Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org