Quantcast

Canon MF212w Scanner and SANE

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Canon MF212w Scanner and SANE

Scott-2
Hi Olaf,

Olaf writes:
>Hi Scott,
>
>Scott writes:
>
>> Hello,
>>
>> I'm a Linux Mint user and so is my father.  We're trying to set up an 
>> all-in-one printer I bought today and have had good luck setting up on 
>> the printer side, but not the scanner side.  I hoped SANE would do the 
>> trick but the MF210 series for Canon isn't yet verified as working so 
>> SANE isn't picking it up.  Allan directed me to the list, so I'm hoping 
>> someone here can help.
>>
>> I should note that I only have about a month before I have to return the 
>> equipment if I can't get a resolution.
>>
>> Anyone available and interested to help test this out and expand SANE's 
>> reach?
>
>Have you tried sane-backends-1.0.25.  That versions claims that support
>for the MF210 Series was added to the pixma backend.
>
>Seeing that you are using Linux Mint, I *guess* that you get your SANE
>backends via the Ubuntu package archives.  The version in Ubuntu's wily
>(1.0.25+git20150528) appears to be new enough.
># The Changelog mention the addition on 2015-04-03.
>
>Hope this helps,
>-- 
>Olaf Meeuwissen, LPIC-2
>
Unfortunately nothing is that easy.  Mint doesn't download the 1.0.25 backend 
with SANE; in fact it doesn't seem to do anything with respect to backends. I'm afraid
I'm going to have to build the backend from scratch, and I have no experience with this.
I did find a copy of 1.0.25 on http://www.linuxfromscratch.org/blfs/view/svn/pst/sane.html.
That page, https://help.ubuntu.com/community/sane, and others aren't really designed for
Mint and newbies though. Where should I start?
 
Thanks again,

--
Scott W

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canon MF212w Scanner and SANE

Olaf Meeuwissen-4
Hi Scott,

monkity writes:

> Hi Olaf,
>
> Olaf writes:
>
>> [...]
>>Have you tried sane-backends-1.0.25.  That versions claims that support
>>for the MF210 Series was added to the pixma backend.
>>
>>Seeing that you are using Linux Mint, I *guess* that you get your SANE
>>backends via the Ubuntu package archives.  The version in Ubuntu's wily
>>(1.0.25+git20150528) appears to be new enough.
>># The Changelog mention the addition on 2015-04-03.
>
> Unfortunately nothing is that easy.  Mint doesn't download the 1.0.25
> backend with SANE; in fact it doesn't seem to do anything with respect
> to backends.  I'm afraid I'm going to have to build the backend from
> scratch, and I have no experience with this.
> I did find a copy of 1.0.25 on
> http://www.linuxfromscratch.org/blfs/view/svn/pst/sane.html.
> That page, https://help.ubuntu.com/community/sane, and others aren't
> really designed for Mint and newbies though.  Where should I start?

Uh-oh, newbie alert ;-)

First, check that you have the libsane package installed.  From a
terminal, run

  $ dpkg-query -W libsane

If that produces something like

  libsane:amd64    1.0.25-2

things look good.  If, instead you get something like

  dpkg-query: no packages found matching libsane

there is more work to do but I assume for now that libsane is found.
# If not, stop here and get back to me via the mailing list.

In that case, you can probably get away with downloading the Ubuntu
libsane package from

  http://packages.ubuntu.com/wily/libsane

Just make sure to pick the correct architecture.

Once downloaded, run

  $ sudo dpkg -i libsane-1.0.25+git20150528-1ubuntu2_amd64.deb

and you should be good to go.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
Support Free Software               Support the Free Software Foundation
https://my.fsf.org/donate                        https://my.fsf.org/join
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canon MF212w Scanner and SANE

Scott-2
Olaf, thank you for your continued help.  Yes, I am a newbie to this
driver business among many things.


On 12/03/2015 04:52 AM, Olaf Meeuwissen wrote:

