MX 19.4 HP LaserJet Pro Printer Installation

Message
Author
shrinker09
Posts: 81
Joined: Sat Jan 25, 2020 10:24 am

MX 19.4 HP LaserJet Pro Printer Installation

#1 Post by shrinker09 »

I want to install a HP LaserJet Pro MFP M28w printer/scanner. I used the MX Package Installer to install HP Printing (HPLIP and printing extras). At some point, it said driver installation failed. I pasted hp-setup into the terminal, and got this:

Code: Select all

HP Linux Imaging and Printing System (ver. 3.19.6)
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)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1013, resource id: 23289223, major code: 40 (TranslateCoords), minor code: 0


The computer sees the printer and acts like it's installed, but when I click "print," it says it's printing and then it says the print job is completed, but nothing actually happens. The scanner works fine and that does print.

I went to https://support.hp.com/us-en/printer-setup like the instructions that came with the printer said and downloaded the file hplip-3.22.10.run for Debian. Then I pasted

Code: Select all

sh /home/[mypc'sname]/Downloads/hplip-3.17.10.run
It had me choose my distro (MX Linux was on the list) but it gave me this:

Code: Select all

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   
pyqt5-dbus           gui_qt5              OPTIONAL            
libcrypto            network              REQUIRED            
libnetsnmp-devel     network              REQUIRED            
sane-devel           scan                 REQUIRED            
pil                  scan                 OPTIONAL            
pyqt4-dbus           gui_qt4              REQUIRED            
python-devel         base                 REQUIRED            
cups-devel           base                 REQUIRED            
libavahi-dev         scan                 REQUIRED            
reportlab            fax                  OPTIONAL            
pyqt5                gui_qt5              REQUIRED            
pyqt4                gui_qt4              REQUIRED            
libusb               base                 REQUIRED            
libtool              base                 REQUIRED            
cups-image           base                 REQUIRED            
python-notify        gui_qt5              OPTIONAL            
xsane                scan                 OPTIONAL            
libjpeg              base                 REQUIRED            
dbus                 fax                  REQUIRED            
avahi-utils          network              OPTIONAL            
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: This installer cannot install 'python-devel' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.
I don't know how to install python-devel or if that's even the best thing to do in this instance.

Here is the info for this computer.

Code: Select all

System:    Kernel: 4.19.0-23-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-4.19.0-23-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm 4.14.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-19.4_x64 patito feo May 31  2020 
           base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Desktop Mobo: Acer model: Aspire TC-780 serial: <filter> 
           UEFI: American Megatrends v: R01-A0 date: 04/26/2016 
CPU:       Info: Quad Core model: Intel Core i5-6400 bits: 64 type: MCP arch: Skylake-S 
           family: 6 model-id: 5E (94) stepping: 3 microcode: F0 cache: L2: 6 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21696 
           Speed: 900 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
           Type: mds mitigation: Clear CPU buffers; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled 
           Type: retbleed mitigation: IBRS 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Acer Incorporated ALI driver: i915 v: kernel 
           bus-ID: 00:02.0 chip-ID: 8086:1912 class-ID: 0300 
           Display: x11 server: X.Org 1.20.4 compositor: xfwm4 v: 4.14.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.7x9.4") 
           s-diag: 485mm (19.1") 
           Monitor-1: DP-1 res: 1600x900 hz: 60 dpi: 94 size: 432x239mm (17.0x9.4") 
           diag: 494mm (19.4") 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) v: 4.5 Mesa 18.3.6 
           compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-H HD Audio 
           vendor: Acer Incorporated ALI 100 Series/C230 Series Family driver: snd_hda_intel 
           v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403 
           Sound Server-1: ALSA v: k4.19.0-23-amd64 running: yes 
           Sound Server-2: PulseAudio v: 12.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Acer Incorporated ALI driver: r8169 v: kernel port: e000 bus-ID: 01:00.0 
           chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel modules: wl port: e000 
           bus-ID: 02:00.0 chip-ID: 8086:3165 class-ID: 0280 
           IF: wlan0 state: down mac: <filter> 
Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-10:6 chip-ID: 8087:0a2a 
           class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2 
           sub-v: 1000 hci-v: 4.2 rev: 1000 
           Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff 
           link-mode: slave accept service-classes: rendering, capturing 
Drives:    Local Storage: total: 931.51 GiB used: 99.28 GiB (10.7%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10EZEX-21WN4A0 
           size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
           type: HDD rpm: 7200 serial: <filter> rev: 1A01 scheme: GPT 
Partition: ID-1: / raw-size: 929.23 GiB size: 913.57 GiB (98.31%) used: 99.28 GiB (10.9%) 
           fs: ext4 dev: /dev/sda2 maj-min: 8:2 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 258 KiB (0.1%) 
           fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/sda3 maj-min: 8:3 
Sensors:   System Temperatures: cpu: 44.0 C mobo: 29.8 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2186 lib: 1093 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ buster main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ buster main non-free
           Active apt repos in: /etc/apt/sources.list.d/syncthing.list 
           1: deb https://apt.syncthing.net/ syncthing stable
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 225 Uptime: 15m wakeups: 1 Memory: 7.71 GiB used: 2.28 GiB (29.5%) 
           Init: SysVinit v: 2.93 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 8.3.0 
           alt: 8 Shell: quick-system-in default: Bash v: 5.0.3 running-in: quick-system-in 
           inxi: 3.3.06 

Huckleberry Finn

Re: MX 19.4 HP LaserJet Pro Printer Installation

#2 Post by Huckleberry Finn »

In fact, no package (also in Debian) as python-devel , but python-dev

However:
https://developers.hp.com/hp-linux-imaging-and-printing/install wrote:
We recommend that most users use the Automatic Installer .

Linux distributions supported by the automatic installer:

...
Debian (... 10.10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 11)
...
MX Linux (21, 21.1,21.2)

(Though it sounds weird: Why Debian 10 but not MX19 ? (And it looks like the same download page opens)


You can (if you like) try manual installation for Debian:

https://developers.hp.com/hp-linux-imag ... ros/debian

shrinker09
Posts: 81
Joined: Sat Jan 25, 2020 10:24 am

Re: MX 19.4 HP LaserJet Pro Printer Installation

#3 Post by shrinker09 »

https://developers.hp.com/hp-linux-imag ... ros/debian

That has instructions for Debian 5 and 6; will it work for Debian 10?

Huckleberry Finn

Re: MX 19.4 HP LaserJet Pro Printer Installation

#4 Post by Huckleberry Finn »

How to will work.. just the package names may have changed (what to install). So, when I search, almost all are either already installed, or available with the same names..

But these:
  • gs-esp (no such thing anymore, it's from 2008)
  • libjpeg62-dev ( no such thing, just libjpeg62-turbo-dev and libjpeg62-turbo currently )
  • python-imaging ( no such thing , python-imageio currently (they may not be the same things ))

and:
  • libusb-1.0.0-dev (in the command to install) is currently libusb-1.0-0-dev (zero "hyphen" zero)

Nothing to lose to try ... (You can install these one by one additionally if you like, no harm.. then go on installation.. It'll tell if something's missing).

User avatar
j2mcgreg
Global Moderator
Posts: 7131
Joined: Tue Oct 23, 2007 12:04 pm

Re: MX 19.4 HP LaserJet Pro Printer Installation

#5 Post by j2mcgreg »

From here:

https://developers.hp.com/hp-linux-imag ... lugintable

That printer requires a binary plug-in in addition to the drivers in hplip in order to operate properly. In a terminal session, run "hp-setup" which will download and install the plug-in.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Mxmann
Posts: 5
Joined: Fri Feb 24, 2023 3:22 pm

Re: MX 19.4 HP LaserJet Pro Printer Installation

#6 Post by Mxmann »

I spent four days trying to get my HP ENVY 7640 to work correctly from within a python3 script.
This file solved my problem, run in terminal: $ sh hplip-3.22.10.run

User avatar
jmozel
Posts: 1
Joined: Sun Jan 19, 2020 3:46 pm

Re: MX 19.4 HP LaserJet Pro Printer Installation

#7 Post by jmozel »

Are you able to scan with the printer

User avatar
j2mcgreg
Global Moderator
Posts: 7131
Joined: Tue Oct 23, 2007 12:04 pm

Re: MX 19.4 HP LaserJet Pro Printer Installation

#8 Post by j2mcgreg »

@jmozel

Start a new thread if you have a problem with your scanner. Tacking on to an older thread won't get you the attention you deserve.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Post Reply

Return to “Hardware /Configuration”