I'm new to Linux and installed Ubuntu 15.10 few days ago. I can successfully print on my Canon i-SENSYS MF4890dw, but when trying to scan with Xsane I get the following:

Failed to open device 'pixma:MF4800_10.237.93.145': invalid argument

As I have read some feeds from other similar threads, I've tried on Xterm:

scanimage -T 

which returns:

scanimage: open of device pixma:MF4800_10.237.93.145 failed: Invalid argument

and

uname -r

which returns 4.2.0-25-generic.

share|improve this question
    
I've found a way out: I've given roots privilege to the application with gksudo. So I can now scan, but I wonder whether this is the rights approach. Shall I give roots privileges to all the apps which have to access the network? – eugeniosql Jan 24 '16 at 19:51

There was a bug in the scanning library that affected wireless scanning using some devices. Upgrade libsane to 1.0.26 or newer. If it isn't available in the software centre, install it from this ppa:

sudo add-apt-repository ppa:rolfbensch/sane-git
sudo apt-get update
sudo apt-get dist-upgrade
share|improve this answer

We had similar problems with our Canon scanner. Installing updated versions of xsane and its libraries from the SANE daily ppa got us mostly functional, although the document feeder still does not work.

Another problem we encountered was that the ufw firewall was blocking access to the networked scanner. If you are using ufw and the scanner is networked, try disabling ufw and trying a scan again. If this works, it is pretty easy to allow the scanner through ufw so you don't have to turn it off completely.

share|improve this answer
    
Thank you for you reply. UFW is disabled ("sudo ufw status verbose" returned "inactive"). I have taken onboard the PPA ("sudo add-apt-repository ppa:rolfbensch/sane-git") and performed the update ("sudo apt-get update"). But I still have the same error message from XSane. Also SYMPLE SCAN returns "Unable to connect to scanner" even if my scanner is displyed as unique option if I press on "Change Scanner". ANy other tip? – eugeniosql Jan 22 '16 at 20:08
    
I have another request. Can you tell me how to disable the 3rd parties repositories? It looks like the installation of the above mentioned ppa causes some crashes in the system. There is a window popping up to ask to disable "3rd parties repositories" and run on a terminal "apt-get install -f" – eugeniosql Jan 22 '16 at 20:42
    
Assuming you have Ubuntu 14.04, you can type "Software" into the Dash, and an icon with a world and box will appear called "Software and Updates". If you click on that, you will get a dialog box with taps along the top. Click on the Other Software tab and scroll down to the repos you want to get rid of. Uncheck their boxes and click the Close button. – Organic Marble Jan 22 '16 at 21:41
    
*tabs, not taps – Organic Marble Jan 22 '16 at 21:41
1  
@eugeniosql maybe you forgot to sudo apt-get upgrade after you did sudo apt-get update ? – cipher Apr 18 '17 at 8:32

Sometimes, a bad USB cable can cause this "invalid argument" error. Try swapping out your cable with a known-good one.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.