> Hi Scott,
>
> monkity writes:
>
>> Hi Olaf,
>>
>> Olaf writes:
>>
>>> [...]
>>> Have you tried sane-backends-1.0.25.  That versions claims that support
>>> for the MF210 Series was added to the pixma backend.
>>>
>>> Seeing that you are using Linux Mint, I *guess* that you get your SANE
>>> backends via the Ubuntu package archives.  The version in Ubuntu's wily
>>> (1.0.25+git20150528) appears to be new enough.
>>> # The Changelog mention the addition on 2015-04-03.
>>
>> Unfortunately nothing is that easy.  Mint doesn't download the 1.0.25
>> backend with SANE; in fact it doesn't seem to do anything with respect
>> to backends.  I'm afraid I'm going to have to build the backend from
>> scratch, and I have no experience with this.
>> I did find a copy of 1.0.25 on
>> http://www.linuxfromscratch.org/blfs/view/svn/pst/sane.html.
>> That page, https://help.ubuntu.com/community/sane, and others aren't
>> really designed for Mint and newbies though.  Where should I start?
>
> Uh-oh, newbie alert ;-)
>
> First, check that you have the libsane package installed.  From a
> terminal, run
>
>    $ dpkg-query -W libsane
>
> If that produces something like
>
>    libsane:amd64    1.0.25-2
>
> things look good.  If, instead you get something like
>
>    dpkg-query: no packages found matching libsane
>
> there is more work to do but I assume for now that libsane is found.
> # If not, stop here and get back to me via the mailing list.
>
> In that case, you can probably get away with downloading the Ubuntu
> libsane package from
>
>    http://packages.ubuntu.com/wily/libsane
>
> Just make sure to pick the correct architecture.
>
> Once downloaded, run
>
>    $ sudo dpkg -i libsane-1.0.25+git20150528-1ubuntu2_amd64.deb
>
> and you should be good to go.
>
> Hope this helps,
>

So I ended up trying to install both i386 and amd64 versions. When I
updated these, I got errors, and had to fix broken packages. After I did
that, my SANE installation didn't work and the query you gave me gave
the following result, even after removing SANE and reinstalling it.

$ dpkg-query -W libsane
libsane:amd64 1.0.23-3ubuntu3.1
libsane:i386 1.0.25+git20150528-1ubuntu2

So I then redid the command on the amd64 deb:

$ sudo dpkg -i libsane_1.0.25+git20150528-1ubuntu2_amd64.deb
[sudo] password for flibberty:
(Reading database ... 194182 files and directories currently installed.)
Preparing to unpack libsane_1.0.25+git20150528-1ubuntu2_amd64.deb ...
Unpacking libsane:amd64 (1.0.25+git20150528-1ubuntu2) over
(1.0.23-3ubuntu3.1) ...
dpkg: dependency problems prevent configuration of libsane:amd64:
libsane:amd64 depends on libsane-common (= 1.0.25+git20150528-1ubuntu2);
however:
Version of libsane-common on system is 1.0.23-3ubuntu3.1.
libsane:amd64 depends on libgphoto2-port12 (>= 2.5.6); however:
Package libgphoto2-port12 is not installed.

dpkg: error processing package libsane:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libsane:amd64

Now my query came out as follows:
$ dpkg-query -W libsane
libsane:amd64 1.0.25+git20150528-1ubuntu2
libsane:i386 1.0.25+git20150528-1ubuntu2

SANE is still not recognizing my Canon.  Do the errors above give you
any new ideas for me to try?

Thanks again,
Scott

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canon MF212w Scanner and SANE

Olaf Meeuwissen-4
Scott writes:

> Olaf, thank you for your continued help.  Yes, I am a newbie to this
> driver business among many things.
>
> On 12/03/2015 04:52 AM, Olaf Meeuwissen wrote:
>> Hi Scott,
>>
>> monkity writes:
>>
>>> Hi Olaf,
>>>
>>> Olaf writes:
>>>
>>>> [...]
>>>> Have you tried sane-backends-1.0.25.  That versions claims that support
>>>> for the MF210 Series was added to the pixma backend.
> [...]
>>
>> Once downloaded, run
>>
>>    $ sudo dpkg -i libsane-1.0.25+git20150528-1ubuntu2_amd64.deb
>>
>> and you should be good to go.
>
> So I ended up trying to install both i386 and amd64 versions. When I
> updated these, I got errors, and had to fix broken packages. After I did
> that, my SANE installation didn't work and the query you gave me gave
> the following result, even after removing SANE and reinstalling it.
Sorry.  I tried to take a shortcut and you ended up with a "mess".
Let's see if we can clean that up.

