Siduction Forum

Siduction Forum => Upgrade Warnings (DE / EN) => Topic started by: dibl on 2021/08/24, 23:04:36

Title: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/24, 23:04:36
After hundreds of updates in the past few days, I just discovered that I've lost my scanning capability. libsane is installed and current. Before I start a troubleshooting adventure, I thought I would first ask whether anyone else has this issue.  Thank you.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: Pip on 2021/08/24, 23:29:59
All the settings on skanlite were set way off from before, but it could still scan from my USB HP Photosmart.

skanlite 2.2.0-1, libsane 1.0.32-4

Perhaps not helpful, but it does indicate it's not a general problem. I think.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/24, 23:54:07
Thank you Pip.  I vaguely recall, from maybe 15 years ago, some problem where scanning would only work from a root login.  I wonder if we have regressed somewhere.  I'll troubleshoot it tomorrow and post back if I learn anything.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: finotti on 2021/08/25, 03:40:27
FYI: xsane gave me problems in the past, so I've been using simple-scan, and it's working here, although my last update was a couple of days ago.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: jure on 2021/08/25, 09:55:19
here skanlite is working with my HP Officejet Pro via network

Code: [Select]
apt policy skanlite libsane
skanlite:
  Installiert:           2.2.0-1
  Installationskandidat: 2.2.0-1
  Versionstabelle:
 *** 2.2.0-1 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        500 http://ftp.de.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
libsane:
  Installiert:           (keine)
  Installationskandidat: 1.0.32-4
  Versionstabelle:
     1.0.32-4 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        500 http://ftp.de.debian.org/debian unstable/main amd64 Packages

* Kernel: 5.13.12-1-siduction-amd64 x86_64 bits: 64 Desktop: KDE Plasma 5.21.5
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: charlyheinz on 2021/08/25, 10:53:39
Here scan software is not working anymore. An Epson Workforce WF-7515 connected via network could not be found from software. I've tried Xsane, iscan and simple-scan. The network- conenction is working with cups for printing, the configuration in etc/sane.d/epcowa.conf still exists and I can reach the webinterface of the printer/scanner.
I could not find any further debugging information.
What I will try is to remove and reinstall the Epson Iscan- softwarepakage. May be it will help. I'll post the result later.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: charlyheinz on 2021/08/25, 11:32:04
After removing and reinstall the Epson scanning softwarebundle (iscan-bundle-2.30.4.x64) the scanner is working again!
Quote
apt policy xsane iscan libsane
xsane:
  Installiert:           0.999-12
  Installationskandidat: 0.999-12
  Versionstabelle:
 *** 0.999-12 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
iscan:
  Installiert:           2.30.4-2
  Installationskandidat: 2.30.4-2
  Versionstabelle:
 *** 2.30.4-2 100
        100 /var/lib/dpkg/status
libsane:
  Installiert:           1.0.32-4
  Installationskandidat: 1.0.32-4
  Versionstabelle:
 *** 1.0.32-4 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/25, 14:41:46
Quote from: Charleyheinz
After removing and reinstall the Epson scanning softwarebundle (iscan-bundle-2.30.4.x64) the scanner is working again!

Yes, mine is an old, but good-working Epson:

Code: [Select]
Bus 003 Device 004: ID 04b8:010a Seiko Epson Corp. GT-8700/GT-8700F [Perfection 1640SU/1640SU PHOTO]
This scanner has been working on my linux systems for ~15+ years with no problems. Suddenly it won't work on either of my desktop systems, which are fully updated siduction installations. The error message is the same on both.  So something in Debian has changed.

Google found another person just ran into the same problem with Suse last month:

https://forums.opensuse.org/showthread.php/557586-Old-Epson-Perfection-1640SU-flatbed-scanner

It's been weeks since I last used my scanner, so it could have been "broken" for that long, too.

