Solution for using scanners under Natty
This guide is to help anyone who has found that their scanner won't work under Natty (11.04) OR Oneiric (11.10) - yes, that's right, after a clean install it is *still* broken.
You might have installed sane and had it detected using "sudo sane-find-scanner" only to then be told no device was detected using "scanimage -L".
After seemingly endless searching and multiple attempts to get it working I finally found a solution. This is not my mine but it worked for my Artec eplus 48u USB scanner. The link to the original solution is here:
(huge thanks to Ashley Hooper!!!)
It turns out the solution is to replace two libsane packages with alternatives from debian repositories and to lock them so they don't get replaced. It has nothing to do with permissions.
Download the following:
I'd suggest removing everything associated with scanning first:
sudo apt-get purge sane sane-utils xsane xsane-common
Then install the two packages you downloaded (assuming they are in a directory with no other deb packages you can use this command
sudo dpkg -i *.deb
Then as Ashely suggests, lock them so they are not upgraded to the newer (broken) Natty versions:
gksudo gedit /etc/apt/preferences.d/libsane
Paste these lines, then save and exit:
Pin: version 1.0.21-9
Repeat the process for libsane-extras, making sure to change the name libsane for libsane-extras.
Confirm it works for both:
sudo apt-cache policy libsane
You'll get something like this:
Package pin: 1.0.21-9
500 http://nz.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
*** 1.0.21-9 900
Then install the software purged above:
sudo apt-get install sane sane-utils xsane xsane-common
After this, plug in your USB scanner and test the commands from the top:
If they work then fire up Xsane and select the scanner (in the list it presented me, both the scanner and my webcam were identified).
In 11.10, I had to do a couple more steps.
I copied the file Artec.usb to a new folder:
sudo cp /path-to-file/Artec.usb /usr/share/sane/
Then I needed to make sure it was readable by everyone:
sudo chmod o+r /usr/share/sane/Artec.usb
ls -l on /usr/share/sane/ should give something like
-rw-r--r-- 1 root root 8192 2011-11-11 13:31 Artec48.usb
Then finally it was working for me in both simple-scan and xsane.
Please, if you have any useful hints or suggestions add them here.
Last edited by slumbergod; November 11th, 2011 at 04:01 AM.
Reason: (updating for 11.10)
Tags for this Thread