HP LaserJet 1020 won't print anymore in Ubuntu 14.04 LTS

Asked by anne

Hi,
I'm using Ubuntu 14.04.
With the help of a friend I managed to install my HP-LaserJet-1020 eventually, using the "Installer Walkthrough" on page http://hplipopensource.com/hplip-web/install/install/index.html.
It printed for a while, but not anymore.
hp-toolbox does not show the printer,
lsusb says:
~$ lsusb
Bus 001 Device 006: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 004 Device 002: ID 0471:0329 Philips (or NXP) SPC 900NC PC Camera / ORITE CCD Webcam(PC370R)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0d8c:0001 C-Media Electronics, Inc. Audio Device
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
i. e. USB sees it.

hp-doctor says:

HP Linux Imaging and Printing System (ver. 3.14.6)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright (c) 2001-13 Hewlett-Packard 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.

Checking for Deprecated items....
No Deprecated items are found

Checking for HPLIP updates....
Latest version of HPLIP is already installed.

Checking for Dependencies....
---------------
| SYSTEM INFO |
---------------
Kernel: 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 GNU/Linux
Host: anne-OptiPlex-GX620
Proc: 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 GNU/Linux
Distribution: ubuntu 14.04
Bitness: 32 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.14.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 14.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.14.6
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.14.6
html=/usr/share/doc/hplip-3.14.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
# 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.14.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

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

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1401956790
pending_upgrade_time = 0
latest_available_version = 3.14.6
[installation]
date_time = 20.07.2014 09:21:43
version = 3.14.6
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
--------------------------
| External Dependencies |
--------------------------
policykit Admin-Policy-framework OPTIONAL - 0.105 OK -
gs Ghostscript REQUIRED 7.05 9.10 OK -
network Network-wget OPTIONAL - 1.15 OK -
scanimage Shell-Scanning OPTIONAL 1.0 1.0.23 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
dbus DBus REQUIRED - 1.6.18 OK -
cups CUPS REQUIRED 1.1 1.7.2 OK 'CUPS Scheduler is running'
xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
-------------------------
| General Dependencies |
-------------------------
reportlab Python-PDF-Lib OPTIONAL 2.0 3.0 OK -
libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.10.4 OK -
libjpeg JPEG-Lib REQUIRED - - OK -
libpthread POSIX-Threads-Lib REQUIRED - 2.19 OK -
python-dbus Python-DBUS REQUIRED 0.80.0 1.2.0 OK -
python-devel Python-SDK REQUIRED 2.2 2.7.6 OK -
pyqt4 Python-Qt4 REQUIRED 4.0 4.10.4 OK -
cups-devel CUPS-SDK REQUIRED - 1.7.2 OK -
sane-devel SANE-SDK REQUIRED - 1.0.23 OK -
libusb USB-Lib REQUIRED - 1.0 OK -
sane Scan-Lib REQUIRED - 1.0.23 OK -
cups-image CUPS-Image-Lib REQUIRED - 1.7.2 OK -
libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.7.2 OK -
python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
python-notify Desktop-notifications OPTIONAL - - OK -
------------------------------
| Compile Time Dependencies |
------------------------------
gcc gcc-Compiler REQUIRED - 4.8.2 OK -
libtool Build-tools REQUIRED - 2.4.2 OK -
make GNU-Build-tools REQUIRED 3.0 3.81 OK -
----------------------
| Python Extentions |
----------------------
cupsext CUPS-Extension REQUIRED - 3.14.6 OK -
pcardext PhotoCard-Extension REQUIRED - 3.14.6 OK -
hpmudext IO-Extension REQUIRED - 3.14.6 OK -
-----------------------
| Scan Configuration |
-----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.14.6 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.14.6 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
Hewlett-Packard-HP-LaserJet-1020
--------------------------------
Type: Unknown
Device URI: usb://HP/LaserJet%201020?serial=JL2Y1P9
PPD: /etc/cups/ppd/Hewlett-Packard-HP-LaserJet-1020.ppd
PPD Description: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)
Printer status: printer Hewlett-Packard-HP-LaserJet-1020 is idle. enabled since Fr 20 Jun 2014 20:24:49 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
--------------
| PERMISSION |
--------------
Checking Permissions....
Permissions are correct.

Checking for Configured Queues....
warning: Device Hewlett-Packard-HP-LaserJet-1020 is not HPLIP installed. Device must use the hp: or hpfax: to function in HPLIP.

error: 'Hewlett-Packard-HP-LaserJet-1020' is not configured using HPLIP. Need to remove and re-cofigure using hp-setup.
Do you want to remove and re-configure? (y=yes*, n=no, q=quit) ? ^Cerror: User exit

As I was not sure what to do I stopped here. But later I removed and re-cofigured using hp-setup with the following result:
~$ hp-setup

HP Linux Imaging and Printing System (ver. 3.14.6)
Printer/Fax Setup Utility ver. 9.0

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Solved by:
anne
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Remove the printer from Ubuntu, power off the printer and reboot
Log in to the system and let it settle.
Power on the printer.
If it doesnt set itself up then use http://localhost:631 and configure it.

