• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Do you need the WPS PIN to connect your printer? Click here for tips and tricks!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended

I just purchased an HP Laser Jet Pro M12w.

When trying to install I discovered it does not work with Ubuntu!

I use Ubuntu 16.04 and there is no driver available for this model.

Ubuntu will detect the printer, but I cannot install a driver that works!

 

Anyone any ideas on how to make this work or when this driver will come available for Ubuntu?

 

Thanks,

 

Marcel

5 REPLIES 5
HP Recommended

After messing around for a while I got things working....

 

For setting up the Laser Jet Pro M12w you still need a windows or mac with the supplied software. But ones it is set up you can use the printer under Ubuntu 16.04 by selecting the HP Laserjet Pro CP1025nw driver which is part of the HPLib package.

 

This will allow you to print normally!

 

Marcel

HP Recommended

The trick with using cp 1025nw didn't work for me. Maybe I'm doing something wrong. This is what I did:


lubuntu.16.04# sudo apt install hplip                             # version 3.16.3 was installed.

 

 

                  # I donwloaded it, because otherwise I got some error about key unmatch

download http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.16.3-plugin.run
download http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.16.3-plugin.run.asc

 

lubuntu.16.4$ sudo hp-plugin -i -ldebug

  HP Linux Imaging and Printing System (ver. 3.16.3)
  Plugin Download and Install Utility ver. 2.1

  warning: It is not recommended to run 'hp-plugin' in a root mode.

  HP Linux Imaging and Printing System (ver. 3.16.3)
  Plugin Download and Install Utility ver. 2.1

  hp-plugin[4089]: debug: Locking: /var/hp-plugin.lock
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/lj.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/lj.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_escl.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_marvell.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soap.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/scan/plugins/bb_soapht.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/fax/plugins/fax_marvell.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/hbpl1.so library status: 1
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/lj.so library file present.
  hp-plugin[4089]: debug: /usr/share/hplip/prnt/plugins/lj.so library status: 1
  (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


  -----------------------------------------
  | PLUG-IN INSTALLATION FOR HPLIP 3.16.3 |
  -----------------------------------------

  The driver plugin for HPLIP 3.16.3 appears to already be installed.
  Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? y
    Option      Description
    ----------  --------------------------------------------------
    d           Download plug-in from HP (recommended)
    p           Specify a path to the plug-in (advanced)
    q           Quit hp-plugin (skip installation)

  Enter option (d=download*, p=specify path, q=quit) ? p
  Enter the path to the 'hplip-3.16.3-plugin.run' file (q=quit) :

  ---------------
  | COPY PLUGIN |
  ---------------

  Downloading plug-in from: file:///home/user/Pobrane/hplip-3.16.3-plugin.run
  Downloading plug-in: [\                                                                                                                                                                  ] 0%     hp-plugin[4089]: debug: Unable to open file installer/distros.dat for reading.
  hp-plugin[4089]: debug: []
  100%hp-plugin[4089]: debug: File error page score: 0.000000
  100%hp-plugin[4089]: debug: File error page score: 0.000000
  hp-plugin[4089]: debug: Validating /home/user/.hplip/hplip-3.16.3-plugin.run with /home/user/.hplip/hplip-3.16.3-plugin.run.asc signature file
  Receiving digital keys: /usr/bin/gpg --homedir /home/user/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
  hp-plugin[4089]: debug: gpg: zapytanie o klucz A59047B9 w serwerze hkp pgp.mit.edu
  gpg: klucz A59047B9: "HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>" bez zmian
  gpg: Ogółem przetworzonych kluczy: 1
  gpg:              bez zmian: 1

  hp-plugin[4089]: debug: gpg: zapytanie o klucz A59047B9 w serwerze hkp pgp.mit.edu
  gpg: klucz A59047B9: "HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>" bez zmian
  gpg: Ogółem przetworzonych kluczy: 1
  gpg:              bez zmian: 1

  hp-plugin[4089]: debug: Verifying file /home/user/.hplip/hplip-3.16.3-plugin.run : cmd = [/usr/bin/gpg --homedir /home/user/.hplip/.gnupg -no-permission-warning --verify /home/user/.hplip/hplip-3.16.3-plugin.run.asc /home/user/.hplip/hplip-3.16.3-plugin.run]
  hp-plugin[4089]: debug: gpg: UWAGA: niebezpieczne prawa własności bądź katalog domowy `/home/user/.hplip/.gnupg'
  gpg: Podpisano w śro, 16 mar 2016, 11:42:51 CET kluczem DSA o identyfikatorze A59047B9
  gpg: Poprawny podpis złożony przez ,,HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>''
  gpg: OSTRZEŻENIE: Ten klucz nie jest poświadczony zaufanym podpisem!
  gpg:          Nie ma pewności co do tożsamości osoby która złożyła podpis.
  Odcisk klucza głównego: 4ABA 2F66 DBD5 A958 9491  0E06 73D7 70CD A590 47B9

  hp-plugin[4089]: debug: /usr/bin/gpg status: 0  output:gpg: UWAGA: niebezpieczne prawa własności bądź katalog domowy `/home/user/.hplip/.gnupg'
  gpg: Podpisano w śro, 16 mar 2016, 11:42:51 CET kluczem DSA o identyfikatorze A59047B9
  gpg: Poprawny podpis złożony przez ,,HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>''
  gpg: OSTRZEŻENIE: Ten klucz nie jest poświadczony zaufanym podpisem!
  gpg:          Nie ma pewności co do tożsamości osoby która złożyła podpis.
  Odcisk klucza głównego: 4ABA 2F66 DBD5 A958 9491  0E06 73D7 70CD A590 47B9



  ----------------------
  | INSTALLING PLUG-IN |
  ----------------------

  Creating directory plugin_tmp
  Verifying archive integrity... All good.
  Uncompressing HPLIP 3.16.3 Plugin Self Extracting Archive................................................

  HP Linux Imaging and Printing System (ver. 3.16.3)
  Plugin Installer ver. 3.0

  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.

  Plug-in version: 3.16.3
  Installed HPLIP version: 3.16.3
  Number of files to install: 42


  Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

  Done.
  hp-plugin[4089]: debug: Removing ./plugin_tmp cmd = rm -rf ./plugin_tmp

  Done.
  hp-plugin[4089]: debug: Unlocking: /var/hp-plugin.lock

 

lubuntu.16.04$  lsusb
  Bus 001 Device 013: ID 03f0:952a Hewlett-Packard

  .....

  .....

 

 

lubuntu.16.04$ hp-setup -i -a -g 03f0:952a
  HP Linux Imaging and Printing System (ver. 3.16.3)
  Printer/Fax Setup Utility ver. 9.0

  hp-setup[5285]: debug: param=03f0:952a
  hp-setup[5285]: debug: selected_device_name=None

  --------------------------------
  | SELECT CONNECTION (I/O) TYPE |
  --------------------------------

    Num       Connection  Description
              Type
    --------  ----------  ----------------------------------------------------------
    0*        usb         Universal Serial Bus (USB)
    1         net         Network/Ethernet/Wireless (direct connection or JetDirect)
    2         par         Parallel Port (LPT:)

  Enter number 0...2 for connection type (q=quit, enter=usb*) ?

  Using connection type: usb

  hp-setup[5285]: debug:
  DEVICE CHOOSER setup_fax=True, setup_print=True
  hp-setup[5285]: debug: getDeviceUri(None, None, ('hp',), None, , True)
  hp-setup[5285]: debug: Mode=0
  error: No device selected/specified or that supports this functionality.

 

Because of no luck I sent to system settings -> printers.

added a printer. m12w was discovered and M201-M202 was suggested. Fitst time I went this way but no luck, so I deleted the printer and added it again, this time I've chosen LaserJet cp 1025nw

 

Printing test page fails with:

    D [30/May/2017:23:39:50 +0200] [Job 26] envp[28]=\"FINAL_CONTENT_TYPE=application/vnd.cups-raster\"
    D [30/May/2017:23:39:50 +0200] [Job 26] envp[29]=\"AUTH_INFO_REQUIRED=none\"
    D [30/May/2017:23:39:50 +0200] [Job 26] PID 14391 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
    D [30/May/2017:23:39:50 +0200] [Job 26] Start rendering...
    D [30/May/2017:23:39:50 +0200] [Job 26] Set job-printer-state-message to "Start rendering...", current level=INFO
    D [30/May/2017:23:39:50 +0200] [Job 26] Processing page 1...
    D [30/May/2017:23:39:50 +0200] [Job 26] Set job-printer-state-message to "Processing page 1...", current level=INFO
    D [30/May/2017:23:39:50 +0200] [Job 26] Read 91 bytes of print data...
    D [30/May/2017:23:39:50 +0200] [Job 26] Wrote 91 bytes of print data...
    D [30/May/2017:23:39:50 +0200] [Job 26] Error: This module is designed to work with HP Printers only
    D [30/May/2017:23:39:50 +0200] [Job 26] STATE: +hplip.plugin-error
    D [30/May/2017:23:39:50 +0200] [Job 26] prnt/hpcups/HPCupsFilter.cpp 486: m_Job initialization failed with error = 48
    D [30/May/2017:23:39:50 +0200] [Job 26] Read 16 bytes of print data...
    D [30/May/2017:23:39:50 +0200] [Job 26] Wrote 16 bytes of print data...
    D [30/May/2017:23:39:50 +0200] [Job 26] Sent 107 bytes...
    D [30/May/2017:23:39:50 +0200] [Job 26] PID 14393 (/usr/lib/cups/filter/hpcups) stopped with status 1.
    D [30/May/2017:23:39:50 +0200] [Job 26] Hint: Try setting the LogLevel to "debug" to find out more.
    D [30/May/2017:23:39:50 +0200] [Job 26] Processing page 2...
    D [30/May/2017:23:39:50 +0200] [Job 26] Rendering completed
    D [30/May/2017:23:39:50 +0200] [Job 26] PID 14392 (/usr/lib/cups/filter/gstoraster) exited with no errors.
    D [30/May/2017:23:39:50 +0200] [Job 26] Waiting for read thread to exit...
    D [30/May/2017:23:39:50 +0200] [Job 26] Read thread still active, aborting the pending read...
    D [30/May/2017:23:39:50 +0200] [Job 26] PID 14394 (/usr/lib/cups/backend/usb) exited with no errors.
    D [30/May/2017:23:39:50 +0200] [Job 26] End of messages
    D [30/May/2017:23:39:50 +0200] [Job 26] printer-state=3(idle)
    D [30/May/2017:23:39:50 +0200] [Job 26] printer-state-message="Rendering completed"
    D [30/May/2017:23:39:50 +0200] [Job 26] printer-state-reasons=hplip.plugin-error

 

 

 

I was also trying to play with hplip 3.17.4 (from Youp page), but no luck.

 

Below is the /var/log/messages after 3.17.4 has been installed.

 

I plugged in usb cable:

   May 31 10:30:34 myHost kernel: [ 4357.808039] usb 1-7: new high-speed USB device number 17 using ehci-pci
   May 31 10:30:35 myHost kernel: [ 4357.956900] usb 1-7: New USB device found, idVendor=03f0, idProduct=952a
   May 31 10:30:35 myHost kernel: [ 4357.956905] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
   May 31 10:30:35 myHost kernel: [ 4357.956909] usb 1-7: Product: HP LaserJet Pro M12w
   May 31 10:30:35 myHost kernel: [ 4357.956912] usb 1-7: Manufacturer: HP
   May 31 10:30:35 myHost kernel: [ 4357.956914] usb 1-7: SerialNumber: 0000000005Q00JDMPR1a
   May 31 10:30:35 myHost kernel: [ 4357.959157] usblp 1-7:1.0: usblp0: USB Bidirectional printer dev 17 if 0 alt 0 proto 2 vid 0x03F0 pid 0x952A
   May 31 10:30:35 myHost root: loading HP Device 001 017
   May 31 10:30:35 myHost python: io/hpmud/musb.c 2183: [20282] hpmud_make_usb_uri() bus=001 dev=017
   May 31 10:30:35 myHost python: io/hpmud/musb.c 2281: hpmud_make_usb_uri() uri=hp:/usb/HP_LaserJet_Pro_M12w?serial=0000000005Q00JDMPR1a bytes_read=56
   May 31 10:30:35 myHost hp-config_usb_printer: hp-config_usb_printer[20282]: error: This is not a valid device
   May 31 10:30:35 myHost colord-sane: io/hpmud/musb.c 2095: Invalid usb_open: Permission denied
   May 31 10:30:35 myHost colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1

I run hp-setup and tried to autodiscover the device. "no devides found" message appeared:
   May 31 10:31:44 myHost python: io/hpmud/model.c 532: no HP_LaserJet_Pro_M12w attributes found in /usr/share/hplip/data/models/models.dat
   May 31 10:31:44 myHost python: io/hpmud/model.c 543: no HP_LaserJet_Pro_M12w attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat
   May 31 10:31:44 myHost python: io/hpmud/musb.c 2125: ignoring hp:/usb/HP_LaserJet_Pro_M12w?serial=0000000005Q00JDMPR1a support=0
   May 31 10:31:44 myHost hp-setup: hp-setup[20311]: error: No devices found on bus: usb

 

 

 

I'm stuck. Please help.

 

 

HP Recommended

Forget printing via USB, I never got that working either. I do not think that is going to work unless HP releases a driver.

 

Use a windows or mac machine to setup the printer as a wifi print server. Once that has been done, you can print to it using the driver I mentioned. I have been using it in this way for several months now.

 

HP Recommended
HP Recommended

Works perfectly - configured printer wirelessly from my Win 10 laptop. Verified wireless printing. Then configured on Ubuntu 18.04.3 as network printer with the HP driver specified (HP LaserJet Pro CP1025nw). Test page prints fine as does printing other documents. Merci!!!

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.