can't install hp-plugin

Bug #2015529 reported by Massimiliano Agosti
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Confirmed
High
Till Kamppeter

Bug Description

Kubuntu 23.04.
I need to install plug-in in order to scan documents properly. No problem with previous Kubuntu versions.

-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.22.10 |
------------------------------------------

  Option Description
  ---------- --------------------------------------------------
  d Download plug-in from HP (recommended)
  p Specify a path to the plug-in (advanced)
  q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from:
Downloading plug-in: [\ ] 0% Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/installer/core_install.py", line 240, in __init__
    self.passwordObj = password.Password(ui_mode)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/password.py", line 94, in __init__
    self.__readAuthType() # self.__authType
    ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/password.py", line 119, in __readAuthType
    distro_name = get_distro_std_name(os_name)
                  ^^^^^^^^^^^^^^^^^^^
NameError: name 'get_distro_std_name' is not defined. Did you mean: 'get_distro_name'?

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: hplip 3.22.10+dfsg0-1
ProcVersionSignature: Ubuntu 6.2.0-19.19-generic 6.2.6
Uname: Linux 6.2.0-19-generic x86_64
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CupsErrorLog:
 W [07/Apr/2023:00:00:13 +0200] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
 W [07/Apr/2023:00:00:13 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP-Color-LaserJet-Pro-MFP-M176n-Gray..\' already exists
 W [07/Apr/2023:08:52:52 +0200] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
CurrentDesktop: KDE
Date: Fri Apr 7 09:00:55 2023
InstallationDate: Installed on 2023-03-19 (18 days ago)
InstallationMedia: Kubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230319)
Lpstat: device for HP-Color-LaserJet-Pro-MFP-M176n: hp:/usb/HP_Color_LaserJet_Pro_MFP_M176n?serial=CND7G8NJJL
MachineType: System manufacturer System Product Name
Papersize: a4
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP-Color-LaserJet-Pro-MFP-M176n.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP-Color-LaserJet-Pro-MFP-M176n.ppd: Permission denied
ProcEnviron:
 LANG=it_IT.UTF-8
 LANGUAGE=it:en_US
 PATH=(custom, no user)
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-19-generic root=UUID=baca8e64-c620-410c-8401-dc64ddeef942 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/01/2013
dmi.bios.release: 4.6
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4105
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8Z68-V LX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4105:bd07/01/2013:br4.6:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8Z68-VLX:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Massimiliano Agosti (magosti) wrote :
Revision history for this message
Milos Ivanovic (mivanovic) wrote :

I confirm the bug. It has been resolved in Debian.

Revision history for this message
Massimiliano Agosti (magosti) wrote :

Thank you Milos. I removed hplip and installed the packages hplip-data_3.22.10+dfsg0-2_all.deb , libhpmud0_3.22.10+dfsg0-2_amd64.deb , libjpeg62-turbo_2.1.5-2_amd64.deb , libsane-hpaio_3.22.10+dfsg0-2_amd64.deb , printer-driver-hpcups_3.22.10+dfsg0-2_amd64.deb , hplip_3.22.10+dfsg0-2_amd64.deb downloaded from Debian website and it worked out.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Till, could you check that one? It seems it was fixed in Debian in https://tracker.debian.org/news/1425292/accepted-hplip-32210dfsg0-2-source-into-unstable/ and we would need to SRU the change

Changed in hplip (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
importance: Undecided → High
Revision history for this message
Milos Ivanovic (mivanovic) wrote :

Why is this bug staying unresolved for so long, despite the solution being trivial? I appreciate the hard work of the whole Ubuntu team but IMHO resolving bugs like this is at least as important as the new Snap CUPS agenda.

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.