Bug 2361230 - hp-plugin failed checksum due usage of different hashes and output is not seen after installing plugin
Summary: hp-plugin failed checksum due usage of different hashes and output is not see...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 42
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2363877 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-20 13:50 UTC by John Hardie
Modified: 2025-05-22 02:03 UTC (History)
7 users (show)

Fixed In Version: hplip-3.25.2-3.fc43 hplip-3.25.2-3.fc42 hplip-3.25.2-3.fc41 hplip-3.25.2-4.fc42 hplip-3.25.2-4.fc41
Clone Of:
Environment:
Last Closed: 2025-05-16 02:15:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Error when attempting to install plugin (65.01 KB, image/png)
2025-04-20 13:50 UTC, John Hardie
no flags Details

Description John Hardie 2025-04-20 13:50:35 UTC
Created attachment 2085981 [details]
Error when attempting to install plugin

Description of problem:Fails to download required proprietary plugin for HP p1102w printer


Version-Release number of selected component (if applicable):HPLIP 3.25.2


How reproducible:Using HP Device Manager, select Actions/Install Required Plugin


Steps to Reproduce:
1.
2.
3.

Actual results:Dialog box with error message (see attachment)


Expected results:Plugin should be downloaded and installed.


Additional info:  This works OK on my Fedora 41, does not work on my Fedora 42. The file mentioned in the error message does not exist in either version of Fedora.

Comment 1 Will McDonald 2025-05-03 15:39:21 UTC
https://www.linuxquestions.org/questions/showthread.php?p=6564169#post6564169 indicates a change in the plugin format, obviously the tooling hasn't caught up with that change. The workaround for now is to download the plugin package, unzip and then point hp-setup or hp-plugin at the expanded archive.

More info:

[wmcdonald:~/hp] $ hp-plugin -i
HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1
Enter option (d=download*, p=specify path, q=quit) ? d
error: /home/wmcdonald/.hplip/hplip-3.25.2-plugin.run file does not match its checksum. File may have been corrupted or altered

[wmcdonald:~/hp] $ ll /home/wmcdonald/hp/hplip-3.25.2-plugin.run
-rw-r--r--. 1 wmcdonald wmcdonald 11494026 May  3 16:07 /home/wmcdonald/hp/hplip-3.25.2-plugin.run

[wmcdonald:~/hp] $ hp-plugin -i
HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1

Enter option (d=download*, p=specify path, q=quit) ? p
Enter the path to the 'hplip-3.25.2-plugin.run' file (q=quit) : /home/wmcdonald/hp/hplip-3.25.2-plugin.run

---------------
| COPY PLUGIN |
---------------

Downloading plug-in from: file:///home/wmcdonald/hp/hplip-3.25.2-plugin.run
Downloading plug-in: [\                                                                                                                 ] 0%     
1100%Receiving digital keys: /usr/bin/gpg --homedir /home/wmcdonald/.hplip/.gnupg --no-permission-warning --keyserver keyserver.ubuntu.com --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 
----------------------
| INSTALLING PLUG-IN |
----------------------

<process sits spinning its wheels>

[wmcdonald:~/hp] 53s $ pstree -p | grep hpl
           |               |-gnome-terminal-(41991)-+-bash(42020)---hp-plugin(53685)---sh(53708)---hplip-plugin-in(53786)---python3+

[wmcdonald:~/hp] $ strace -f -p 52564
strace: Process 52564 attached
restart_syscall(<... resuming interrupted poll ...>)

If I download and run the self-extracting plugin directly, this seems to work.

[wmcdonald:~/hp] $ sh ./hplip-3.25.2-plugin.run
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.25.2 Plugin Self Extracting Archive  100%  
HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Installer ver. 3.0
Removing hplip-3.25.2-2.fc42.x86_64 and downgrading to hplip-3.24.4-4 

wmcdonald:~/hp] 7s $ hp-plugin -i
HP Linux Imaging and Printing System (ver. 3.24.4)
Plugin Download and Install Utility ver. 2.1
Enter option (d=download*, p=specify path, q=quit) ? d

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

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                                                                                                 ] 0%     
Receiving digital keys: /usr/bin/gpg --homedir /home/wmcdonald/.hplip/.gnupg --no-permission-warning --keyserver keyserver.ubuntu.com --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 
----------------------
| INSTALLING PLUG-IN |
----------------------

Creating directory plugin_tmp
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.24.4 Plugin Self Extracting Archive  100%  

HP Linux Imaging and Printing System (ver. 3.24.4)
Plugin Installer ver. 3.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.

Plug-in version: 3.24.4
Installed HPLIP version: 3.24.4
Number of files to install: 64

You must agree to the license terms before installing the plug-in:

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
Please enter the sudoer (wmcdonald)'s password: 
 
Done.
 
Done.

Comment 2 Zdenek Dohnal 2025-05-06 10:58:09 UTC
*** Bug 2363877 has been marked as a duplicate of this bug. ***

Comment 3 Zdenek Dohnal 2025-05-06 13:47:28 UTC
Hi all,

