/usr/lib/cups/filter/hpcups Missing (Long)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Drew

/usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

Asus X200CA
HP PSC1350
Mint 18.3
Cinnamon 3.6.7

After the recent Virtualbox update issues, my laptop booted with all settings removed and data obscured. That's a separate issue that I'm still working on. However, my HP PSC1350 printer no longer works. I know it's an ancient printer but it's sufficient for my minimal needs and it was working fine before the update issues arose.

Print jobs hang up in the queue and won't print. There is a message in the popup saying that /usr/lib/cups/filter/hpcups is missing. I downloaded and ran hplip-3.18.3.run from the terminal and that appeared to proceed well. Here's the output:

drew@ken-X200CA ~ $ cd Downloads
drew@ken-X200CA ~/Downloads $ sh hplip-3.18.3.run
Creating directory hplip-3.18.3
Verifying archive integrity... All good.
Uncompressing HPLIP 3.18.3 Self Extracting Archive.....................................................................................................................................................................................................

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

Copyright (c) 2001-15 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_Mon-02-Apr-2018_11:59:48.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) : a

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

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Linux Mint 18.3.

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

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (drew)'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


MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
libcrypto network REQUIRED
libnetsnmp-devel network REQUIRED
sane-devel scan REQUIRED
python-devel base REQUIRED
cups-devel base REQUIRED
libusb base REQUIRED
libtool base REQUIRED
cups-image base REQUIRED
xsane scan OPTIONAL
libjpeg base REQUIRED
dbus fax REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y


INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)
warning: Missing REQUIRED dependency: libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency: sane-devel (SANE - Scanning library development files)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'scan': xsane (xsane - Graphical scanner frontend for SANE)

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
----------------------------------
Running 'sudo apt-get install --assume-yes python-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-bsd'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes cups-client'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libusb-1.0.0-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libtool-bin'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libcupsimage2-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libjpeg8-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes openssl'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsnmp-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes snmp-mibs-downloader'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libdbus-1-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes libsane-dev'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes xsane'
Please wait, this may take several minutes...
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
------------------------


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


BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib/x86_64-linux-gnu --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.18.3)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 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)
error: No PPD found for model psc_1300 using old algorithm.
error: No appropriate print PPD file found for model psc_1300_series
error: Printer queue setup failed. Error : successful-ok-ignored-or-substituted-attributes

Done.

RE-STARTING HP_SYSTRAY
----------------------

HP Linux Imaging and Printing System (ver. 3.18.3)
System Tray Status Service ver. 2.0

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

/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/12505" WARN 12:16:03.166 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
drew@ken-X200CA ~/Downloads $

The printer is still not working. Ran hp-doctor but to no avail.

Suggestions please. Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

did you run the hp-setup command please?

Post by pdc_2 »

I saw the script say
If you choose to restart, run this command after restarting: hp-setup
and I wondered if you had run

Code: Select all

hp-setup
; I have seen HP suggest running

Code: Select all

hp-check
before you run the hp-setup command; sort of completeness;
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

I did not run those commands at the time because I selected the other option presented, which was to unplug the printer USB and then plug it in again. I did run the commands just now and you can see that HP-Check turned up no errors but HP-Setup certainly did.

drew@ken-X200CA ~ $ hp-check
Saving output in log file: /home/drew/hp-check.log

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

Copyright (c) 2001-15 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.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 GNU/Linux
Host: ken-X200CA
Proc: 4.13.0-37-generic #42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 GNU/Linux
Distribution: 22 18.3
Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.18.3
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 18.3 version

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

[hplip]
version=3.18.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.3
html=/usr/share/doc/hplip-3.18.3
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.18.3
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:
Plugins are not installed. Could not access file: No such file or directory

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

[installation]
date_time = 2018-04-02 18:28:53
version = 3.18.3

[settings]
systray_visible = 1
systray_messages = 0