Please read this mail to the end before you start doing stuff.

> $ dpkg-query -W libsane
> libsane:amd64 1.0.23-3ubuntu3.1
> libsane:i386 1.0.25+git20150528-1ubuntu2

That surprised me a bit so I pulled down the Linux Mint 17.2 64bit image
and fired up a virtual machine to make sure that I knew what is going
on.  Looks like Linux Mint installs a number of packages for both 32 and
64 bit architectures and libsane is one of them.

> So I then redid the command on the amd64 deb:
>
> $ sudo dpkg -i libsane_1.0.25+git20150528-1ubuntu2_amd64.deb
> [...]
> libsane:amd64 depends on libsane-common (= 1.0.25+git20150528-1ubuntu2); however:
> Version of libsane-common on system is 1.0.23-3ubuntu3.1.
> libsane:amd64 depends on libgphoto2-port12 (>= 2.5.6); however:
> Package libgphoto2-port12 is not installed.
>
> dpkg: error processing package libsane:amd64 (--install):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> libsane:amd64
I obviously forgot about the libsane dependencies.  My bad.
I have reproduced your situation in that virtual machine of mine.

> Now my query came out as follows:
> $ dpkg-query -W libsane
> libsane:amd64 1.0.25+git20150528-1ubuntu2
> libsane:i386 1.0.25+git20150528-1ubuntu2

To back out of this, use:

  sudo apt-get install libsane=1.0.23-3ubuntu3.1 libsane:i386=1.0.23-3ubuntu3.1

This will downgrade the currently "installed" versions and get you back
to a clean slate.  You can check with:

  sudo dpkg --audit

Things are okay if that produces no output.

Now on to getting the libsane package from Ubuntu's wily installed.

> SANE is still not recognizing my Canon.  Do the errors above give you
> any new ideas for me to try?

First let's add the Ubuntu repositories to your list of package archives
the way it's supposed to be done.  Copy the attached 00-ubuntu-wily.list
to /etc/apt/sources.list.d/ and update your available package
information, like so

  sudo cp 00-ubuntu-wily.list /etc/apt/sources.list.d
  sudo apt-get update

This should download a couple of files from archive.ubuntu.com.

Next, lest you end up turning your Linux Mint into Ubuntu's wily almost
completely ;-), copy the attached 00-ubuntu-wily.pref to
/etc/apt/preferences.d/

  sudo cp 00-ubuntu-wily.pref /etc/apt/preferences.d

Now we are ready to:

  sudo apt-get install -t wily libsane

I tried this on my virtual machine and all went well.  Hope it will for
you to.

In case you are curious about what's going on, have a look at the
following manual pages (using the man command):

  sources.list
  apt_preferences
  apt-get

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
Support Free Software               Support the Free Software Foundation
https://my.fsf.org/donate                        https://my.fsf.org/join
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]