this error usually happens if the plugin download does not finish correctly, but this time the issue is somewhere else.

Since 3.25.2, hplip started to use sha256 for hashing checksum in its code - however, plugin.conf from https://hplip.sourceforge.net/plugin.conf , which contains hashed checksum to compare, is hashed with sha1...

Additionally, hp-plugin does not show license and other prompts of downloaded plugin, because hplip started to use python subprocess but did not redirect plugin stdout to terminal stdout...

Comment 4 Will McDonald 2025-05-06 14:04:27 UTC
I don't know if HP have changed their Cloudfront or WAF rules or something, but I couldn't curl the plugin to run manually without faking the User Agent.

$ curl -sA "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0" -o /tmp/hplip-3.25.2-plugin.run  https://developers.hp.com/sites/default/files/2025-04/hplip-3.25.2-plugin.run

In case that datapoint's of any assistance.

Comment 5 Zdenek Dohnal 2025-05-07 08:46:43 UTC
(In reply to Will McDonald from comment #4)
> I don't know if HP have changed their Cloudfront or WAF rules or something,
> but I couldn't curl the plugin to run manually without faking the User Agent.
> 
> $ curl -sA "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0)
> Gecko/20100101 Firefox/54.0" -o /tmp/hplip-3.25.2-plugin.run 
> https://developers.hp.com/sites/default/files/2025-04/hplip-3.25.2-plugin.run
> 
> In case that datapoint's of any assistance.

Great catch about faking User Agent! hp-plugin-download works for me at times, but sometimes I get download error.

Do you think you can come up with PR at https://src.fedoraproject.org/rpms/hplip regarding this? So the backup method is more stable.


Either way, I have revert hash change to pass checksum check, and then fixed subprocess stdout, so user can see subprocess output.

Reported https://bugs.launchpad.net/hplip/+bug/2110100 and https://bugs.launchpad.net/hplip/+bug/2110101 , Fedora fixes will be built in next hours.

Comment 6 Fedora Update System 2025-05-07 08:58:54 UTC
FEDORA-2025-7f9ea47588 (hplip-3.25.2-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7f9ea47588

Comment 7 Fedora Update System 2025-05-07 09:12:44 UTC
FEDORA-2025-b88e7caba6 (hplip-3.25.2-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b88e7caba6

Comment 8 Fedora Update System 2025-05-07 09:23:11 UTC
FEDORA-2025-7f9ea47588 (hplip-3.25.2-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2025-05-07 09:26:25 UTC
FEDORA-2025-9c58dbda00 (hplip-3.25.2-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9c58dbda00

Comment 10 Fedora Update System 2025-05-08 02:22:50 UTC
FEDORA-2025-b88e7caba6 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b88e7caba6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b88e7caba6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-05-08 02:49:16 UTC
FEDORA-2025-9c58dbda00 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9c58dbda00`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9c58dbda00

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2025-05-14 02:29:50 UTC
FEDORA-2025-b88e7caba6 (hplip-3.25.2-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Otto J. Makela 2025-05-14 10:53:08 UTC
Unfortunately this release still seems to suffer from the same checksum matching issue:

tigger:~% uname -a
Linux tigger.extechop.net 6.14.5-300.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May  2 14:16:46 UTC 2025 x86_64 GNU/Linux

tigger:~% rpm -q hplip           
hplip-3.25.2-3.fc42.x86_64

tigger:~% hp-plugin

HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.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.


HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.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.

Checking for network connection...
Downloading plug-in from: 
error: /home/user/.hplip/hplip-3.25.2-plugin.run file does not match its checksum. File may have been corrupted or altered

Done.

Comment 14 Zdenek Dohnal 2025-05-15 06:13:33 UTC
HP changed the checksum in plugin quite fast after my email to them, so the workaround (fallback to old checksum) does not work anymore. I have revert the patch in rawhide, but then got into other matters and forgot to build for stable releases.

Updates will be created today, sorry for the inconvenience.

Comment 15 Fedora Update System 2025-05-15 06:38:58 UTC
FEDORA-2025-1940a2ca3a (hplip-3.25.2-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1940a2ca3a

Comment 16 Fedora Update System 2025-05-15 06:52:40 UTC
FEDORA-2025-c32338d5c5 (hplip-3.25.2-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c32338d5c5

Comment 17 Fedora Update System 2025-05-16 01:35:35 UTC
FEDORA-2025-c32338d5c5 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c32338d5c5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c32338d5c5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2025-05-16 01:57:25 UTC
FEDORA-2025-1940a2ca3a has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1940a2ca3a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1940a2ca3a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2025-05-16 02:15:50 UTC
FEDORA-2025-9c58dbda00 (hplip-3.25.2-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Otto J. Makela 2025-05-21 08:20:03 UTC
Using the command given, the plugin installation from the testing repository succeeds on Fedora 42.

Comment 21 Fedora Update System 2025-05-22 01:48:17 UTC
FEDORA-2025-1940a2ca3a (hplip-3.25.2-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2025-05-22 02:03:40 UTC
FEDORA-2025-c32338d5c5 (hplip-3.25.2-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.