I can not install HP LaserJet Pro M148fdw in Linux Mint 21

Bug #2003659 reported by Miguel de Dios
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

$ hp-setup -i

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

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

Setting up device: hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68

---------------------
| PRINT QUEUE SETUP |
---------------------

Please enter a name for this print queue (m=use model name:'HP_LaserJet_Pro_M148f-M149f'*, q=quit) ?
Using queue name: HP_LaserJet_Pro_M148f-M149f
Locating PPD file... Please wait.

Found PPD file: lsb/usr/HP/hp-laserjet_pro_m148f-m149f-ps.ppd.gz
Description:

Note: The model number may vary slightly from the actual model number on the device.

Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ?
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
Queue name: HP_LaserJet_Pro_M148f-M149f
PPD file: lsb/usr/HP/hp-laserjet_pro_m148f-m149f-ps.ppd.gz
Location:
Information:

-------------------
| FAX QUEUE SETUP |
-------------------

Please enter a name for this fax queue (m=use model name:'HP_LaserJet_Pro_M148f-M149f_fax'*, q=quit) ?
Using queue name: HP_LaserJet_Pro_M148f-M149f_fax
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?

Adding fax queue to CUPS:
Device URI: hpfax:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
Queue name: HP_LaserJet_Pro_M148f-M149f_fax
PPD file: /usr/share/ppd/HP/HP-Fax2-hpcups.ppd.gz
Location:
Information:

--------------------
| FAX HEADER SETUP |
--------------------

Would you like to perform fax header setup (y=yes*, n=no, q=quit) ?
error: Unable to communicate with device (code=12): hpfax:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
error: Unable to communicate with the device. Please check the device and try again.

---------------------
| PRINTER TEST PAGE |
---------------------

Would you like to print a test page (y=yes*, n=no, q=quit) ?

HP Linux Imaging and Printing System (ver. 3.22.10)
Testpage Print Utility ver. 6.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: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
error: Unable to print to printer. Please check device and try again.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.

Done.

-------------------------------------------------------
-------------------------------------------------------

$ hp-doctor
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:

HP Linux Imaging and Printing System (ver. 3.22.10)
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.22.10)
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.22.10)
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: Failed to connect to HPLIP site. Error code = 8
error: Failed to connect to HPLIP site. Error code = 8
error: Failed to get latest version of HPLIP.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?

Checking for Dependencies....

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

 Kernel: 5.19.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 15 12:05:40 UTC 2 GNU/Linux
 Host: portatil
 Proc: 5.19.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 15 12:05:40 UTC 2 GNU/Linux
 Distribution: 22 21
 Bitness: 64 bit

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

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

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

[hplip]
version=3.22.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.22.10
html=/usr/share/doc/hplip-3.22.10
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.22.10
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=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:
[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[fax]
email_address =
voice_phone =

[installation]
date_time = 01/22/23 22:30:12
version = 3.22.10

[last_used]
device_uri = hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
printer_name = HP_LaserJet_Pro_M148f-M149f
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 = 1674412170
notify_upgrade = true
pending_upgrade_time = 0

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

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

 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.4.1 OK 'CUPS Scheduler is running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.55.0 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.1.1 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.20 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.21.2 OK -
 avahi-utils avahi-utils OPTIONAL - 0.8 OK -

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

 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.4.1 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.4.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - b'2.35' OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 sane SANE - Scanning library REQUIRED - - OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 libavahi-dev libavahi-dev REQUIRED - - OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.9.1 OK -
 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 3.0.2 OK -
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.10.6 OK -
 python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 python3-pyqt5-dbus PyQt 5 DBus - DBus Support for PyQt5 OPTIONAL 5.0 5.15.6 OK -
 python3-pyqt5 PyQt 5- Qt interface for Python (for Qt version 4.x) REQUIRED 5.0 5.15.6 OK -
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.18 OK -
 python3-xml Python XML libraries REQUIRED - 2.4.7 OK -
 python3-devel Python devel - Python development files REQUIRED 2.2 3.10.6 OK -
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 9.0.1 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.6.8 OK -

--------------
| COMPILEDEP |
--------------

 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 11.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -

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

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

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

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

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

device `hpaio:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68' is a Hewlett-Packard HP_LaserJet_Pro_M148f-M149f all-in-one
device `escl:https://169.254.163.68:443' is a HP LaserJet Pro M148fdw (918E41) platen,adf scanner
device `airscan:e0:HP LaserJet Pro M148fdw (918E41)' is a eSCL HP LaserJet Pro M148fdw (918E41) ip=169.254.163.68

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

No devices found.

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

HP_LaserJet_Pro_M148f-M149f
---------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
PPD: /etc/cups/ppd/HP_LaserJet_Pro_M148f-M149f.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_Pro_M148f-M149f.ppd ppd file
PPD Description:
Printer status: la impresora HP_LaserJet_Pro_M148f-M149f está inactiva. activada desde dom 22 ene 2023 22:29:48
error: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
error: unable to open channel
error: Communication status: Failed

HP_LaserJet_Pro_M148f-M149f_fax
-------------------------------
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
PPD: /etc/cups/ppd/HP_LaserJet_Pro_M148f-M149f_fax.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_Pro_M148f-M149f_fax.ppd ppd file
PPD Description:
Printer status: la impresora HP_LaserJet_Pro_M148f-M149f_fax está inactiva. activada desde dom 22 ene 2023 22:29:50
error: Unable to communicate with device (code=12): hpfax:/net/HP_LaserJet_Pro_M148f-M149f?ip=169.254.163.68
error: unable to open channel
error: Communication status: Failed

ML-1510_700
-----------
Type: Unknown
Device URI: usb://Samsung/ML-1510_700?serial=2721BACWA06806B0
PPD: /etc/cups/ppd/ML-1510_700.ppd
warning: Failed to read /etc/cups/ppd/ML-1510_700.ppd ppd file
PPD Description:
Printer Unplugged or turned off-1510_700 está deshabilitada desde mar 03 ene 2023 15:02:16 -
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

Checking Permissions....

Checking for Configured Queues....
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 328, in <module>
    queues.main_function(dep.core.passwordObj, MODE,ui_toolkit, False, DEVICE_URI)
  File "/usr/share/hplip/base/queues.py", line 338, in main_function
    mapofDevices,status = parseQueues(mode)
  File "/usr/share/hplip/base/queues.py", line 115, in parseQueues
    if device_uri.startswith("cups-pdf:/"):
AttributeError: 'NoneType' object has no attribute 'startswith'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_hplip_doctor.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 328, in <module>
    queues.main_function(dep.core.passwordObj, MODE,ui_toolkit, False, DEVICE_URI)
  File "/usr/share/hplip/base/queues.py", line 338, in main_function
    mapofDevices,status = parseQueues(mode)
  File "/usr/share/hplip/base/queues.py", line 115, in parseQueues
    if device_uri.startswith("cups-pdf:/"):
AttributeError: 'NoneType' object has no attribute 'startswith'

-------------------------------------------------------
-------------------------------------------------------

$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 21
Release: 21
Codename: vanessa

-------------------------------------------------------
-------------------------------------------------------

$ uname -a
Linux portatil 5.19.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 15 12:05:40 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.