00-ubuntu-wily.list (48 bytes) Download Attachment
00-ubuntu-wily.pref (52 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canon MF212w Scanner and SANE

Rolf Bensch-2
In reply to this post by Scott-2
Hi,

Beside all installation issues, please don't forget that this scanner
has the status "Untested"
(http://www.sane-project.org/sane-backends.html#S-PIXMA).

This means that this scanner may *NOT* work until some bug fixing will
happen.

I'm sorry, but I cannot supply any support for the Pixma backend until
my Chistmas holidays.

In the meantime you can sniff the USB protocols from a Windows machine.
You can use a pysical or a virtual machine. Usually I'm using Wireshark
with USBPcap (https://wiki.wireshark.org/CaptureSetup/USB) for this job.

Please compress the log files. The mailing list rejects large emails.

Hope this helps so far.

Cheers,
Rolf

Am 04.12.2015 um 02:05 schrieb Scott:

> Olaf, thank you for your continued help.  Yes, I am a newbie to this
> driver business among many things.
>
>
> On 12/03/2015 04:52 AM, Olaf Meeuwissen wrote:
>> Hi Scott,
>>
>> monkity writes:
>>
>>> Hi Olaf,
>>>
>>> Olaf writes:
>>>
>>>> [...]
>>>> Have you tried sane-backends-1.0.25.  That versions claims that
>>>> support
>>>> for the MF210 Series was added to the pixma backend.
>>>>
>>>> Seeing that you are using Linux Mint, I *guess* that you get your SANE
>>>> backends via the Ubuntu package archives.  The version in Ubuntu's
>>>> wily
>>>> (1.0.25+git20150528) appears to be new enough.
>>>> # The Changelog mention the addition on 2015-04-03.
>>>
>>> Unfortunately nothing is that easy.  Mint doesn't download the 1.0.25
>>> backend with SANE; in fact it doesn't seem to do anything with respect
>>> to backends.  I'm afraid I'm going to have to build the backend from
>>> scratch, and I have no experience with this.
>>> I did find a copy of 1.0.25 on
>>> http://www.linuxfromscratch.org/blfs/view/svn/pst/sane.html.
>>> That page, https://help.ubuntu.com/community/sane, and others aren't
>>> really designed for Mint and newbies though.  Where should I start?
>>
>> Uh-oh, newbie alert ;-)
>>
>> First, check that you have the libsane package installed.  From a
>> terminal, run
>>
>>    $ dpkg-query -W libsane
>>
>> If that produces something like
>>
>>    libsane:amd64    1.0.25-2
>>
>> things look good.  If, instead you get something like
>>
>>    dpkg-query: no packages found matching libsane
>>
>> there is more work to do but I assume for now that libsane is found.
>> # If not, stop here and get back to me via the mailing list.
>>
>> In that case, you can probably get away with downloading the Ubuntu
>> libsane package from
>>
>>    http://packages.ubuntu.com/wily/libsane
>>
>> Just make sure to pick the correct architecture.
>>
>> Once downloaded, run
>>
>>    $ sudo dpkg -i libsane-1.0.25+git20150528-1ubuntu2_amd64.deb
>>
>> and you should be good to go.
>>
>> Hope this helps,
>>
>
> So I ended up trying to install both i386 and amd64 versions. When I
> updated these, I got errors, and had to fix broken packages. After I
> did that, my SANE installation didn't work and the query you gave me
> gave the following result, even after removing SANE and reinstalling it.
>
> $ dpkg-query -W libsane
> libsane:amd64 1.0.23-3ubuntu3.1
> libsane:i386 1.0.25+git20150528-1ubuntu2
>
> So I then redid the command on the amd64 deb:
>
> $ sudo dpkg -i libsane_1.0.25+git20150528-1ubuntu2_amd64.deb
> [sudo] password for flibberty:
> (Reading database ... 194182 files and directories currently installed.)
> Preparing to unpack libsane_1.0.25+git20150528-1ubuntu2_amd64.deb ...
> Unpacking libsane:amd64 (1.0.25+git20150528-1ubuntu2) over
> (1.0.23-3ubuntu3.1) ...
> dpkg: dependency problems prevent configuration of libsane:amd64:
> libsane:amd64 depends on libsane-common (=
> 1.0.25+git20150528-1ubuntu2); however:
> Version of libsane-common on system is 1.0.23-3ubuntu3.1.
> libsane:amd64 depends on libgphoto2-port12 (>= 2.5.6); however:
> Package libgphoto2-port12 is not installed.
>
> dpkg: error processing package libsane:amd64 (--install):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> libsane:amd64
>
> Now my query came out as follows:
> $ dpkg-query -W libsane
> libsane:amd64 1.0.25+git20150528-1ubuntu2
> libsane:i386 1.0.25+git20150528-1ubuntu2
>
> SANE is still not recognizing my Canon.  Do the errors above give you
> any new ideas for me to try?
>
> Thanks again,
> Scott
>
>



--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canon MF212w Scanner and SANE

Scott-2
In reply to this post by Olaf Meeuwissen-4
Thanks, Olaf, now the scanner is recognized.  But I am still unable to get it to scan.  I'm getting a new USB cable and will verify it works on Windows before trying what Rolf suggested (which is frankly still outside my skillset).  If I can't get the scanner to actually scan soon I will probably return the all-in-one, which I think would be a shame, but I just don't have the time to fight with this thing much longer.  Maybe another week.

I really appreciate your help getting me to this point though!
Scott

On Fri, Dec 4, 2015 at 7:22 AM, Olaf Meeuwissen <[hidden email]> wrote:
Scott writes:

> Olaf, thank you for your continued help.  Yes, I am a newbie to this
> driver business among many things.
>
> On 12/03/2015 04:52 AM, Olaf Meeuwissen wrote:
>> Hi Scott,
>>
>> monkity writes:
>>
>>> Hi Olaf,
>>>
>>> Olaf writes:
>>>
>>>> [...]
>>>> Have you tried sane-backends-1.0.25.  That versions claims that support
>>>> for the MF210 Series was added to the pixma backend.
> [...]
>>
>> Once downloaded, run
>>
>>    $ sudo dpkg -i libsane-1.0.25+git20150528-1ubuntu2_amd64.deb
>>
>> and you should be good to go.
>
> So I ended up trying to install both i386 and amd64 versions. When I
> updated these, I got errors, and had to fix broken packages. After I did
> that, my SANE installation didn't work and the query you gave me gave
> the following result, even after removing SANE and reinstalling it.

Sorry.  I tried to take a shortcut and you ended up with a "mess".
Let's see if we can clean that up.

Please read this mail to the end before you start doing stuff.

> $ dpkg-query -W libsane
> libsane:amd64 1.0.23-3ubuntu3.1
> libsane:i386 1.0.25+git20150528-1ubuntu2

That surprised me a bit so I pulled down the Linux Mint 17.2 64bit image
and fired up a virtual machine to make sure that I knew what is going
on.  Looks like Linux Mint installs a number of packages for both 32 and
64 bit architectures and libsane is one of them.

> So I then redid the command on the amd64 deb:
>
> $ sudo dpkg -i libsane_1.0.25+git20150528-1ubuntu2_amd64.deb
> [...]
> libsane:amd64 depends on libsane-common (= 1.0.25+git20150528-1ubuntu2); however:
> Version of libsane-common on system is 1.0.23-3ubuntu3.1.
> libsane:amd64 depends on libgphoto2-port12 (>= 2.5.6); however:
> Package libgphoto2-port12 is not installed.
>
> dpkg: error processing package libsane:amd64 (--install):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> libsane:amd64

I obviously forgot about the libsane dependencies.  My bad.
I have reproduced your situation in that virtual machine of mine.

> Now my query came out as follows:
> $ dpkg-query -W libsane
> libsane:amd64 1.0.25+git20150528-1ubuntu2
> libsane:i386 1.0.25+git20150528-1ubuntu2

To back out of this, use:

  sudo apt-get install libsane=1.0.23-3ubuntu3.1 libsane:i386=1.0.23-3ubuntu3.1

This will downgrade the currently "installed" versions and get you back
to a clean slate.  You can check with:

  sudo dpkg --audit

Things are okay if that produces no output.

Now on to getting the libsane package from Ubuntu's wily installed.

> SANE is still not recognizing my Canon.  Do the errors above give you
> any new ideas for me to try?

First let's add the Ubuntu repositories to your list of package archives
the way it's supposed to be done.  Copy the attached 00-ubuntu-wily.list
to /etc/apt/sources.list.d/ and update your available package
information, like so

  sudo cp 00-ubuntu-wily.list /etc/apt/sources.list.d
  sudo apt-get update

This should download a couple of files from archive.ubuntu.com.

Next, lest you end up turning your Linux Mint into Ubuntu's wily almost
completely ;-), copy the attached 00-ubuntu-wily.pref to
/etc/apt/preferences.d/

  sudo cp 00-ubuntu-wily.pref /etc/apt/preferences.d

Now we are ready to:

  sudo apt-get install -t wily libsane

I tried this on my virtual machine and all went well.  Hope it will for
you to.

In case you are curious about what's going on, have a look at the
following manual pages (using the man command):

  sources.list
  apt_preferences
  apt-get

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
Support Free Software               Support the Free Software Foundation
https://my.fsf.org/donate                        https://my.fsf.org/join
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9



--
Scott Wesely
402-429-4226
[hidden email]

--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [hidden email]
Loading...