REF: https://martianuswb.com/?p=5378
AT FIRST I TRIED TO USE AUTOMATIC INSTALLATION INSTEAD OF THE CUSTOM ONE AND IT FAILED:
Running ‘sudo apt-get install –assume-yes libcupsimage2-dev’
Please wait, this may take several minutes…
error: Package install command failed with error code 100
error: A required dependency ‘cups (CUPS – Common Unix Printing System)’ is still missing.
error: A required dependency ‘cups-image (CUPS image – CUPS image development files)’ is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
sudo apt-get install –reinstall libpng12-0=1.2.54-1ubuntu1.1 libpng-dev libcupsimage2-dev
Running ‘sudo apt-get install –assume-yes libcups2’
Please wait, this may take several minutes…
|Gtk-Message: Failed to load module “topmenu-gtk-module”
error: A required dependency ‘cups (CUPS – Common Unix Printing System)’ is still missing.
error: A required dependency ‘pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))’ is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
SOLUTION: USE CUSTOM INSTALLATION:
ALSO TRIED TO ENABLE CUPS SERVICE ???
teddy@teddy:~/Documents/HP_deskjet_2135$ sh hplip-3.20.3.run
Creating directory hplip-3.20.3
Verifying archive integrity… All good.
Uncompressing HPLIP 3.20.3 Self Extracting Archive……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
HP Linux Imaging and Printing System (ver. 3.20.3)
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-10-May-2020_14:43:23.log
\
note: Defaults for each question are maked with a ‘*’. Press <enter> to accept the default.
/Gtk-Message: Failed to load module “topmenu-gtk-module”
-Gtk-Message: Failed to load module “topmenu-gtk-module”
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) : c
INTRODUCTION
————
This installer will install HPLIP version 3.20.3 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).
DISTRO/OS CONFIRMATION
———————-
Distro appears to be Ubuntu 16.04.
Is “Ubuntu 16.04” your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
DRIVER OPTIONS
————–
Would you like to install Custom Discrete Drivers or Class Drivers ( ‘d’= Discrete Drivers*,’c’= Class Drivers,’q’= Quit)? : d
Initializing. Please wait…
SELECT HPLIP OPTIONS
——————–
You can select which HPLIP options to enable. Some options require extra dependencies.
Do you wish to enable ‘Network/JetDirect I/O’ (y=yes*, n=no, q=quit) ? y
Do you wish to enable ‘Graphical User Interfaces (Qt4)’ (y=yes*, n=no, q=quit) ? y
Do you wish to enable ‘Graphical User Interfaces (Qt5)’ (y=yes, n=no*, q=quit) ? n
Do you wish to enable ‘PC Send Fax support’ (y=yes*, n=no, q=quit) ? n
Do you wish to enable ‘Scanning support’ (y=yes*, n=no, q=quit) ? y
Do you wish to enable ‘HPLIP documentation (HTML)’ (y=yes*, n=no, q=quit) ? y
ENTER USER PASSWORD
——————-
Please enter the sudoer (teddy)’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
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)
warning: An error occurred running ‘sudo apt-get update’
sudo apt-get update (Pre-depend step 3)
OK
DEPENDENCY AND CONFLICT RESOLUTION
———————————-
\Gtk-Message: Failed to load module “topmenu-gtk-module”
HPLIP-3.16.3 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
————————
/Gtk-Message: Failed to load module “topmenu-gtk-module”
OK
RUNNING SCANJET DEPENDENCY COMMANDS
———————————–
sudo apt-get install –assume-yes python-pip (Scanjet-depend step 1)
sudo pip 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 pip install tesserocr (Scanjet-depend step 6)
sudo apt-get install –assume-yes libzbar-dev (Scanjet-depend step 7)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
sudo apt-get install –assume-yes python-zbar (Scanjet-depend step 8)
sudo apt-get install –assume-yes python-opencv (Scanjet-depend step 9)
sudo apt-get install –assume-yes python-pypdf2 (Scanjet-depend step 10)
sudo -H pip install imutils (Scanjet-depend step 11)
sudo -H pip install pypdfocr (Scanjet-depend step 12)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
sudo -H pip install scikit-image (Scanjet-depend step 13)
/
sudo -H pip install scipy (Scanjet-depend step 14)
OK
READY TO BUILD AND INSTALL
————————–
Ready to perform build and install. Press <enter> to continue or ‘q’ to quit:
PRE-BUILD COMMANDS
——————
OK
BUILD AND INSTALL
—————–
Running ‘./configure –with-hpppddir=/usr/share/ppd/HP –libdir=/usr/lib –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 –disable-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) : i
PRINTER SETUP
————-
Would you like to setup a printer now (y=yes*, n=no, q=quit) ? y
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.3)
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.
warning: Fax setup disabled – Python 2.3+ required.
Gtk-Message: Failed to load module “topmenu-gtk-module”
Searching… (bus=usb, search=(None), desc=0)
Done.
RE-STARTING HP_SYSTRAY
———————-
HP Linux Imaging and Printing System (ver. 3.20.3)
System Tray Status Service ver. 2.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.
Gtk-Message: Failed to load module “topmenu-gtk-module”
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
set_interactive(1)
“sni-qt/11952” WARN 15:11:38.490 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
teddy@teddy:~/Documents/HP_deskjet_2135$
HP Linux Imaging and Printing System (ver. 3.20.3)
HP Device Manager ver. 15.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.
warning: Fax disabled.
warning: Fax disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
error: Fax address book disabled – Python 2.3+ required.
Gtk-Message: Failed to load module “topmenu-gtk-module”
\warning: Supplies information not available for this device.
warning: Supplies information not available for this device.
Gtk-Message: Failed to load module “topmenu-gtk-module”
Gtk-Message: Failed to load module “topmenu-gtk-module”
WHEN COMPUTER IS RESTARTED, I NEED TO START CUPS SERVICE
|
1 2 |
teddy@teddy:~$ sudo /etc/init.d/cups start [ ok ] Starting cups (via systemctl): cups.service. |
SO COMPUTER CAN RECOGNIZE THE PRINTER!!!