So, something in Debian has changed, and I need to figure out what that change was, and find a workaround -- maybe that iscan-bundle package will fix it.  But I never needed it before.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: charlyheinz on 2021/08/25, 15:16:58
Hallo Dibl- I think I've had the same scanner in the past. Very goog for negativ scanning with the overhead- light unit. But I have used it via scsi interface. How are you working on it- scsi / usb /network? Maybe scsi connected is not that easy this days.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/25, 15:54:02
It's a USB scanner -- I have the adapter for slides/negatives, but these days it's only for occasional office work -- probably it gets used twice a month at most. It is seen by the system (see lsusb output above), and it is found by skanlite and xsane, but then the preview command fails with the error.  I've downloaded the Epson tarball for the imagescan bundle -- hopefully this will fix the issue.

EDIT:  This is imagescan-bundle for Debian 10.  It appears to be ver.. 3.65, according to the package name.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/25, 16:05:38
Here's where the fun ended when I attempted to install the image-scan bundle with  "install.sh" method:

Code: [Select]
Package libboost-filesystem1.67.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-program-options1.67.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-system1.67.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost-filesystem1.67.0' has no installation candidate
E: Package 'libboost-program-options1.67.0' has no installation candidate
E: Package 'libboost-system1.67.0' has no installation candidate

Sigh.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/25, 16:48:54
So I found the three missing packages in stretch oldstable, and installed them. Afterwards, the Epson imagescan-bundle installed correctly with no errors.  That's the good news. The other news is, the error was not affected and remains the same.

EDIT: Installed simple-scan. It finds the scanner, but scanning fails with "Unable to start scan".

EDIT2:
Code: [Select]
$ scanimage > scannertest24aug21.pnm
Output format is not set, using pnm as a default.
scanimage: sane_start: Operation not supported

Well, now I know what is generating the error message.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/25, 18:17:12
@Charleyheinz, how did you get around this issue, when installing iscan-bundle-2.30.4.x64.deb?

Code: [Select]
$ ./install.sh
Hit:1 https://wire-app.wire.com/linux/debian stable InRelease
Hit:2 http://deb.debian.org/debian experimental InRelease                                           
Hit:3 http://httpredir.debian.org/debian unstable InRelease                                         
Hit:4 https://packages.siduction.org/extra unstable InRelease 
Hit:5 https://packages.siduction.org/fixes unstable InRelease
Hit:6 https://packages.siduction.org/extra experimental InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libgcc-s1' instead of 'libgcc1'
Note, selecting 'libgcc-s1' instead of 'libgcc1'
libgcc-s1 is already the newest version (11.2.0-3).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 iscan-network-nt : Depends: iscan (>= 2.29.3) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

apt --fix-broken install merely removed the packages that failed to install in dpkg.


EDIT: Concerned about changed udev rules, I followed the Debian Scanner Wiki instruction to check that:

Code: [Select]
/$ ls -l /dev/bus/usb/*/*
crw-rw-r--  1 root root 189,   0 Aug 25 10:43 /dev/bus/usb/001/001
crw-rw-r--  1 root root 189,   1 Aug 25 10:43 /dev/bus/usb/001/002
crw-rw-r--  1 root root 189,   2 Aug 25 10:43 /dev/bus/usb/001/003
crw-rw-r--  1 root root 189,   3 Aug 25 10:43 /dev/bus/usb/001/004
crw-rw-r--  1 root root 189, 128 Aug 25 10:43 /dev/bus/usb/002/001
crw-rw-r--  1 root root 189, 256 Aug 25 10:43 /dev/bus/usb/003/001
crw-rw-r--  1 root root 189, 257 Aug 25 10:43 /dev/bus/usb/003/002
crw-rw-r--  1 root root 189, 259 Aug 25 10:43 /dev/bus/usb/003/004
crw-rw-r--+ 1 root root 189, 262 Aug 25 15:00 /dev/bus/usb/003/007
crw-rw-r--  1 root root 189, 384 Aug 25 10:43 /dev/bus/usb/004/001
crw-rw-r--  1 root root 189, 385 Aug 25 10:43 /dev/bus/usb/004/002
crw-rw-r--  1 root root 189, 512 Aug 25 10:43 /dev/bus/usb/005/001
crw-rw-r--  1 root root 189, 640 Aug 25 10:43 /dev/bus/usb/006/001
crw-rw-r--  1 root root 189, 768 Aug 25 10:43 /dev/bus/usb/007/001
crw-rw-r--  1 root root 189, 896 Aug 25 10:43 /dev/bus/usb/008/001
don@dibl-patience:/$ getfacl /dev/bus/usb/003/007
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/003/007
# owner: root
# group: root
user::rw-
user:don:rw-
group::rw-
group:scanner:rw-
mask::rw-

My user has rw permisstion on the scanner device on USB /dev/bus/usb/003/007. So that's not the problem.
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: charlyheinz on 2021/08/26, 12:18:02
@dibil
sorry for the delay:

Are you using your scanner via network? If so you need to configure something:

https://download.ebz.epson.net/man/linux/iscan_e.html#sec9

My scanner is connected to a network-switch. So I had to configure epcowa.conf as discribed in this howto.

If you have connected your scanner via USB the iscan-network-nt plugin  is not necessary. You can install the software manualy with dpkg without using the script. If you had extracted the bundle you can install iscan-data / iscan-core seperat.

I have had no depedencie-problems while using the original script.

Before that remove iscan.
Please read the manual 'cause it is interesting
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/26, 12:36:22
Got it -- thank you.  No, my scanner is connected directly to my desktop via USB. So I don't care about network configuration.

I will uninstall what I installed yesterday and try again with dpkg.  Thank you very much!
Title: Re: Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/26, 14:50:09
OK, my problem is fixed -- somehow ....

Code: [Select]
don@dibl-patience:~$ sudo apt policy xsane iscan libsane
[sudo] password for don:
xsane:
  Installed: 0.999-12
  Candidate: 0.999-12
  Version table:
 *** 0.999-12 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
iscan:
  Installed: 2.30.4-2
  Candidate: 2.30.4-2
  Version table:
 *** 2.30.4-2 100
        100 /var/lib/dpkg/status
libsane:
  Installed: 1.0.32-4
  Candidate: 1.0.32-4
  Version table:
 *** 1.0.32-4 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
don@dibl-patience:~$ scanimage --list-devices
device `epson2:libusb:003:003' is a Epson Perfection1640 flatbed scanner
device `epkowa:usb:003:003' is a Epson Perfection 1640 flatbed scanner

The second device shown above, the "epkowa" scanner, works, if I select it from the (new) two-scanner list found by skanlite. There was no such scanner found before I installed this driver, but the "epson" scanner always worked. Now the "epson" scanner still does not work, but I have my scanning capability back, so I'm marking this issue resolved.  Thank you very much, charleyheinz!
Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: ReinerS on 2021/08/26, 18:53:26
Hmm,
ich hänge mich mal hier mit dran.
Mein Brother MFC-5890CN wird aktuell auch nicht mehr übers Netz erkannt.
Vor etwa 2 Wochen gings noch.
USB probiere ich gleich noch.
Drucken geht, aktuelle Treiber vom Brother habe ich auch installiert.
Mit sane-find-scanner wird er auch nicht entdeckt.
Die Brother Konfiguration in /usr/local/Brother scheint auch ok (IP-Adresse).

Schleppe jetzt den MFC rüber und probiere es mal mit USB.

Grüße

Reiner
Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: ReinerS on 2021/08/26, 19:42:05
Hmm,
can it be that the file /usr/lib/udev/rules.d/60-libsane.rules is obsolete or missing?
I can find only 60-libsane1.rules dated 18.Aug. there
Thes scanner is now found via USB with sane-find-scanner but neither recognized with scanimage -K or xsane

regards

Kann es sein das die Datei /usr/lib/udev/rules.d/60-libsane.rules obsolet ist oder fehlt?
Finde nur die 60-libsane1.rules mit Datum 18.Aug.
Scanner wird über USB mit sane-find-scanner zwar erkannt aber weder mit scanimage -L
oder xsane wird er gefunden.

Grüße

Reiner
Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/08/27, 20:24:07
Hmmmmmm.  No 60-libsane.rules, but instead 60-libsane1.rules

Code: [Select]
don@dibl-patience:~$ cat /usr/lib/udev/rules.d/60-libsane1.rules
# This file was generated from description files (*.desc)
# by sane-desc 3.6 from sane-backends 1.0.32-debian
#
# udev rules file for supported USB and SCSI devices
#
# For the list of supported USB devices see /lib/udev/hwdb.d/20-sane.hwdb
#
# The SCSI device support is very basic and includes only
# scanners that mark themselves as type "scanner" or
# SCSI-scanners from HP and other vendors that are entitled "processor"
# but are treated accordingly.
#
# If your SCSI scanner isn't listed below, you can add it to a new rules
# file under /etc/udev/rules.d/.
#
# If your scanner is supported by some external backend (brother, epkowa,
# hpaio, etc) please ask the author of the backend to provide proper
# device detection support for your OS
#
# If the scanner is supported by sane-backends, please mail the entry to
# the sane-devel mailing list (sane-devel@alioth-lists.debian.net).
#
ACTION=="remove", GOTO="libsane_rules_end"

# The following rule will disable USB autosuspend for the device
ENV{DEVTYPE}=="usb_device", ENV{libsane_matched}=="yes", TEST=="power/control", ATTR{power/control}="on"

SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
GOTO="libsane_rules_end"

LABEL="libsane_scsi_rules_begin"
KERNEL!="sg[0-9]*", GOTO="libsane_rules_end"

# Generic: SCSI device type 6 indicates a scanner
ATTRS{type}=="6", ENV{libsane_matched}="yes"

# Some scanners advertise themselves as SCSI device type 3

# Wildcard: for some Epson SCSI scanners
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="SCANNER*", ENV{libsane_matched}="yes"

# Epson Expression 800 | Epson Expression 800
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Expression800", ENV{libsane_matched}="yes"

# Epson Perfection 2450 | Epson GT-9700F | Epson Perfection 2450 PHOTO
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9700", ENV{libsane_matched}="yes"

# Epson Perfection 3200 | Epson GT-9800F | Epson Perfection 3200 PHOTO
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9800", ENV{libsane_matched}="yes"

# Epson GT-X900 | Epson Perfection V700 Photo | Epson Perfection V750 Photo
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-X900", ENV{libsane_matched}="yes"

# Epson Perfection 636S | Epson Perfection 1200S | Epson Perfection 1200S
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection1200", ENV{libsane_matched}="yes"

# Epson Perfection 1640SU | Epson Perfection 1640SU PHOTO
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection1640", ENV{libsane_matched}="yes"

# Epson Perfection 636 | Epson Perfection 636S
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection636", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 4p
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1130A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet IIc
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1750A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet IIp
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1790A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet IIcx
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2500A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 4c
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2520A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 5p
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C5110A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 6200C
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C6270A", ENV{libsane_matched}="yes"

# Hewlett-Packard ScanJet 6300C
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"


LABEL="libsane_rules_end"

So, checking list of supported devices at /lib/udev/hwdb.d/20-sane.hwdb. And there I find (neither in alphabetical nor numerical order :( ) the following:

Code: [Select]
# Epson Perfection 1640 | Epson GT-8700 | Epson GT-8700F
# Epson Perfection 1640SU | Epson Perfection 1640SU PHOTO
usb:v04B8p010A*
 libsane_matched=yes

 So, that's my scanner. Still confused about this one.

Do you suppose if we rename 60-libsane1.rules back to 60-libsane.rules, that it might fix the problem?

Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: ReinerS on 2021/08/27, 20:55:36
@dibl:
Unfortunately renaming libsane1.rules back doesn't help.
But I will have a closely look at 20-sane.hwdb.
Maybe the problem can be solved within there.

regards

Reiner
Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: rolo48 on 2021/09/17, 07:44:02
Ist jetzt zwar ein Tip für Bullseye, aber probier doch mal:
Code: [Select]
apt install avahi-daemon
Title: Re: FIXED -- Skanlite "Operation not supported", similar with xsane
Post by: dibl on 2021/09/17, 21:17:22
Hi rolo48

avahi-daemon is installed here. The "epkowa" scanner still works, and the "epson2" is still broken.