I researched my own answer and whilst I do not fully understand "why" the following resolved my problems,
At the time of writing this, these 3 packages need to be downloaded and installed. 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 The first two packages can be found in the Debian experimental libs at this link https://packages.debian.org/experimental/libs/ The last package I found in this link https://packages.debian.org/ sid/libjpeg62-turbo In some cases you may need to navigate to an ftp mirror site to actually download. Once downloaded, simply install each package as root i.e. sudo dpkg -i *package* I have tested with simple-scan, xsane, and scangearmp and all works fine. On 9 October 2016 at 13:00, <ubuntu-uk-requ...@lists.ubuntu.com> wrote: > Send ubuntu-uk mailing list submissions to > ubuntu-uk@lists.ubuntu.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > or, via email, send a message with subject or body 'help' to > ubuntu-uk-requ...@lists.ubuntu.com > > You can reach the person managing the list at > ubuntu-uk-ow...@lists.ubuntu.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ubuntu-uk digest..." > > > Today's Topics: > > 1. scanning problems 16.04 (David Goldsbrough) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 8 Oct 2016 17:08:40 +0100 > From: David Goldsbrough > > Brief description of problem:- > > Unable to use ?simple scan? or ?xsane? to scan documents from Ubuntu 16.04 > LTS > > Hardware:- > > 3 devices:- > > A. Lenovo T60 laptop running 14.04 LTS 32 bit fully updated > > B Lenovo T410 laptop running 16.04 LTS 64 bit brand new install > > C Mesh desktop running 16.04 LTS 32 bit ? upgraded from 14.04 LTS > > Multi-function inkjet Canon MG5300 connected wirelsessly through router. > > The problem only occurs on the last 2 machines. Scanning works perfectly > well on the 1st machine. > > Running simple-scan from command line with debug option on device B > produces this:- > > simple-scan -d > > > (simple-scan:4539): Gtk-WARNING **: Theme parsing error: > gtk-widgets.css:65:17: Theming engine 'unico' not found > > [+0.00s] DEBUG: simple-scan.vala:674: Starting Simple Scan 3.20.0, PID=4539 > > [+0.00s] DEBUG: Connecting to session manager > > [+0.06s] DEBUG: ui.vala:2032: Loading state from > /home/dave/.cache/simple-scan/state > > [+0.06s] DEBUG: ui.vala:1995: Restoring window to 859x400 pixels > > [+0.06s] DEBUG: autosave-manager.vala:64: Loading autosave information > > [+0.06s] DEBUG: autosave-manager.vala:259: Waiting to autosave... > > [+0.06s] CRITICAL: gtk_event_controller_reset: assertion > 'GTK_IS_EVENT_CONTROLLER (controller)' failed > > [+0.11s] DEBUG: scanner.vala:1447: sane_init () -> SANE_STATUS_GOOD > > [+0.11s] DEBUG: scanner.vala:1453: SANE version 1.0.25 > > [+0.11s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices > > [+0.11s] DEBUG: scanner.vala:803: Processing request > > [+0.16s] DEBUG: autosave-manager.vala:281: Autosaving book information > > [+0.23s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+4.08s] DEBUG: simple-scan.vala:404: Requesting scan at 300 dpi from > device '(null)' > > [+4.08s] DEBUG: scanner.vala:1560: Scanner.scan ("(null)", dpi=300, > scan_mode=ScanMode.COLOR, depth=8, type=ScanType.SINGLE, paper_width=0, > paper_height=0, brightness=0, contrast=0) > > [+6.16s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD > > [+6.16s] DEBUG: scanner.vala:350: Device: name="pixma:MG5300_192.168.0.2" > vendor="CANON" model="Canon PIXMA MG5300" type="multi-function peripheral" > > [+6.16s] DEBUG: scanner.vala:803: Processing request > > [+7.08s] DEBUG: scanner.vala:864: sane_open ("pixma:MG5300_192.168.0.2") -> > SANE_STATUS_INVAL > > [+7.08s] WARNING: scanner.vala:868: Unable to get open device: Invalid > argument > > [+7.44s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+11.54s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+16.06s] DEBUG: autosave-manager.vala:195: Deleting autosave records > > [+16.06s] DEBUG: scanner.vala:1587: Stopping scan thread > > [+16.06s] DEBUG: scanner.vala:803: Processing request > > [+16.06s] DEBUG: scanner.vala:1598: sane_exit () > > > This is similar output but from device C:- > > simple-scan -d #from MESH desktop > > [+0.02s] DEBUG: simple-scan.vala:674: Starting Simple Scan 3.20.0, PID=3233 > > [+0.02s] DEBUG: Connecting to session manager > > [+0.07s] DEBUG: ui.vala:2032: Loading state from > /home/dave/.cache/simple-scan/state > > [+0.09s] DEBUG: ui.vala:1995: Restoring window to 600x400 pixels > > [+0.09s] DEBUG: ui.vala:1999: Restoring window to maximized > > [+0.09s] DEBUG: autosave-manager.vala:64: Loading autosave information > > [+0.09s] DEBUG: autosave-manager.vala:259: Waiting to autosave... > > [+0.09s] CRITICAL: gtk_event_controller_reset: assertion > 'GTK_IS_EVENT_CONTROLLER (controller)' failed > > [+0.32s] DEBUG: autosave-manager.vala:281: Autosaving book information > > [+0.32s] DEBUG: scanner.vala:1447: sane_init () -> SANE_STATUS_GOOD > > [+0.32s] DEBUG: scanner.vala:1453: SANE version 1.0.25 > > [+0.32s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices > > [+0.32s] DEBUG: scanner.vala:803: Processing request > > [+0.32s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+0.46s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+5.94s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD > > [+5.94s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices > > [+5.94s] DEBUG: scanner.vala:803: Processing request > > [+10.01s] DEBUG: simple-scan.vala:404: Requesting scan at 300 dpi from > device '(null)' > > [+10.01s] DEBUG: scanner.vala:1560: Scanner.scan ("(null)", dpi=300, > scan_mode=ScanMode.COLOR, depth=8, type=ScanType.SINGLE, paper_width=0, > paper_height=0, brightness=0, contrast=0) > > [+10.91s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD > > [+10.91s] DEBUG: scanner.vala:803: Processing request > > [+10.91s] WARNING: scanner.vala:838: No scan device available > > [+11.01s] DEBUG: ui.vala:2124: Saving state to > /home/dave/.cache/simple-scan/state > > [+20.32s] DEBUG: autosave-manager.vala:195: Deleting autosave records > > [+20.32s] DEBUG: scanner.vala:1587: Stopping scan thread > > [+20.32s] DEBUG: scanner.vala:803: Processing request > > [+20.33s] DEBUG: scanner.vala:1598: sane_exit () > > > And this output is from device A which shows it working correctly. > > simple-scan -d > > [+0.00s] DEBUG: simple-scan.vala:596: Starting Simple Scan 3.12.3, PID=2459 > > [+0.00s] DEBUG: Connecting to session manager > > [+0.08s] DEBUG: ui.vala:1647: Loading state from > /home/dave/.cache/simple-scan/state > > [+0.08s] DEBUG: ui.vala:1628: Restoring window to 600x400 pixels > > [+0.08s] DEBUG: autosave-manager.vala:64: Loading autosave information > > [+0.08s] DEBUG: autosave-manager.vala:258: Waiting to autosave... > > [+0.08s] WARNING: autosave-manager.vala:76: Could not load autosave > infomation; not restoring any autosaves > > [+0.15s] DEBUG: scanner.vala:1446: sane_init () -> SANE_STATUS_GOOD > > [+0.15s] DEBUG: scanner.vala:1452: SANE version 1.0.23 > > [+0.15s] DEBUG: scanner.vala:1513: Requesting redetection of scan devices > > [+0.15s] DEBUG: scanner.vala:802: Processing request > > [+0.19s] DEBUG: autosave-manager.vala:280: Autosaving book information > > [+0.28s] DEBUG: ui.vala:1738: Saving state to > /home/dave/.cache/simple-scan/state > > [+3.51s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD > > [+3.51s] DEBUG: scanner.vala:350: Device: name="pixma:MG5300_192.168.0.2" > vendor="CANON" model="Canon PIXMA MG5300" type="multi-function peripheral" > > [+3.74s] DEBUG: ui.vala:1738: Saving state to > /home/dave/.cache/simple-scan/state > > [+7.33s] DEBUG: autosave-manager.vala:194: Deleting autosave records > > [+7.33s] DEBUG: scanner.vala:1586: Stopping scan thread > > [+7.33s] DEBUG: scanner.vala:802: Processing request > > [+7.34s] DEBUG: scanner.vala:1597: sane_exit () > > > Also from device A is this xsane output:- > > xsane > > Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve > property `GtkSpinButton::shadow-type' of type `GtkShadowType' from rc file > value "((GString*) 0x8953470)" of type `Gstring' > > and xsane works fine. > > > >From both devices B and C an Error window is displayed saying:- > > > Failed to open device `pixma:MGS5300_192.168.0.2`:Invalid argument. > > > > If using the application scangearmp (I understand a Gimp plugin) on machine > B then Canon MG5300 series 88:87:17:DA:6C:3D is recognised and displayed in > the banner window. > > Desirable Solution:- > > Device B is fixed so that simple-scan and xsane works correctly. > > An extra bonus would be for device C to be similarly fixed. > > The long term strategy is to retire Device A to be replaced by Device B. > > I am sure I installed the right 64 bit Canon printer drivers for Device B. > > Could it be something to do with those warning messages > GTK_IS_EVENT_CONTROLLER failed? > > All contributions to a solution would be welcomed. Thanks. >
-- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/