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.
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.
*** Bug 2363877 has been marked as a duplicate of this bug. ***
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...
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.
(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.
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
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
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.
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
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.
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.
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.
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.
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.
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
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
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.
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.
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.
Using the command given, the plugin installation from the testing repository succeeds on Fedora 42.
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.
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.