You are not logged in.

#1 2019-09-21 17:18:16

faetter
Member
Registered: 2019-09-21
Posts: 9

[SOLVED] Issues re-installing HP printer - hp-setup error

Hi everyone,

A few months ago I got an HP Deskjet 2630 to replace my old printer and seamlessly installed it without any issues using the HP Device Manager interface. I don't need to print things frequently, so on Friday I tried to print something and realised my printer wasn't working anymore.

Initially, I was getting a "failed filter" error in the printing queue when trying to print a document. After some online searching and trying some suggested fixes, I couldn't really get anywhere and decided to just remove the printer and install it again. However, this came with its own set of problems. This is the output of hp-setup, which produces the same "error: Printer queue setup failed. Error: successful-ok-ignored-or-substituted-attributes" line whether I ran it as root, as a user or through the GUI:

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.19.8)
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)
error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes

HP Linux Imaging and Printing System (ver. 3.19.8)
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.


HP Linux Imaging and Printing System (ver. 3.19.8)
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.

error: HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.

Done.
lpr: No such file or directory
error: Print command failed with exit code 256!
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1510, resource id: 37749283, major code: 40 (TranslateCoords), minor code: 0

Done.

I ran hp-doctor to figure out what's going on:

$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.19.8)
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.19.8)
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.

-
(xsane:33941): Gtk-WARNING **: 16:54:01.603: Unable to locate theme engine in module_path: "adwaita",

(xsane:33941): Gtk-WARNING **: 16:54:01.605: Unable to locate theme engine in module_path: "adwaita",
 

Checking for Deprecated items....
error: This distro (i.e unknown  rolling) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y


Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.19.8)
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.

error: HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.

Done.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?


Checking for Dependencies....
warning: 0-rolling version is not supported. Using 0-0 versions dependencies to verify and install...

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

 Kernel: 5.3.0-arch1-1-ARCH #1 SMP PREEMPT Mon Sep 16 03:29:01 UTC 2019 GNU/Linux
 Host: ###
 Proc: 5.3.0-arch1-1-ARCH #1 SMP PREEMPT Mon Sep 16 03:29:01 UTC 2019 GNU/Linux
 Distribution: 0 rolling
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.19.8
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 0 distro  rolling version 

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

[hplip]
version=3.19.8

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.8
html=/usr/share/doc/hplip-3.19.8
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=yes
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.19.8
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
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:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = 

[fax]
email_address = 
voice_phone = 

[last_used]
device_uri = "hp:/usb/DeskJet_2600_series?serial=CN91K8C0Z506PS"
printer_name = DeskJet_2600
working_dir = .

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1558133495
notify_upgrade = false
pending_upgrade_time = 0

[installation]
date_time = 09/21/19 16:54:02
version = 3.19.8


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

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

 cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.3.0           OK         'CUPS Scheduler is running'
 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.27            OK         -

(xsane:34044): Gtk-WARNING **: 16:54:07.397: Unable to locate theme engine in module_path: "adwaita",

(xsane:34044): Gtk-WARNING **: 16:54:07.401: Unable to locate theme engine in module_path: "adwaita",

(xsane:34045): Gtk-WARNING **: 16:54:07.419: Unable to locate theme engine in module_path: "adwaita",

(xsane:34045): Gtk-WARNING **: 16:54:07.421: Unable to locate theme engine in module_path: "adwaita",
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.28          OK         -
 dbus                 DBus - Message bus system                                    REQUIRED        -               1.12.16         OK         -
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.116           OK         -
 network              network -wget                                                OPTIONAL        -               1.20.3          OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.7             OK         -

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

 libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.3.0           OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.3.0           OK         -
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.29'         OK         -
 libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
 sane                 SANE - Scanning library                                      REQUIRED        -               1.0.28          OK         -
 sane-devel           SANE - Scanning library development files                    REQUIRED        -               1.0.28          OK         -
 libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.8             OK         -
 libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.1           OK         -
 python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.7.4           OK         -
 error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               MISSING    'python3-notify2 needs to be installed'
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 297, in <module>
    num_errors, num_warns = dep.validate(DEPENDENCY_RUN_AND_COMPILE_TIME, False)
  File "/usr/share/hplip/check.py", line 368, in validate
    self.core.dependencies[dep])
  File "/usr/share/hplip/check.py", line 210, in __update_deps_info
    installed_ver = self.core.version_func[deps_info[6]]()
  File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version
    from PyQt4 import QtCore
