How to set up and use a HP LaserJet 1018 printer on Ubuntu 18.04?

Asked by me@mogenseliasen.com on 2021-01-31

Installation of hplip appeared to be OK - but cupsys cannot be found. How to install that and make the printer work?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2021-02-28
Last reply:
2021-02-28
Manfred Hampl (m-hampl) said : #1

Why do you always create new questions and leave the old ones to the same topic open?

me@mogenseliasen.com (x-ge-u) said : #2

I have done that only once, and I explained why.

Besides, I don't feel I am one iota closer to the solution than I were when I asked first, so I try to focus on what I perceive as THE problem, in the hope that I can get some answers I can use. I still have no idea what I need to do and why it does not work to follow the suggestions that consistently, till now, have lead me into new errors, mostly caused by the fact that I am not a techy and I do not understand the commands used in the terminal. I have no other option than follow the suggestions meticulously, as I can understand them, and when I reach an unexpected error, then I stop, whether or not there were more instructions. I assume the fact of the errors being unexpected tells me that the conditions were not as thought in the advice I got.

me@mogenseliasen.com (x-ge-u) said : #3

But your advice makes sense. I followed it and got almost finished, I think; I got this terminal output and an error that says I should run hp-plugin as normal user to install plug-ins, as the device requires a binary plug-in.

mogens@mogens-ThinkPad-T60:~$ sudo apt purge --autoremove hplip hplip-gui hplip-data
[sudo] password for mogens:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  hplip* hplip-data* hplip-gui* python3-dbus.mainloop.pyqt5* python3-notify2*
0 upgraded, 0 newly installed, 5 to remove and 13 not upgraded.
After this operation, 10,2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 209011 files and directories currently installed.)
Removing hplip-data (3.17.10+repack0-5) ...
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/data/images/other' not empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/base' not empty so not removed
Removing python3-dbus.mainloop.pyqt5 (5.10.1+dfsg-1ubuntu2) ...
Removing python3-notify2 (0.3-3) ...
(Reading database ... 208440 files and directories currently installed.)
Purging configuration files for hplip (3.17.10+repack0-5) ...
Purging configuration files for hplip-gui (3.17.10+repack0-5) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
mogens@mogens-ThinkPad-T60:~$ cd Downloads
mogens@mogens-ThinkPad-T60:~/Downloads$ sh hplip-3.20.11.run
Creating directory hplip-3.20.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.11 Self Extracting Archive...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.20.11)
HPLIP Installer ver. 5.1

Copyright (c) 2001-18 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.

Installer log saved in: hplip-install_Sun-31-Jan-2021_19:15:35.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) :

INTRODUCTION
------------
This installer will install HPLIP version 3.20.11 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 18.04.

Is "Ubuntu 18.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (mogens)'s password:

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

RUNNING HPLIP LIBS REMOVE COMMANDS
----------------------------------
sudo apt-get remove libhpmud0 libsane-hpaio
sudo apt-get remove libhpmud0 libsane-hpaio ( hp_libs_remove step 1)
OK

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
HPLIP-3.20.11 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install*, 'q'= Quit)? :i
Starting uninstallation...
HPLIP uninstallation is completed

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
OK

RUNNING SCANJET DEPENDENCY COMMANDS
-----------------------------------
sudo apt-get install --assume-yes python-pip (Scanjet-depend step 1)
sudo pip2 install --upgrade pip (Scanjet-depend step 2)
sudo apt-get install --assume-yes libleptonica-dev (Scanjet-depend step 3)
sudo apt-get install --assume-yes tesseract-ocr (Scanjet-depend step 4)
sudo apt-get install --assume-yes libtesseract-dev (Scanjet-depend step 5)
sudo -H pip2 install tesserocr (Scanjet-depend step 6)
sudo apt-get install --assume-yes tesseract-ocr-all (Scanjet-depend step 7)
sudo apt-get install --assume-yes libzbar-dev (Scanjet-depend step 8)
sudo apt-get install --assume-yes python-zbar (Scanjet-depend step 9)
sudo -H pip2 install opencv-python (Scanjet-depend step 10)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
sudo -H pip2 install PyPDF2 (Scanjet-depend step 11)
sudo -H pip2 install imutils (Scanjet-depend step 12)
sudo -H pip2 install pypdfocr (Scanjet-depend step 13)
sudo -H pip2 install scikit-image (Scanjet-depend step 14)
sudo -H pip2 install scipy (Scanjet-depend step 15)
OK

PRE-BUILD COMMANDS
------------------
OK

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-qt4 --disable-qt5 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-apparmor_build'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make'
Please wait, this may take several minutes...
Command completed successfully.

Running 'sudo make install'
Please wait, this may take several minutes...
Command completed successfully.

Build complete.

POST-BUILD COMMANDS
-------------------

CLOSE HP_SYSTRAY
----------------
Sending close message to hp-systray (if it is currently running)...
OK

HPLIP UPDATE NOTIFICATION
-------------------------
Do you want to check for HPLIP updates?. (y=yes*, n=no) : y

RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in
when you started this installer, you will need to either restart your PC or
unplug and re-plug in your printer (USB cable only). If you choose to restart,
run this command after restarting: hp-setup (Note: If you are using a parallel
connection, you will have to restart your PC. If you are using network/wireless,
you can ignore and continue).

Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : p
Please unplug and re-plugin your printer now. Press <enter> to continue or 'q' to quit:

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) : u

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

Copyright (c) 2001-18 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.

Searching... (bus=usb, search=(None), desc=0)
Segmentation fault
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.

Manfred Hampl (m-hampl) said : #4

ok, this looks almost correct.

The only thing that should not have happened is the message
Segmentation fault
at the end. I do not know where it comes from, and what consequences it might have.

Let's try installing the plugin:

Use your web browser to visit
https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/

Right click on the file named hplip-3.20.11-plugin.run (almost at the end of the list) and save it to your Downloads directory.
Then open a terminal window and run the commands

cd Downloads
sh hplip-3.20.11-plugin.run

and finally copy/paste the output that we can check again.

me@mogenseliasen.com (x-ge-u) said : #5

mogens@mogens-ThinkPad-T60:~$ cd Downloads
mogens@mogens-ThinkPad-T60:~/Downloads$ sh hplip-3.20.11-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.11 Plugin Self Extracting Archive..............................................................

OK - following you advice:

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

Copyright (c) 2001-18 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.20.11
Installed HPLIP version: 3.20.11
Number of files to install: 64

Done.
mogens@mogens-ThinkPad-T60:~/Downloads$

me@mogenseliasen.com (x-ge-u) said : #6

When trying to get a test page printed, i get the following error:

Filed to install plug-in. Either you have chosen to skip the plug-in installation or entered incorrect password.

I was asked to enter my password first. I did.

Manfred Hampl (m-hampl) said : #7

If you now run
hp-check -t
what output do you receive?

me@mogenseliasen.com (x-ge-u) said : #8

This (below) plus the following error:

HPLIP cannot detect devices in your network. This may be due to existing firewall settings blocking the ports like (5353/udp). When you are in a trusted network environment, you may open the ports for the network services like mdns and slp in the firewall. For detailed steps follow the link http://hplipopensource.com/node/375

Terminal output:

mogens@mogens-ThinkPad-T60:~$ hp-check -t
Saving output in log file: /home/mogens/hp-check.log

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

Copyright (c) 2001-18 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

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

 Kernel: 4.15.0-134-generic #138-Ubuntu SMP Fri Jan 15 10:53:28 UTC 2021 GNU/Linux
 Host: mogens-ThinkPad-T60
 Proc: 4.15.0-134-generic #138-Ubuntu SMP Fri Jan 15 10:53:28 UTC 2021 GNU/Linux
 Distribution: 12 18.04
 Bitness: 32 bit

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

HPLIP-Version: HPLIP 3.20.11
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 18.04 version

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

[hplip]
version=3.20.11

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.11
html=/usr/share/doc/hplip-3.20.11
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.20.11
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.20.11

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

[installation]
date_time = 01.02.2021 15:08:43
version = 3.20.11

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

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

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.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.5 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 - 5.1.0 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.27 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.17 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
 libavahi-dev libavahi-dev REQUIRED - - OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 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.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.17 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.20.11 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.20.11 OK 'hpaio found in /etc/sane.d/dll.conf'

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.19.4 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.2 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

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

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

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

No Scanner found.

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

  Device URI Model
  -------------------------------- ----------------
  hp:/usb/HP_LaserJet_1018?serial= HP LaserJet 1018
  KP0RRPB

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

HP-LaserJet-1018
----------------
Type: Unknown
Device URI: usb://HP/LaserJet%201018?serial=KP0RRPB
PPD: /etc/cups/ppd/HP-LaserJet-1018.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-1018.ppd ppd file
PPD Description:
Printer status: printer HP-LaserJet-1018 is idle. enabled since Сб 23 янв 2021 14:58:12
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

USB None Required - - OK Node:'/dev/bus/usb/001/004' Perm:' root lp rw- rw- rw- rw- r--'

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

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

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

Total Errors: 0
Total Warnings: 1

Done.
mogens@mogens-ThinkPad-T60:~$

Manfred Hampl (m-hampl) said : #9

HPLIP seems to be correctly installed. but there is an access rights problem.

warning: Failed to read /etc/cups/ppd/HP-LaserJet-1018.ppd ppd file

I assume that your usre has not been granted membership in the lp group.

sudo usermod -a -G lp mogens

Then log out and log in again.

me@mogenseliasen.com (x-ge-u) said : #10

Done - things went fine with the terminal. But when I disconnected the printer's USB (as I guess is what you meant with "logging out") and reconnected it, I got the following two errors:

1) Driver plug-in required. HP device plug-in mismatch or some files are corrupted. Click "next" to install required plug-in.

I followed the advice and immediately got this reply:

2) Failed to install plug-in. Either you have chosen to skip the plug-in installation or entered incorrect password.

Manfred Hampl (m-hampl) said : #11

I did not mean disconnecting the printer, but I meant that you should logout or logoff or whatever you call it.
Log out to the status that the system asks to select your username and enter your login password.

me@mogenseliasen.com (x-ge-u) said : #12

Logout from where? I am totally bewildered. What now?

Manfred Hampl (m-hampl) said : #13

If you do not understand the words logoff and logout, then please restart your computer. I hope that you at least understand this expression.

me@mogenseliasen.com (x-ge-u) said : #14

Yup, all done!

Launchpad Janitor (janitor) said : #15

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

me@mogenseliasen.com (x-ge-u) said : #16

Just finish: UI bought a new laptop, loaded it with Ubuntu 20.04.2, ran the terminal commands
sudo apt-get install hplip-gui and
sudo hp--plugin -i
and that was it! Nothing more, other than connecting the printer via USB, was required for it to work!

Thanks to all that helped, especially Manfred Hampl who showed me a lot of patience!

Manfred Hampl (m-hampl) said : #17

If the problem with installing HPLIP and setting up a printer has been solved, then please close all questions related to that matter, see https://answers.launchpad.net/~x-ge-u for a list

me@mogenseliasen.com (x-ge-u) said : #18

I don't know what to do with your link. But I am not done: the printer is on "idle" and I am obviously missing something that has no been installed. Is there a simple way of doing all this?

me@mogenseliasen.com (x-ge-u) said : #19

This is what I get when running a check on the terminal:

lenovo@lenovo-Lenovo-IdeaPad-S340-15API:~$ hp-check -t
Saving output in log file: /home/lenovo/hp-check.log

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

Copyright (c) 2001-18 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: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

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

 Kernel: 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 GNU/Linux
 Host: lenovo-Lenovo-IdeaPad-S340-15API
 Proc: 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 GNU/Linux
 Distribution: ubuntu 20.04
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 20.04 version

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

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
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=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

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

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address =
voice_phone =

[last_used]
device_uri = "hp:/usb/HP_LaserJet_1018?serial=KP0RRPB"
printer_name = HP-LaserJet-1018
working_dir = .

[polling]
device_list =
enable = false
interval = 5

[refresh]
enable = true
rate = 10
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1614183403
notify_upgrade = true
pending_upgrade_time = 0

[installation]
date_time = 02/28/21 16:54:46
version = 3.20.3

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

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

 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
 error: dbus DBus - Message bus system REQUIRED - 1.12.16 MISSING 'DBUS may not be installed or not running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.20.3 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

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

 error: libjpeg libjpeg - JPEG library REQUIRED - - MISSING 'libjpeg needs to be installed'
 error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
 error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed'
 libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
 error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
 sane SANE - Scanning library REQUIRED - - OK -
 error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
 error: libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 MISSING 'libcrypto needs to be installed'
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.5 OK -
 python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
 python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
 error: python3-devel Python devel - Python development files REQUIRED 2.2 3.8.5 MISSING 'python3-devel needs to be installed'
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -

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

 error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -

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

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

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

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

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

No Scanner found.

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

  Device URI Model
  -------------------------------- ----------------
  hp:/usb/HP_LaserJet_1018?serial= HP LaserJet 1018
  KP0RRPB

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

HP-LaserJet-1018
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1018?serial=KP0RRPB
PPD: /etc/cups/ppd/HP-LaserJet-1018.ppd
warning: Failed to read /etc/cups/ppd/HP-LaserJet-1018.ppd ppd file
PPD Description:
Printer status: printer HP-LaserJet-1018 is idle. enabled since Вс 28 фев 2021 15:17:47
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_1018
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1018?serial=KP0RRPB
PPD: /etc/cups/ppd/HP_LaserJet_1018.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_1018.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_1018 is idle. enabled since Вс 28 фев 2021 15:17:47
Required plug-in status: Installed
Communication status: Good

HP_LaserJet_1018_2
------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1018?serial=KP0RRPB
PPD: /etc/cups/ppd/HP_LaserJet_1018_2.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_1018_2.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_1018_2 is idle. enabled since Вс 28 фев 2021 15:17:47
Required plug-in status: Installed
Communication status: Good

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

USB HP-LaserJet-1018 Required - - OK Node:'/dev/bus/usb/001/055' Perm:' root lp rw- rw- rw- rw- r--'

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

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libusb-0.1-4' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 14
Total Warnings: 0

Manfred Hampl (m-hampl) said : #20

If you have installed HPLIP version 3.20.3 from the Ubuntu repositories, then the output of hp-info is misleading and not helpful at all.

"warning: Failed to read /etc/cups/ppd/HP-LaserJet-1018.ppd ppd file"

You should add your user to the "lp" group

Can you help with this problem?

Provide an answer of your own, or ask me@mogenseliasen.com for more information if necessary.

To post a message you must log in.