5

I have just upgraded Kubuntu 15.04 to 15.10 - all very nice. The machine is working well, and I can print to the Canon pixma mx420 with no problems as before, but both Skanlite and xsane return errors. xsane returns:

Failed to open device 'pixma:MX420_192.168.1.5': Invalid argument.

Also:

scanimage -L
device `pixma:MX420_192.168.1.5' is a CANON Canon PIXMA MX420 multi-function peripheral

So the system is finding the scanner at the correct network address, but I don't know how to debug further. Note this all worked well before upgrade on this machine and the scanner has been tested from another laptop on the same network successfully - which is still on Kubuntu 15.04.

Thanks.

Arronical
  • 20,241

5 Answers5

8

It's a bug in a few versions of sane-backends (pkg libsane) which affects versions 0.17.10 - 0.17.18 (the last one actually present in 15.10). Since the bug has been fixed since July 2015 we just need it packaged in a debian/ubuntu repo. Until then there are several possible workarounds:

  • Get a version of libsane, libsane-common and libphoto2-pack10 from vivid and downgrade. Vivid contains 0.17.4 and thus is not affected.
  • Get a version of libsane, libsane-common and libjpeg62-turbo from debian experimental. I found the version 0.17.23 in it and it seems to work for me. But be carefull, its experimental :-).
  • Build the sane-backends libraries by youself. Not a straightway method, you better get the debian packaging patch to get it into proper paths.
  • Use ScanGearMP which apparently works anyway. Is suitable for simple scanning for example through GIMP.
honkir
  • 96
3

I had the similar problem with the Canon Pixma MG5450 (MG5400 series) using Ubuntu 15.10.

Problem:

Using "Simple Scan" to scan a document failed with:

Failed to scan
Unable to connect to scanner

But the device was properly discovered using scanimage -L

$ scanimage -L
$ device `pixma:MG5400_C5BFDC000000' is a CANON Canon PIXMA MG5400 Series multi-function peripheral

Solution:

Download 3 packages from Debian Expirimental - Libs

  • libjpeg62-turbo
    • Version: 1:1.4.80-115-gfb907b2-1
  • libsane-common
    • Version: 1.0.26~git20151121-1
  • libsane
    • Version: 1.0.26~git20151121-1

(My reputation won't allow me to add more then 2 links. Otherwise i would have linked those libraries.)

Install *deb packages

# #Install the downloaded packages as root
# dpkg -i libjpeg62-turbo_1.4.80-115-gfb907b2-1_amd64.deb
# dpkg -i libsane-common_1.0.26~git20151121-1_all.deb
# dpkg -i libsane_1.0.26~git20151121-1_amd64.deb
1

I had the similar problem with the Canon Pixma MG5350 (MG5300 series) using Ubuntu 15.10. Installing the Debian Expirimental - Libs works.

Paul
  • 11
0

I have managed to debug this a little further - but still no solution.

If I do the following:

export SANE_DEBUG_PIXMA=255
scanimage -T

The output from scanimage is as follows:

[sanei_debug] Setting debug level of dll to 0.
[sanei_debug] Setting debug level of pixma to 255.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.18
[pixma] Scanner model MP150(Canon PIXMA MP150) not found, giving up! MX420 series
[pixma] Scanner model MP170(Canon PIXMA MP170) not found, giving up! MX420 series
[pixma] Scanner model MP450(Canon PIXMA MP450) not found, giving up! MX420 series
[pixma] Scanner model MP500(Canon PIXMA MP500) not found, giving up! MX420 series

... Cut lots of scanners

[pixma] Scanner model MX410(Canon PIXMA MX410) not found, giving up! MX420 series
[pixma] Scanner model found: Name MX420(Canon PIXMA MX420) matches MX420 series
[pixma] pixma_collect_devices() found Canon PIXMA MX420 at bjnp://192.168.1.5:8612
[pixma] pixma_find_scanners() found 1 devices
[pixma] Scanner model MP150(Canon PIXMA MP150) not found, giving up! MX420 series
[pixma] Scanner model MP170(Canon PIXMA MP170) not found, giving up! MX420 series
[pixma] Scanner model MP450(Canon PIXMA MP450) not found, giving up! MX420 series
[pixma] Scanner model MP500(Canon PIXMA MP500) not found, giving up! MX420 series

... Cut lots of scanners

[pixma] Scanner model MX360(Canon PIXMA MX360) not found, giving up! MX420 series
[pixma] Scanner model MX410(Canon PIXMA MX410) not found, giving up! MX420 series
[pixma] Scanner model found: Name MX420(Canon PIXMA MX420) matches MX420 series
[pixma] pixma_collect_devices() found Canon PIXMA MX420 at bjnp://192.168.1.5:8612
[pixma] pixma_open(): Canon PIXMA MX420
[pixma] pixma_connect() failed EINVAL
[pixma] pixma_open() failed EINVAL
[pixma] pixma_close(): Canon PIXMA MX420
scanimage: open of device pixma:MX420_192.168.1.5 failed: Invalid argument

I found the EINVAL message interesting.

-1

I had similar issues with Ubuntu 16.04 and Canon MG5350 and thanks to the info in here I answered a similar question at this link - which updates slightly the previous references and packages.

The essential parts are: Download these 3 packages libsane-common_1.0.26~git20151121-1_all.deb libsane_1.0.26~git20151121-1_amd64.deb libjpeg62-turbo_1.5.1-1_amd64.deb. If you need a location for the packages look at the link provided. Then install each package as root, i.e sudo dpkg -i package-name I have tested it with simple-scan, xsane, and scangearmp and all works fine.

DaveG
  • 26
  • 5