List of printers supported by foo2zjs printer driver:
Copy-paste following Terminal commands one by one into the Terminal:
sudo apt-get update sudo apt-get remove hplip cups-filters cups hplip-data system-config-printer-udev sudo apt-get install build-essential tix groff dc axel cups sudo apt-get install cups-filters unp system-config-printer-gnome sudo rm -rf /usr/share/hplip cd /tmp rm foo* axel http://foo2zjs.rkkda.com/foo2zjs.tar.gz unp foo2zjs.tar.gz cd foo2zjs/ make ./getweb 1020 # Get HP LaserJet 1020 firmware file sudo make install sudo make install-hotplug # Unplug and re-plug the USB printer into the PC # add new HP Laserjet 1020 printer via system-config-printer tool # and choose to use foo2zjs foomatic printer driver : system-config-printer # check /var/log/syslog for any errors related to foo2zjs driver: tail /var/log/syslog
Then power cycle both your PC and your HP printer Then retest printing using the newly installed foo2zjs driver This procedure should solve the hplip driver error “Device Communication Error, code 5012” Source: https://answers.launchpad.net/hplip/+question/249391
Similar instructions for installing printer drivers for the HP Laserjet P1005 can be found here:
https://answers.launchpad.net/ubuntu/+source/hplip/+question/269457
Advertisements
Completely rewrote driver installation procedure above due to major problems with hplip drivers. Suggest using foo2zjs driver instead of hplip drivers in Ubuntu 14.04 LTS 64-bit due to recurring error “Device Communication Error, code 5012”
mark , love u man , u gave life back to my hp 1020 plus , i was struggling with it , to make it run i tried different distros from ubuntu , mint deepin and many more , but nothin seemed to work , was about to switch back to windows , n finally i saw ur wordpress ,
was easy to follow n at the end i see my printer back to its work , thanks man ,
Dude, you are the man !!!
It is working perfectly. Thank you.
Just want to say thank you!
My hp 1020 wasn’t working as it should, since ubuntu 13.04 i guess…
worked perfectly Thanks
This was the solution I was looking for after having trouble with my old hp 1020 for a long time. Now it works without any problem on Mint 17.1 and Mint 17.2
Thank you! You solved a problem I’ve had for a long time. Now printing works fine with laserjet 1020 for Ubuntu 14.04.
Thank you for the “How to”. It worked perfectly.
thank you thanku ver much.. it helped again thanku
did not work for me 😦
@Douglas Smith: I suggest asking a question about the issue here: https://answers.launchpad.net/ubuntu/+addquestion
It works for me, also in Mint 17.2. Many thanks
Thank you! This is working on Ubuntu 15.04 with a Laserjet 1018. Thanks!! 🙂
Hi! Thank you so much, it works perfectly in Linux Mint Cinnamon 17.3! I spent weeks until I found your page! Greets from Estonia!
Thanks, it does work over network?
@sorlak: please read this: http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_1020.html The (buggy) hplip driver supports USB I/O, but not network I/O. I assume it is the same for the foo2zjs driver. I am unable to test this myself, unfortunately. The procedure I wrote was tested using someone else’s printer who is now living far away in a different country….
Works great with Laserjet 1018 by replacing ./getweb 1020 with ./getweb 1018. Many thanks
I tried this and it didn’t work with HP Laserjet 1020 on Ubuntu 14.04. Any suggestions? merci!
Thank you!! My HP Laserjet 1020 is now working perfectly in Mint 17.2!
I must have tried every other friggin’ procedure on the Net to get this printer to talk to my new Mint installation, and *none* of them worked. I was seriously just about to toss Mint (or the printer) out the window when I ran across your instructions.
I executed the terminal commands exactly as you posted them, and voila… Print Perfection!
Thanks very much. Have had a hard time with this one. Your fix seems to be exactly the trick.
#10
I remove foo2zjs and re-installed it and still didn’t print.
At the next to last line –
after typing system-config-printer the printer window opens and I see an icon for the hp laserjet. however, terminal then just has a blinking cursor and there is no command prompt. so i opened a separate window and typed the last two commands
# check /var/log/syslog for any errors related to foo2zjs driver:
and
tail /var/log/syslog
the output for tail /var/log/syslog is
Jan 4 21:08:10 raffi-X550EA kernel: [ 272.245983] usblp0: removed
Jan 4 21:08:10 raffi-X550EA kernel: [ 272.258157] usblp 5-2:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Jan 4 21:08:13 raffi-X550EA /etc/hotplug/usb/hplj1020: foo2zjs: loading HP LaserJet 1020 firmware /usr/share/foo2zjs/firmware/sihp1020.dl to /dev/usb/lp0 …
Jan 4 21:08:13 raffi-X550EA /etc/hotplug/usb/hplj1020: foo2zjs: … download successful.
Jan 4 21:08:15 raffi-X550EA kernel: [ 277.266250] usblp0: removed
Jan 4 21:13:17 raffi-X550EA dbus[728]: [system] Activating service name=’org.freedesktop.hostname1′ (using servicehelper)
Jan 4 21:13:17 raffi-X550EA kernel: [ 579.419768] systemd-hostnamed[3178]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
Jan 4 21:13:17 raffi-X550EA dbus[728]: [system] Successfully activated service ‘org.freedesktop.hostname1′
Jan 4 21:13:37 raffi-X550EA dbus[728]: [system] Activating service name=’org.opensuse.CupsPkHelper.Mechanism’ (using servicehelper)
Jan 4 21:13:37 raffi-X550EA dbus[728]: [system] Successfully activated service ‘org.opensuse.CupsPkHelper.Mechanism’
and the output for lsb_release -a; uname -a; apt-cache policy hplip is
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Linux raffi-X550EA 3.16.0-50-generic #66~14.04.1-Ubuntu SMP Thu Sep 10 17:05:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
hplip:
Installed: (none)
Candidate: 3.14.3-0ubuntu3.4
Version table:
3.14.3-0ubuntu3.4 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
3.14.3-0ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
The printer properties list the device URI as usb://Unknown/Printer
and when i do a printer job it lists it as Processing – Sending data to printer.
any way you can help???
Try connecting the printer to different USB ports on your PC and also try using a different USB cable. I suspect that there may be a hardware problem instead of a software issue…. Hope it helps…
Last 2 steps were not working, but seemed not to be necessary. Thanks a lot – it works again!! Done under MINT Mate 17.3
Thank you, thank you, thank you! That printer was giving me so much grief – and now it turns out that it wasn’t the printer at all!
Thank you so much! It works for my HP LaserJet 1020 (Kubuntu 14.04 LTS 64-bit), but why Two-sided (duplex) printing is not available?
will this work for HP2050dn as well? Getting the same communication error.
@Dee: Maybe. Maybe not. I don’t have an HP LaserJet P2050dn, so I cannot test it myself. So I suggest testing foo2zjs. If it does not work, revert back to hplip…..
thank you soo much 🙂
thank you soo much 🙂
(also worked for crunch bang )
This procedure worked great for installing an HP Laserjet 1020 on Linux Mint 17.3 “Mate” 32-bit. You are a genius! Thanks for publishing this.
Dear sir
hp Laserjet1020 Plus printer couldn’t be install to ubuntu operating system.if you dont mind solve my printer as soon as possible ….
thankyou sir
@chandu: I suggest asking a question about the issue here: https://answers.launchpad.net/ubuntu/+addquestion
It worked for me on all the earlier versions of Ubuntu.
I have now installed Ubuntu 16.04 on a freshly formatted hard disk and the HP Printer HP 1020 is not working. Any suggestions or is any further info required.
Thank you
Since the Foomatic Driver does not work for me for the HP 1020 and the HP P1005 Printers – How to uninstal the Foomatic Driver Completely.
Hell ! It’s works ! Thank you so much.
Still does not work for me in Ubuntu 16.10 for the HP 1020 and HPP1005 printers. Any help would be welcome.
Since I use a Dual Boot with Win XP, I boot into Win XP first and print test pages on both printers and then exit from Win XP and boot into Ubuntu 16.10. Then the printers work until they are completely powered down. It works even when the computer is powered down as long as the printers are not powered down. Is this some network problem ?. I do not know, any help will be appreciated.
Thank you.
I installed ubuntu 16.04 one week ago. When I tried to install my hp-1020 with foo2zjs from: http://foo2zjs.rkkda.com/foo2zjs.tar.gz make fails miserably. The I followed the instruction of this page, step by step and my printer is working know! Before I uninstalled foo2zjs and hplip completely, because ubuntu 16.04 installed by default
Thank you so much, working perfectly in Lubuntu 16.04
Thank you very much for this. It helped me with my troubles in Mint Mate 18.2.
Very great the above instruction solved the problem of installing drivers for HP1020 plus laser Printer also
Thank You very much for your instructions
It is successfully working