Can't scan in Ubuntu 18.10

Asked by Keith Bates on 2018-10-27

Since upgrading to Ubuntu 18.10 from 18.04 last week I am unable to scan. I have used the Ubuntu version, then removed it and downloaded the version from hplip web-site.

I can currently print but not scan. Simple scan says "failed to connect". Xsane has "Failed to open device hpaio:/usb/ HP_LaserJet_Professional_M1212nf....." Error during device I/O

Output of hp-check -t below

Saving output in log file: /home/keith/hp-check.log

HP Linux Imaging and Printing System (ver. 3.18.9)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: 12-18.10 version is not supported. Using 12-18.04 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.18.0-10-generic #11-Ubuntu SMP Thu Oct 11 15:13:55 UTC 2018 GNU/Linux
 Host: Capaldi
 Proc: 4.18.0-10-generic #11-Ubuntu SMP Thu Oct 11 15:13:55 UTC 2018 GNU/Linux
 Distribution: 12 18.10
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.18.9
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 12 distro 18.10 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.18.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.18.9
html=/usr/share/doc/hplip-3.18.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.18.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.18.9

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
latest_available_version = 3.17.10
notify_upgrade = false
last_upgraded_time = 1540540129
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = hpaio:/usb/HP_LaserJet_Professional_M1212nf_MFP?serial=000000000QJ57FJRPR1a
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 27/10/18 15:05:57
version = 3.18.9

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------
| COMPILEDEP |
--------------

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 8.2.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -
 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -

------------------------
| General Dependencies |
------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python-xml Python XML libraries REQUIRED - 2.2.6 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.28 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.15 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.8 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.8 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.6 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.8 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.15 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 sane SANE - Scanning library REQUIRED - - OK -

----------------------
| Scan Configuration |
----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.18.9 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.18.9 OK 'hpaio found in /etc/sane.d/dll.conf'

-------------------------
| External Dependencies |
-------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.25 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.8 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.19.5 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.10 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

---------------------
| Python Extentions |
---------------------

 hpmudext IO-Extension REQUIRED - 3.18.9 OK -
 cupsext CUPS-Extension REQUIRED - 3.18.9 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/usb/HP_LaserJet_Professional_M1212nf_MFP?serial=000000000QJ57FJRPR1a' is a Hewlett-Packard HP_LaserJet_Professional_M1212nf_MFP all-in-one

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------- --------------------------------
  hp:/usb/HP_LaserJet_Professional HP LaserJet Professional M1212nf
  _M1212nf_MFP?serial=000000000QJ5 MFP
  7FJRPR1a

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP-LaserJet-Professional-M1212nf-MFP
------------------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_Professional_M1212nf_MFP?serial=000000000QJ57FJRPR1a
PPD: /etc/cups/ppd/HP-LaserJet-Professional-M1212nf-MFP.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-Professional-M1212nf-MFP.ppd ppd file
PPD Description:
Printer status: printer HP-LaserJet-Professional-M1212nf-MFP is idle. enabled since Sat 27 Oct 2018 14:25:25 AEDT
Required plug-in status: Installed
Communication status: Good

KyoceraFS-C8520MFP(KPDL)
------------------------
Type: Unknown
Device URI: socket://192.168.1.8:9100
PPD: /etc/cups/ppd/KyoceraFS-C8520MFP(KPDL).ppd
warning: Failed to read /etc/cups/ppd/KyoceraFS-C8520MFP(KPDL).ppd ppd file
PPD Description:
Printer status: printer KyoceraFS-C8520MFP(KPDL) is idle. enabled since Sat 27 Oct 2018 14:05:38 AEDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

USB HP-LaserJet-Professional-M1212nf-MFP Required - - OK Node:'/dev/bus/usb/001/008' Perm:' root lp rw- rw- rw- rw- r--'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 0
Total Warnings: 1

Done.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-27
Last reply:
2018-10-27
srinivas (srinivas5) said : #1

 Ubuntu 18.10 support is yet to be added in the hplip driver and hence you are seeing this issue. Please use Ubuntu 18.04 for the scan functionality to work fine. Ubuntu 18.10 support will be added in the hplip driver in the future releases.

Oh. OK Thank you.

Keith

On 27/10/18 7:23 pm, srinivas wrote:
> Your question #675655 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/675655
>
> Status: Open => Answered
>
> srinivas proposed the following answer:
> Ubuntu 18.10 support is yet to be added in the hplip driver and hence
> you are seeing this issue. Please use Ubuntu 18.04 for the scan
> functionality to work fine. Ubuntu 18.10 support will be added in the
> hplip driver in the future releases.
>

srinivas (srinivas5) said : #3

we will update you once the release plan for Ubuntu 18.10 support in hplip has been planned.

Can you help with this problem?

Provide an answer of your own, or ask Keith Bates for more information if necessary.

To post a message you must log in.