[opensuse-support] Brother scanner ADS-1700W - Tumbleweed - driver installation problem
Hi, I have a Brother scanner ADS-1700W, which works under Leap 15.2 There is an older and a newer driver, the older works in Leap. Some time ago I could get the older driver somehow working in Tumbleweed. But after a fresh Tumbleweed installation Yast doesn't even install it: Here are the error messages driver: older - younger --------------------------------------- error messages/driver works in Leap: Fehler: INVALID:brscan5-1.1.0-0.x86_64 (RPM): Fehler beim Überprüfen der Signatur [6-Datei ist unsigniert] Header SHA1 digest: OK MD5 digest: OK Paket ist nicht signiert! Subprocess failed. Error: RPM fehlgeschlagen: grep: /usr/lib64/libstdc++.so.6: binary file matches [1;31mERROR: brscan5 depends on libstdc++/libstdc++6 (>= GLIBCXX_3.4.14)[1;0m error: %prein(brscan5-1.1.0-0.x86_64) scriptlet failed, exit status 254 error: brscan5-1.1.0-0.x86_64: install failed --------------------------------------- Error messages Paket 'brscan5' ist beschädigt, Integritätsprüfung ist fehlgeschlagen. Header SHA1 digest: OK MD5 digest: OK Paket ist nicht signiert! Die Installation des Pakets 'brscan5' ist fehlgeschlagen. Subprocess failed. Error: RPM fehlgeschlagen: grep: /usr/lib64/libstdc++.so.6: binary file matches [1;31mERROR: brscan5 depends on libstdc++/libstdc++6 (>= GLIBCXX_3.4.14)[1;0m error: %prein(brscan5-1.2.2-0.x86_64) scriptlet failed, exit status 254 error: brscan5-1.2.2-0.x86_64: install failed -------------------------------------- Both drivers seem to have the a problem with libstdc++6, which is installed. Any ideas? Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 23/10/2020 21.42, Peter McD wrote:
Hi,
I have a Brother scanner ADS-1700W, which works under Leap 15.2 There is an older and a newer driver, the older works in Leap.
Some time ago I could get the older driver somehow working in Tumbleweed.
But after a fresh Tumbleweed installation Yast doesn't even install it:
Here are the error messages driver: older - younger
--------------------------------------- error messages/driver works in Leap:
Fehler: INVALID:brscan5-1.1.0-0.x86_64 (RPM): Fehler beim Überprüfen der Signatur [6-Datei ist unsigniert]
You can make the output in English, and paste that instead. For example, create this script: cer@Telcontar:~> cat /usr/local/bin/englisch #!/bin/sh LANG=en_US.UTF-8 \ LC_ALL=en_US.UTF-8 \ DICTIONARY=english \ KDE_LANG=en_US.UTF-8 \ LANGUAGE=en_US.UTF-8:en \ exec "$@" cer@Telcontar:~> And then, you run: englisch zypper whatever... -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Am 23.10.20 um 21:47 schrieb Carlos E. R.:
On 23/10/2020 21.42, Peter McD wrote: ...
Here are the error messages driver: older - younger
--------------------------------------- error messages/driver works in Leap:
Fehler: INVALID:brscan5-1.1.0-0.x86_64 (RPM): Fehler beim Überprüfen der Signatur [6-Datei ist unsigniert]
You can make the output in English, and paste that instead.
Sorry, you are right, I'll do that. Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Am 23.10.20 um 21:42 schrieb Peter McD:
Hi,
I have a Brother scanner ADS-1700W, which works under Leap 15.2 There is an older and a newer driver, the older works in Leap.
Some time ago I could get the older driver somehow working in Tumbleweed.
But after a fresh Tumbleweed installation Yast/zypper doesn't even install it:
Here are the error messages driver: older - younger
------------------------------------------------------ Retrieving package brscan5-1.1.0-0.x86_64 (1/1), 918.6 KiB ( 3.8 MiB unpacked) brscan5-1.1.0-0.x86_64.rpm: Package is not signed! brscan5-1.1.0-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned] Abort, retry, ignore? [a/r/i] (a): Checking for file conflicts: ... [done] (1/1) Installing: brscan5-1.1.0-0.x86_64 ... [error] Installation of brscan5-1.1.0-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.1.0-0.x86_64) scriptlet failed, exit status 254 error: brscan5-1.1.0-0.x86_64: install failed Abort, retry, ignore? [a/r/i] (a): a Problem occurred during or after installation or removal of packages: Installation has been aborted as directed. Please see the above error message for a hint. ------------------------------- Retrieving package brscan5-1.2.2-0.x86_64 (1/1), 1.1 MiB ( 4.2 MiB unpacked) brscan5-1.2.2-0.x86_64.rpm: Package is not signed! brscan5-1.2.2-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned] Abort, retry, ignore? [a/r/i] (a): i Abort, retry, ignore? [a/r/i] (a): i 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 Abort, retry, ignore? [a/r/i] (a): a Problem occurred during or after installation or removal of packages: Installation has been aborted as directed. Please see the above error message for a hint. ------------------------------------------------ Both drivers seem to have the a problem with libstdc++6, which is installed. Any ideas? Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 23/10/2020 22.26, Peter McD wrote:
Am 23.10.20 um 21:42 schrieb Peter McD:
Hi,
I have a Brother scanner ADS-1700W, which works under Leap 15.2 There is an older and a newer driver, the older works in Leap.
Some time ago I could get the older driver somehow working in Tumbleweed.
But after a fresh Tumbleweed installation Yast/zypper doesn't even install it:
Here are the error messages driver: older - younger
------------------------------------------------------
Retrieving package brscan5-1.1.0-0.x86_64
(1/1), 918.6 KiB ( 3.8 MiB unpacked) brscan5-1.1.0-0.x86_64.rpm: Package is not signed!
brscan5-1.1.0-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned] Abort, retry, ignore? [a/r/i] (a):
Well, you are aborting the installation... I assume the package is not provided by openSUSE, thus it is normal they are not signed. Whatever text output follows is irrelevant.
Problem occurred during or after installation or removal of packages: Installation has been aborted as directed. Please see the above error message for a hint.
-------------------------------
Retrieving package brscan5-1.2.2-0.x86_64
(1/1), 1.1 MiB ( 4.2 MiB unpacked) brscan5-1.2.2-0.x86_64.rpm: Package is not signed!
brscan5-1.2.2-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned] Abort, retry, ignore? [a/r/i] (a): i Abort, retry, ignore? [a/r/i] (a): i
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.
Abort, retry, ignore? [a/r/i] (a): a Problem occurred during or after installation or removal of packages: Installation has been aborted as directed. Please see the above error message for a hint.
------------------------------------------------
Both drivers seem to have the a problem with libstdc++6, which is installed.
But not the version it wants. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Am 23.10.20 um 23:25 schrieb Carlos E. R.:
On 23/10/2020 22.26, Peter McD wrote:
Am 23.10.20 um 21:42 schrieb Peter McD:
Hi,
I have a Brother scanner ADS-1700W, which works under Leap 15.2 There is an older and a newer driver, the older works in Leap.
Retrieving package brscan5-1.2.2-0.x86_64
(1/1), 1.1 MiB ( 4.2 MiB unpacked) brscan5-1.2.2-0.x86_64.rpm: Package is not signed!
brscan5-1.2.2-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned] Abort, retry, ignore? [a/r/i] (a): i
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. ...
Both drivers seem to have the a problem with libstdc++6, which is installed.
But not the version it wants.
Proprietary driver:-( As I wrote, it works in Leap 15.2 Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 24/10/2020 12.02, Peter McD wrote:
Am 23.10.20 um 23:25 schrieb Carlos E. R.:
...
Both drivers seem to have the a problem with libstdc++6, which is installed.
But not the version it wants.
Proprietary driver:-( As I wrote, it works in Leap 15.2
Well, typically the version of libraries in TW is much more recent and not supported by a proprietary package. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hello, 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) Regards, Christian Boltz -- Und das mit dem TOFU solltest du auch noch üben. Also eher das _ohne_ TOFU. [Matthias Houdek in suse-linux] -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
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
Hello, Am Sonntag, 25. Oktober 2020, 14:08:31 CET schrieb Peter McD:
Am 24.10.20 um 20:57 schrieb Christian Boltz:
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)
peter@lux-tw:~/Scannerablage> rpm -qp --scripts brscan5-1.2.2-0.x86_64.rpm > atemp.txt
preinstall scriptlet (using /bin/sh): [...] echo -e '\033[1;31m'"ERROR: brscan5 depends on libc6.so.6 (>= GLIBC_2.17)"'\033[1;0m' exit -2 fi
OK, so the preinstall script does some dependency checks (instead of having proper rpm Requires etc.) Nothing to worry about, except that it failed in your case. 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.
preuninstall scriptlet (using /bin/sh):
At least the package cleans up after itsself when uninstalling it ;-) Regards, Christian Boltz -- Testers don't break the code, they break your illusions of the code. [https://twitter.com/MarciaBuzzella/status/916086274284331008] -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
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
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:
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)
peter@lux-tw:~/Scannerablage> rpm -qp --scripts brscan5-1.2.2-0.x86_64.rpm > atemp.txt
preinstall scriptlet (using /bin/sh): [...] Nothing to worry about, except that it failed in your case.
The postinstall script is more interesting: ...
/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.
It installs, but it doesn't work. Hmm, I got the scanner working with the older driver brscan5-1.1.0-0.x86_64 and setting some links manually about two month ago. So: rpm -Uhv --nopre brscan5-1.1.0-0.x86_64.rpm It shows up in Yast and in Yast - scanner, There is in Leap 15.2, in /etc/udev/rules.d/ 55-brother-mfp-brscan5-1.0.2-2.rules (Brother) 55-libsane.rules (Leap 15.2) 56-sane-backends-autoconfig.rules (Leap 15.2) so I add links in Tumbleweed in /etc/udev/rules.d/ 55-brother-mfp-brscan5-1.0.2-2.rules -> /opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules (Brother) 55-libsane.rules -> /usr/lib/udev/rules.d/55-libsane.rules (Tumblewwed) 56-sane-backends-autoconfig.rules -> /usr/lib/udev/rules.d/56-sane-backends-autoconfig.rules (Tumbleweed) It's a hack, but it works with Xsane and Skanlite Thanks Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Christian Boltz
-
Peter McD