'make' command failed with status code 2 - what does that mean? what should I do?
PRE-BUILD COMMANDS
------------------
OK
BUILD AND INSTALL
-----------------
Running './configure --with-
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...
error: 'make' command failed with status code 2
Ubuntu Software 18.04.5
Installing hplip-3.16.7.run
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
How are you trying to install HPLIP, and why do you select this old version?
You should either install the Ubuntu-provided package (with the command sudo apt install hplip-gui), or you should download the newest hplip.run package (currently 3.21.2) and install it with the command "sh hplip-3.21.2.run"
None of these variants should show the error as seen by you.
Revision history for this message
![]() |
#2 |
Ich habe Ihren Rat befolgt. nun hängt die Installation an einem anderen Punkt. Ich sende Ihnen das Installationspr
ENTER USER PASSWORD
-------------------
Please enter the sudoer (karl-heinz)'s password:
INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https:/
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) ? n
RUNNING PRE-INSTALL COMMANDS
-------
OK
RUNNING HPLIP LIBS REMOVE COMMANDS
-------
sudo apt-get remove libhpmud0 libsane-hpaio printer-
Was ist nun zu tun?
Revision history for this message
![]() |
#3 |
Erst einmal einen Schritt zurück:
Was ist das Ziel des Ganzen?
Was ist der Output der folgenden Kommandos:
uname -a
lsb_release -crid
sudo apt-get remove libhpmud0 libsane-hpaio printer-
Revision history for this message
![]() |
#4 |
Der Laptop meines Vaters (92-jährig) läuft aus verschiedenen Gründen unter Linux, das damals von meinem Bruder eingerichtet wurde; ich selbst installiere erstmals unter Linux. Da der alte Drucker kaputt gegangen ist, wurde jetzt ein neuer (hp envy 6032) erworben, den ich nun installieren möchte.
Ich habe nun Ihre Kommandos nacheinander eingegeben und sende Ihnen hier den Verlauf:
karl-heinz@KHE:~$ uname-a
uname-a: Befehl nicht gefunden.
karl-heinz@KHE:~$ uname -a
Linux KHE 4.15.0-139-generic #143-Ubuntu SMP Tue Mar 16 01:30:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
karl-heinz@KHE:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
karl-heinz@KHE:~$ sudo apt-get remove libhpmud0 libsane-hpaio printer-
[sudo] Passwort für karl-heinz:
Das hat nicht funktioniert, bitte nochmal probieren.
[sudo] Passwort für karl-heinz:
E: Konnte Sperre /var/lib/
E: Konnte die dpkg Oberflächen-Sperre (/var/lib/
karl-heinz@KHE:~$ sudo apt-get remove libhpmud0 libsane-hpaio printer-
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
libqt5designer5 libqt5help5 python3-
python3-pexpect python3-ptyprocess python3-pyqt5 python3-renderpm
python3-reportlab python3-
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
hplip hplip-gui libhpmud0 libsane-hpaio printer-
printer-
0 aktualisiert, 0 neu installiert, 6 zu entfernen und 3 nicht aktualisiert.
Nach dieser Operation werden 6.875 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n]
Ich hoffe, das hilft für's erste weiter! Vielen Dank schon mal für Ihre geduldige Hilfe.
MfG
Dr. Armin Eisner
Revision history for this message
![]() |
#5 |
Hallo, Herr Hampl,
ich nehme an, dass Sie inzwischen im verdienten Feierabend sind und habe den o.g. Verlauf mal nach Gutdünken fortgesetzt. Jetzt sieht das Ganze so aus:
karl-heinz@KHE:~$ uname-a
uname-a: Befehl nicht gefunden.
karl-heinz@KHE:~$ uname -a
Linux KHE 4.15.0-139-generic #143-Ubuntu SMP Tue Mar 16 01:30:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
karl-heinz@KHE:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
karl-heinz@KHE:~$ sudo apt-get remove libhpmud0 libsane-hpaio printer-
[sudo] Passwort für karl-heinz:
Das hat nicht funktioniert, bitte nochmal probieren.
[sudo] Passwort für karl-heinz:
E: Konnte Sperre /var/lib/
E: Konnte die dpkg Oberflächen-Sperre (/var/lib/
karl-heinz@KHE:~$ sudo apt-get remove libhpmud0 libsane-hpaio printer-
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
libqt5designer5 libqt5help5 python3-
python3-pexpect python3-ptyprocess python3-pyqt5 python3-renderpm
python3-reportlab python3-
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
hplip hplip-gui libhpmud0 libsane-hpaio printer-
printer-
0 aktualisiert, 0 neu installiert, 6 zu entfernen und 3 nicht aktualisiert.
Nach dieser Operation werden 6.875 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] J
(Lese Datenbank ... 225003 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von hplip-gui (3.17.10+repack0-5) ...
Entfernen von printer-
Entfernen von hplip (3.17.10+repack0-5) ...
Entfernen von printer-
Entfernen von libsane-hpaio:amd64 (3.17.10+repack0-5) ...
Entfernen von libhpmud0:amd64 (3.17.10+repack0-5) ...
Trigger für desktop-file-utils (0.23-1ubuntu3.
Trigger für cups (2.2.7-1ubuntu2.8) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3+
Rebuilding /usr/share/
Trigger für libc-bin (2.27-3ubuntu1.4) werden verarbeitet ...
Trigger für man-db (2.8.3-2ubuntu0.1) werden verarbeitet ...
Trigger für gnome-menus (3.13.3-
Trigger für dbus (1.12.2-1ubuntu1.2) werden verarbeitet ...
Trigger für mime-support (3.60ubuntu1) werden verarbeitet ...
karl-heinz@KHE:~$
Je nachdem wünsche ich Ihnen ein schönes Wochenende! HG
Dr. Armin Eisner
Revision history for this message
![]() |
#6 |
Ok, die Antwort ist für mich verständlich.
In der Liste https:/
Noch einmal zurück zum Kommando "sudo apt-get remove libhpmud0 ...". Das ist noch nicht abgeschlossen und erwartet eine Antwort auf die Frage "Möchten Sie fortfahren? [J/n]". Hier am Besten einfach die Enter-Taste drücken, für "ja" (wenn bei einer Frage als Antwortmöglichk
Schließlich empfehle ich noch einmal von vorne zu starten mit den Kommandos
wget https:/
sh ./hplip-3.21.2.run
Dabei am Besten bei Fragen, die nicht ganz klar sind (z.B. betreffend apparmor) am Besten einfach die vorgeschlagene Antwort wählen.
Wenn weitere Fragen oder Probleme auftreten, bitte einfach weiter fragen, am besten den aktuellen Text am Bildschirm über copy/paste mitliefern.
Revision history for this message
![]() |
#7 |
Hallo Herr Hampl,
vielen Dank für Ihre Hilfe, die Installation hat mit den beiden Kommandos geklappt, allerdings wurde ich im Verlauf darauf hingewiesen, dass bestimmte Funktionen des Druckers möglicherweise nicht verfügbar sein könnten.
Immerhin habe ich den Drucker jetzt im Laptop verfügbar und die Testseite ist gedruckt!
Die fehlende Funktion bezieht sich - wie erwartet auf den Scanner.
Wenn ich 'Diagnose HPLIP Driver' laufen lasse, erhalte ich folgende Informationen:
HP Linux Imaging and Printing System (ver. 3.21.2)
Self Diagnse Utility and Healing Utility ver. 1.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.
HP Linux Imaging and Printing System (ver. 3.21.2)
Self Diagnse Utility and Healing Utility ver. 1.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.
Checking for Deprecated items....
No Deprecated items are found
Checking for HPLIP updates....
HP Linux Imaging and Printing System (ver. 3.21.2)
HPLIP upgrade latest version ver. 1.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.
Latest version of HPLIP is already installed.
Checking for Dependencies....
---------------
| SYSTEM INFO |
---------------
Kernel: 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 GNU/Linux
Host: KHE
Proc: 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 GNU/Linux
Distribution: 12 18.04
Bitness: 64 bit
-------
| HPLIP CONFIGURATION |
-------
HPLIP-Version: HPLIP 3.21.2
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 18.04 version
Current contents of '/etc/hp/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.21.2
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
html=/usr/
icon=/usr/
cupsbackend=
cupsfilter=
drv=/usr/
bin=/usr/bin
apparmor=
# 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-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-tag=3.21.2
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-
hpijs-only-build=no
apparmor_build=yes
class-driver=no
Current contents of '/var/lib/
Plugins are not installed. Could not access file: Datei oder Verzeichnis nicht gefunden
Current contents of '~/.hplip/
[installation]
date_time = 27.03.2021 13:03:51
version = 3.21.2
[upgrade]
notify_upgrade = true
last_upgraded_time = 1616842925
pending_
latest_
[settings]
systray_visible = 0
systray_messages = 0
[last_used]
device_uri = "hp:/usb/
printer_name = ENVY-6000-series
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 =
<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.21.2 OK -
hpaio HPLIP-SANE-Backend REQUIRED - 3.21.2 OK 'hpaio found in /etc/sane.
-------
| 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.21.2 OK -
cupsext CUPS-Extension REQUIRED - 3.21.2 OK -
-------
| DISCOVERED SCANNER DEVICES |
-------
device `hpaio:
-------
| DISCOVERED USB DEVICES |
-------
Device URI Model
-----
hp:/usb/
TH0BH3G2KX
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
ENVY-6000-series
----------------
Type: Printer
Device URI: hp:/usb/
PPD: /etc/cups/
warning: Failed to read /etc/cups/
PPD Description:
Printer status: Drucker ENVY-6000-series ist im Leerlauf. Aktiviert seit Sa 27 Mär 2021 12:32:41 CET
Communication status: Good
--------------
| PERMISSION |
--------------
USB ENVY-6000-series Required - - OK Node:'/
Checking for Configured Queues....
warning: Fail to read ppd=/etc/
warning: Insufficient permission to access file /etc/cups/
warning: Could not complete Queue(s) configuration check
Checking for HP Properitery Plugin's....
No plug-in printers are configured.
Diagnose completed...
More information on Troubleshooting
Please close this terminal manually.
Wenn ich der Weisung des 'hp Device Managers' folge und am Terminal das Kommando 'hp-plugin' eingebe, geschieht Folgendes:
karl-heinz@KHE:~$ hp-plugin
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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.
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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.
Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/karl-
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.21.2 Plugin Self Extracting Archive.
HP Linux Imaging and Printing System (ver. 3.21.2)
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.21.2
Installed HPLIP version: 3.21.2
Number of files to install: 64
Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
Done.
Wenn die Installation des Scanners nun zu aufwendig werden sollte, kann ich mich auch so zufriedengeben; vielleicht ist die entsprechende Software auch noch gar nicht verfügbar. Falls Sie aber noch einen Vorschlag haben, würde ich dem gern folgen.
Jetzt weiß ich gar nicht, ob ich hier "Problem Solved" eingeben soll, weil Sie mich bereits ein riesiges Stück weitergebracht haben. Nochmal vielen Dank. Ich bleibe jetzt mal noch dran und gebe das Problem nach Ihrer Stellungnahme als "gelöst" an.
Herzliche Grüße
Dr. Armin Eisner
Revision history for this message
![]() |
#8 |
1. Die Meldung
warning: Fail to read ppd=/etc/
warning: Insufficient permission to access file /etc/cups/
Nur User, die in der Gruppe lp (=lineprinter) sind, dürfen das Druckerdefiniti
sudo usermod -a -G lp karl-heinz
dann abmelden und neu anmelden.
2. Für den Plugin:
Es gibt eine weitere Möglichkeit zur Installation:
wget https:/
sh ./hplip-
Vielleicht funktioniert diese. Wenn nicht, bitte um die Fehlermeldung(en).
Revision history for this message
![]() |
#9 |
Thanks Manfred Hampl, that solved my question.