Gentlemen,
I am a complete newb after ditching Win 10 for Ubuntu so go easy on me & be clear with your writing points. I joined this site 5 minutes ago specifically to ask this question.
Yes, I've been to the Canon site and downloaded the driver tarballs which I successfully extracted . Now what?
Despite all my best efforts I have no idea how to install the drivers and get the scanner going. I searched all over (including this site), and nobody seems to know a working solution.
Kindly point out in very simple terms how to install and setup the above scanner on the version of Ubuntu given. Imagine I'm totally retarded in your detailed & thorough working "How To" explanation. Much appreciated.
Thanks all,
I very much appreciate all the time and effort spent helping me, a complete stranger.
A lot has changed since I first posted. I did get my device working, although I have no idea how. I worked though all your helpful suggestions and something "clicked".
I moved on to try Mint 20 to give that a whirl. I experienced the same problem there that couldn't be fixed by the methods given. Strange, because I thought Mint is based on Ubuntu?
So, I ditched that in favour of Manjaro KDE where similar issues occurred with my Scanner plus all my Audio is screwed up no matter how I changed the settings according to online help posts. Out of frustration I changed yet again to the Manjaro Gnome variant where everything works fine "out-the-box".
I'm still considering building a system where Debian is alongside Arch and instead of "Distro-Hopping", merely change the settings in Arch or Debian with the tools available to make the unique version tailored to specific need.
Thanks again all. This matter can now be considered closed.
Not long ago, I myself bought a Canon scanner Lide 300. The driver installation for Lide 400 include the same steps. In my first attempt to install the Linux drivers for my Canon scanner, I failed miserably multiple times. But the scanner worked flawlessly with Windows driver. Over the short period of time, trying and failing, I finally found a way to make the scanner work with Linux. This is my quick guide, how to make the scanner work with Linux system(I tested it on Ubuntu 18.04)! Please, just follow the steps. Should one of the steps not work, try to do the troubleshooting suggestions. DO NOT continue with the next step, until the previous one is working.
Step 1 - Scanner recognition
First, all necessary packages have to be installed:
In order to recognize the connected devices via USB, you can use the command
lsusb
. The scanner from Canon can be filtered out by running:The identifier 04a9 is specific for Canon devices. If no output line is shown after execution of previous command, the device is not recognized.
Troubleshooting suggestions:
Check the connection between scanner and computer.
Restart the system, but be sure, that the scanner is properly connected to the computer.
The scanner make some noise adjusting the header during the system start. If that is not the case, try to plug in the scanner in a different USB slot.
If you have a Windows system, try to test the USB connection by installing the scanner driver. Canon don't support Linux, but has a good implemented Windows driver.
Step 2 - Scanner identification
Now, you can run the command
lsusb
in your terminal and should see the output of the lsusb. The yellow framed output line shows the scanner connection. By inserting the bus and device number specific to your system, you can make the request about the permission settings for the particular connection. For example, in my case the bus ID is 001 and device ID is 002. The resulting command line is based on informations about my system is:Remember to use your own connection specifications for the request!!! The output of the command will show you the group, you have to join as a user. In my case, it is the group lp, so I join the saned group(scanner management group) and lp.
Troubleshooting suggestions:
cat /etc/group | grep $USER
. The groups saned and lp should be in the list. If not, try to execute the usermod command again.Step 3 - Software equipment
Although the scanner was found, in my case, the identification of scanner by running
scanimage -L
failed. This has to do with the sane software.The suggestion from markling to use the repository(Install Canon LiDE 300 / 400 on Ubuntu 18.04) worked for me. However, the compilation and installation of the latest sane is in my opinion the cleaner solution.
As preparation, you have to install the prerequisites:
Now, you can enter the folder of your choice and run:
After the installation, you should be able to identify your scanner. The output of
scanimage -L
should look like that. If you ranscanimage -V
, you will get the information about the sane backend version. In my case, by compiling the newest version, the backend status changed from 1.0.27 to 1.0.29.Step 4 - Additional Software(optional)
By the way, the scan utility I like the most is SimpleScan:
I have the same scanner and got it working without the drivers from the Canon website or compiling any software myself.
Ubuntu and other Linux distributions use SANE as a back-end to communicate with scanners. Ubuntu 18.04 has an older version of SANE that does not support the CanoScan LiDE 400 yet, but you can use a repository created by Rolf Bensch to easily install the latest release which does support that scanner:
It should update the existing SANE version. After a quick reboot the Simple Scan program that comes with Ubuntu was able to use the scanner. I installed
gscan2pdf
to create PDF documents from the scanner.This might be a simpler solution, and, this is exactly how I got my LiDE 400 to work with XSane in Ubuntu 18.04 (I forget if I'm using 18.04.2 or what sub release):
Rolf Bensch's PPA webpage for SANE
I configured the PPA as per the instructions there, I launched Synaptic and reloaded the package list. I made only these changes:
First time I connected the LiDE 400 USB cable to the system AFTER the update, XSane launches and I make scans. This all took place just a few hours ago, and is my only effort to get it working - first try!
HTH.
Note: I located some Canon Germany software for Linux, no other country I searched had it, it is called Scan Gear, and this software might be necessary for the scanner buttons to cause any activity inside the OS. I didn't install Scan Gear, I don't use such functions.
Updated link, as the original link has been deleted: https://launchpad.net/~sane-project/+archive/ubuntu/sane-git
rgagit's answer worked best for me with slight changes made.
Step 2
sane-find-scanner always gave me errors on accessing the scanner with something like this
To fix this I wrote a little service that will set the correct permissions on startup. First the files
/etc/systemd/system/set.usb.permissions.service
/usr/bin/set_usb_permission (make sure you apply execute permission to this)
After that do
After that the permissions should work
Step 3
I found it easier to use the precompiled version from https://gitlab.com/sane-project/backends/-/releases I just unzip the contents. Go to the folder and do
After those steps my Lide 400 finally works as expected
I installed Canon own Ubuntu driver from their pages...yes it works flawlessly. No problems at all. It is relatively easy if you follow the guideline given in a Canon manual. I am using Ubuntu 22.04. See:
https://www.usa.canon.com/internet/portal/us/home/support/details/scanners/photo-scanner/canoscan-lide-400?tab=drivers_downloads
You can also add ICC profile, but I do not know how to do such a thing yet. :-)