Revision history for this message
hha4491 (hha4491) said :
#2

Why should Anne use cups, and not hp-setup?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What do you think does the work when you hit print?

Revision history for this message
anne (anne-k) said :
#4

Thank you for your hint!
I'll try it tonight and let you know how it helped.

Revision history for this message
anne (anne-k) said :
#5

1) Remove the printer from Ubuntu, power off the printer and reboot--> There was no printer in Ubuntu, the printer was power off, reboot.
2) Log in to the system and let it settle. Power on the printer.--> I logged in and powered the printer on.
3) If it doesnt set itself up then use http://localhost:631 and configure it.--> Nothing happend itself, I added the printer in http://localhost:631/Administration. The list of available printers was empty, so I choosed the button "add printer". Then I tried first with
HP Laserjet 1020 Foomatic/foo2zjs-z1 (recommended) (en).
Then I tried also the printer HP LaserJet 1020, hpcups 3.14.6, requires proprietary plugin.
Unfortunalety nothing has been printed. I can see both in the menu, the power is on, but no reaction. No test page.

What could I try else?

Revision history for this message
hha4491 (hha4491) said :
#6

Maybe we should concentrate on the question
Why/How does Ubuntu 14.04 forget/lose an installed printer?

Revision history for this message
anne (anne-k) said :
#7

Hi there,

I have the HP Laserjet 1020 and Ubuntu 14.04. Has anyone ever made it ​​to work? I have a lot of problems.
In a test with XUbuntu 12 (?) the printer was immediately recognized, installed and has printed.

Revision history for this message
anne (anne-k) said :
#8

The problem is solved:
The driver in hplip is corrupt. Using „apt-get install hannah-foo2zjs printer-driver-foo2zjs“ works fine.

Revision history for this message
hha4491 (hha4491) said :
#9

I don't understand that this community does not know about Ubuntu 14.04's USB problems that prevent HPLIP (hp-setup) to work properly.

Revision history for this message
skywriter (xxxiter) said :
#10

I have found the workaround: just removed hplip and installed foo2zjs driver.
After that I get the error in /var/log/syslog: "foo2zjs: Missing HP LaserJet 1018 firmware file /lib/firmware/hp/sihp1018.dl".
I killed this error by executing from root: "getweb 1018".
Now printer works OK, including after reboot.

Revision history for this message
hha4491 (hha4491) said :
#11

Hi skywriter,
> Question #251944 on qemu in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/qemu/+question/251944
>
> skywriter posted a new comment:
> I have found the workaround: just removed hplip and installed foo2zjs driver.
> After that I get the error in /var/log/syslog: "foo2zjs: Missing HP LaserJet 1018 firmware file /lib/firmware/hp/sihp1018.dl".
> I killed this error by executing from root: "getweb 1018".
> Now printer works OK, including after reboot.
>
Anne wrote:
I didn't have hplip.
I downloaded foo2zjs.tar.gz, unpacked it, and it seemed to be installed.
No error message so far.
--
Viele Grüße,
Hartmut

Hungerhilfe: http://www.thehungersite.com

Ohne Zensur suchen:
http://suche.amnesty-bergedorf.de
Googeln ohne Google:
https://www.startpage.com/deu

Das heutige Motto:
Der Mensch von morgen lebt heute schon ohne Gehirn. (Wolfgang Neuss)

Revision history for this message
lucianolagassa (lucianolagassa) said :
#12

hola, yo utilise la solución propuesta por hha4491, de ejecutar "hp-setup" como root, y funciona perfectamente mi hp-1020. muchas gracias.

Hello, I use high resolution proposed by hha4491, run "hp-setup" as root, and it works perfectly my hp-1020. thank you very much.

Revision history for this message
hha4491 (hha4491) said :
#13

Normally HP printers work "out-of-the-box", i. e. they are plug-abnd-play. You can see it if you start a *buntu-live-system, switch on the printer, and wait a few seconds. An installation window will appear, and at the end you can use your printer.
If hp-setup won't work for you, you can also try http://hplipopensource.com/hplip-web/install/install/index.html

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#14

Here is an hplip driver installation procedure that should work, even when the openprinting.org website is down:

http://mark911.wordpress.com/2014/10/31/how-to-install-printer-drivers-for-hp-laserjet-1020-in-ubuntu-14-04-lts-without-needing-access-to-openprinting-org-website/

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#15

Anne is right.

In the meantime, I have updated the following procedure:

https://mark911.wordpress.com/2014/10/31/how-to-install-printer-drivers-for-hp-laserjet-1020-in-ubuntu-14-04-lts-without-needing-access-to-openprinting-org-website/

If your printer is one of the supported printers in the following list

http://foo2zjs.rkkda.com/

you should use the foo2zjs printer drivers instead of the hplip drivers, especially if you are using Ubuntu 14.04 LTS.

Replacing the hplip drivers with the foo2zjs drivers will solve the endless amount of “Device Communication Error, code 5012″ hplip driver errors in Ubuntu 14.04 LTS.

So the advice earlier in this thread to install foo2zjs (if your printer can use it) is the only correct advice, in my humble opinion.