[last_used]
device_uri = "hp:/usb/psc_1300_series?serial=MY3BFBD3179F"
printer_name =
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 - 5.4.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.0.2 OK -
python-xml Python XML libraries REQUIRED - 2.1.0 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 - 1.0.25 OK -
pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.11.4 OK -
libpthread libpthread - POSIX threads library REQUIRED - 2.23 OK -
python-devel Python devel - Python development files REQUIRED 2.2 2.7.12 OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.12 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 - 1.0.25 OK -

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

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

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

gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.18 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK 'CUPS Scheduler is running'
network network -wget OPTIONAL - 1.17.1 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.10.6 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -

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

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

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

device `hpaio:/usb/psc_1300_series?serial=MY3BFBD3179F' is a Hewlett-Packard psc_1300_series all-in-one


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

Device URI Model
-------------------------------- ------------------
hp:/usb/psc_1300_series?serial=M HP psc 1300 series
Y3BFBD3179F

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

psc-1300-series
---------------
Type: Printer
Device URI: hp:/usb/psc_1300_series?serial=MY3BFBD3179F
PPD: /etc/cups/ppd/psc-1300-series.ppd
warning: Failed to read /etc/cups/ppd/psc-1300-series.ppd ppd file
PPD Description:
Printer status: printer psc-1300-series disabled since Sun 25 Mar 2018 06:32:44 PM PDT -File "/usr/lib/cups/filter/hpcups" not available: No such file or directory
Communication status: Good

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

USB psc-1300-series Required - - OK Node:'/dev/bus/usb/002/008' Perm:' root lp rw- rw- rw- rw- rw- r--'
No errors or warnings.

Done.
drew@ken-X200CA ~ $ hp-setup

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

Copyright (c) 2001-15 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)
error: No PPD found for model psc_1300 using old algorithm.
error: No appropriate print PPD file found for model psc_1300_series
error: Printer queue setup failed. Error : successful-ok-ignored-or-substituted-attributes
lpr: The printer or class does not exist.
error: Print command failed with exit code 256!

Done.
drew@ken-X200CA ~ $
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by pdc_2 »

there is a package called printer-driver-hpcups that appears in various Ubuntu repositories eg https://packages.ubuntu.com/xenial/text ... ver-hpcups

I would suggest you do

Code: Select all

sudo apt install printer-driver-hpcups
it is all very strange; why it would be missing;

this is a senior printer you have so HP would say any hplip version in living memory should be fine; so for recent 16.04 based releases; 3.16.3 that was installed as core on Mint should have been fine; the installed hplip should have been fine;

all most of us can do is google on such error messages; and from a few posts try to suggest some useful things
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

@pdc_2: I ran the suggested command. It still doesn't print. Interestingly, the scanner function still works for Simple Scan and the unit still functions OK as a copier. Thanks for your suggestion.
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

@pdc_2: Also note that when I ran hp-setup a popup window said that it could not find the PPD file and then gave me an incredibly long drop down list of HP printers from which to choose. Mine (HP PSC1300 series) was on the list and I selected that. Actually my unit is PSC1350 but it is never listed separately anywhere on the HP sites.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

HP1350

Post by pdc_2 »

if in a terminal you now do

Code: Select all

locate hpcups
, do you see it now?
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

Yes, with an incredibly long list of files.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by pdc_2 »

as long as it shows
/usr/lib/cups/filter/hpcups
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

Yes, that file is in the list very near the bottom. Do you want/need to see the complete output?
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

/usr/lib/cups/filter/hpcups is alive and well

Post by pdc_2 »

no; it was that hplip reported it missing; it is now there; ... and I am not clear: still no printing?
Drew

Re: /usr/lib/cups/filter/hpcups Missing (Long)

Post by Drew »

Still no printing. Something similar to this happened about a year or so ago. A print job would sit dormant in the queue for 5 or 6 minutes or even longer sometimes, and then begin printing. I chalked it up to an aging printer and just lived with it. Then out of the blue and through nothing I did, the issue resolved itself and it has been printing as well as it can every since. It is always very slow and clunky but I only print 2 or 3 sheets a week on average so it's good enough.

I mostly use the unit for scanning and copying and both those functions are working fine.
Locked

Return to “Printers & Scanners”