ImportError: cannot import name 'QtCore' from 'PyQt4' (unknown location)

Which seems to point at some Python dependencies problem. After more online searching I installed some extra Python packages, but the problem persisted. I read some people suggesting that what looked like similar problems could be solved by installing python-pyqt4 from the AUR, but yay failed to build this when I gave it a shot, so that's where I stopped, lest I spent the rest of my weekend going down a rabbit hole of nested errors with no guarantee of success.

I downloaded hplip directly form HP's website and ran that package hoping the results would be different:

$ ./hplip-3.19.8.run
Creating directory hplip-3.19.8
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.8 Self Extracting Archive.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.19.8)
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_Sat-21-Sep-2019_17:22:12.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
-
(xsane:36725): Gtk-WARNING **: 17:22:16.296: Unable to locate theme engine in module_path: "adwaita",

(xsane:36725): Gtk-WARNING **: 17:22:16.298: Unable to locate theme engine in module_path: "adwaita",
error: Auto installation is not supported for 'unknown' distro so all dependencies may not be installed. 
Please install manually as mentioned in 'http://hplipopensource.com/hplip-web/install/manual/index.html' web-site

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y


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.19.8 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).


DISTRO/OS CONFIRMATION
----------------------


DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num.  Distro/OS Name          
----  ------------------------
0     Mepis                   
1     Debian                  
2     SUSE Linux              
3     Mandriva Linux          
4     Fedora                  
5     Red Hat                 
6     Red Hat Enterprise Linux
7     Ubuntu                  
8     PCLinuxOS               
9     IGOS                    
10    Linux Mint              
11    Linpus Linux            
12    gOS                     
13    Boss                    
14    Linux From Scratch      
15    Manjaro Linux           

Enter number 0...15 (q=quit) ?15

Choose the version of "Manjaro Linux" that most closely matches your system:

Num.  Distro/OS Version                       
----  ----------------------------------------
0     Unknown or not listed                   
1     17.1.4 ("Hakoila", Released 07/03/2017) 
2     18.0 ("Illyria", Released 24/01/2019)   
3     18.0.4 ("Illyria", Released 24/01/2019) 

Enter number 0...3 (q=quit) ?3

Distro set to: Manjaro Linux 18.0.4

Initializing. Please wait...


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

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   
python3-notify2      gui_qt5              OPTIONAL            
python3-pyqt4-dbus   gui_qt4              OPTIONAL            
python3-pyqt5-dbus   gui_qt5              OPTIONAL            
python3-pyqt5        gui_qt5              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: python3-pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
warning: This installer cannot install 'python3-pyqt5' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

But as you can see, it's still pointing to Python dependency errors. I don't know if by solving this I can get past the initial problem, but would appreciate some guidance, especially given that I already have the following installed:

pyqt5-common
python-pyqt5 (and equivalent for python2-)
python-sip-pyqt5 (and equivalent for python2-)
python-qtpy (and equivalent for python2-)

My problem may be related to this other thread, but the symptoms are slightly different: https://bbs.archlinux.org/viewtopic.php?id=249239

I shamelessly went to a windows partition that I hadn't used in 8 months to print the stuff I needed, so it's not urgent but as I said above, any help's appreciated!

Last edited by faetter (2019-12-18 00:42:21)


None are more enslaved than those who falsely believe they are free.

Offline

#2 2019-09-21 17:56:17

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

I am not sure, but it sounds like it is just a dependency for the installer. What I am more concerned about is

lpr: No such file or directory

Do you have cups installed?

Offline

#3 2019-09-21 20:12:37

faetter
Member
Registered: 2019-09-21
Posts: 9

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

Swiggles wrote:

I am not sure, but it sounds like it is just a dependency for the installer. What I am more concerned about is

lpr: No such file or directory

Do you have cups installed?

Hey Swiggles. I saw that one too but can't say I spent too much time on it because it didn't seem to be the first bug the installer hit. However, I do have cups installed:

$ pacman -Q | grep .*cups.*
cups 2.3.0-3
cups-filters 1.25.5-1
cups-pk-helper 0.2.6-3
lib32-libcups 2.3.0-1
libcups 2.3.0-3
python-pycups 1.9.74-1

None are more enslaved than those who falsely believe they are free.

Offline

#4 2019-09-21 20:48:19

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

Then make sure to clean up the stuff you did, check optional dependencies for the hplip in Extra and follow the troubleshooting steps. Give relevant logs if you hit a roadblock.
There are no relevant bug reports open so I would assume it works. The only thing I noticed is that your printer is not in the supported list, although some people mentioned it is handled as the 2600.

Offline

#5 2019-09-21 21:21:01

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

error: HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.

?

Offline

#6 2019-09-22 00:12:28

faetter
Member
Registered: 2019-09-21
Posts: 9

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

seth wrote:

error: HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.

?

Hi seth. Already using the latest version available through pacman (3.19.8-1). I suspect that's just a standard message as the tool tries to auto-update on its own before it exits.

Last edited by faetter (2022-03-24 00:49:50)


None are more enslaved than those who falsely believe they are free.

Offline

#7 2019-09-22 06:28:26

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

Ok, as Swiggles suggested, unroll any attempts to install the driver from HP and address the lpr absence,

pacman -Qkk cups
type lpr
ldd `which lpr`

The typical reason for hplip failures is a dated https://aur.archlinux.org/packages/hplip-plugin/

Offline

#8 2019-09-24 11:10:02

ynakao
Member
Registered: 2017-09-03
Posts: 7

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

I have the same issue. I also got  a `failed filter` error while printing, so deleted the printer setting and tried to setup again. But  got an error `error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes` when I attempted to add my HP ENVY 5020.

I guess these threads[0][1][2] are related with this issue. As @mlyean[3] and @loqs[4] said in the comment, I commented out all lines including `Custom` term in the ppd file, then hp-setup was completed faultlessly and my printer was listed in the CUPS setting interface(localhost:631).

However I still don't understand where the problem comes from. I found the bug report[5] at the arch bug tracker, do this report have something to do with this issue?

I also briefly searched hplip Q&A and bug reports at the support page[6], but I couldn't find any related issues or questions. Is this Arch Linux specific issue or upstream one?

[0] https://bbs.archlinux.org/viewtopic.php?id=249239
[1] https://bbs.archlinux.org/viewtopic.php?id=249222
[2] https://bbs.archlinux.org/viewtopic.php?id=248631
[3] https://bbs.archlinux.org/viewtopic.php … 5#p1864525
[4] https://bbs.archlinux.org/viewtopic.php … 9#p1860249
[5] https://bugs.archlinux.org/task/63532
[6] https://launchpad.net/hplip/

Last edited by ynakao (2019-09-25 01:25:25)

Offline

#9 2019-12-18 00:01:56

ynakao
Member
Registered: 2017-09-03
Posts: 7

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

Now that cups v2.3.1 has been released[0] and arrived in extra repo, which fixed the `custom` keyword issue[1], hp-setup printer addition process seems to work properly.

I deleted the printer which uses the modified ppd file from the printer list on http://localhost:631/printers/ . Then tried to exec `hp-setup` from the command line again, my printer was successfully added to the list without any errors.

[0] https://github.com/apple/cups/releases/tag/v2.3.1
[1] https://github.com/apple/cups/issues/5639

Offline

#10 2019-12-18 00:41:45

faetter
Member
Registered: 2019-09-21
Posts: 9

Re: [SOLVED] Issues re-installing HP printer - hp-setup error

ynakao wrote:

Now that cups v2.3.1 has been released[0] and arrived in extra repo, which fixed the `custom` keyword issue[1], hp-setup printer addition process seems to work properly.

Same here. I had to put this on hold because I've been pretty busy over the last couple of months, but I updated cups yesterday and surprise, surprise, the new version fixed it for me. Which is good because nothing else I tried worked!

Will mark this thread as solved.


None are more enslaved than those who falsely believe they are free.

Offline

Board footer

Powered by FluxBB