HP Printer

Installed fedora silverblue and unable to setup hp printer even after downloading the plugin from hp website it says
/usr/share/hplip/firmware/filename not found as there is no such file there
install faild

Hmmm
This may be an issue with any of the immutable systems since parts of the file system for the OS are not writable. The plugin is required for using the scanner on an MFP from HP but is not needed otherwise.

I do not use silverblue so am not familiar with the portions of the file system that are writable and the ones that are not.

However, on my F39 Workstation I would note that there is no such directory as /usr/share/hplip/firmware. I wonder exactly where you are getting that message since it would appear that hplip does not create that directory.

If setting up the printer from the command line you would use the command
hp--setup which leads you through configuring the printer and also to install the plugin. I have never seen it ask for such a file nor have I seen that directory ever created. I have used hplip with my printer for at least 8 years.

If installing the plugin directly the command is hp-plugin which will download and install the plugin for you.

If using the gui (hplip-gui package) it does the same and gives you management options as well.

# ls /usr/share/hplip
align.py         config_usb_printer.py  fab.py          hpssd.py        makecopies.py     prnt        setup.py     uiscan.py
base             copier                 fax             info.py         makeuri.py        probe.py    systray.py   unload.py
check-plugin.py  data                   faxsetup.py     __init__.py     plugin.py         query.py    testpage.py  wificonfig.py
check.py         devicesettings.py      firmware.py     installer       plugin.spec       scan        timedate.py
clean.py         diagnose_plugin.py     hpdio.py        levels.py       print.py          scan.py     toolbox.py
colorcal.py      diagnose_queues.py     hplip_clean.sh  linefeedcal.py  printsettings.py  sendfax.py  ui5

The directories there are base – copier – fax – data – installer – prnt – scan – & ui5

In fact, I just did a setup of my printer on my f40 test bed and it configured cleanly, installed the plugin, and printed the test page with no problems at all.

In other words, it would appear that message is not valid for either f39 or f40 using hplip.

Are you by chance trying to use a flatpak for hplip?

@fedora:~$ hp-setup -i

HP Linux Imaging and Printing System (ver. 3.23.12)
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)
  2         par         Parallel Port (LPT:)                                      

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

Using connection type: usb

 
Setting up device: hp:/usb/HP_LaserJet_P1007?serial=NC0T0R2



------------------------
| PLUG-IN INSTALLATION |
------------------------


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

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


------------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.23.12 |
------------------------------------------

  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) ? 

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

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                                                                                                                                                                                 ] 0%     
Plugin is not accessible. Trying to download it from fallback location: [https://developers.hp.com/sites/default/files/hplip-3.23.12-plugin.run]
Receiving digital keys: /usr/bin/gpg --homedir /var/home/harsha/.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.23.12 Plugin Self Extracting Archive  100%  

HP Linux Imaging and Printing System (ver. 3.23.12)
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.23.12
Installed HPLIP version: 3.23.12
Number of files to install: 64

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

LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in                                                                                                                                                                        


These License Terms govern your Use of the HPLIP Driver Plug-in Software (the "Software"). USE OF THE SOFTWARE INCLUDING, WITHOUT LIMITATION, ANY DOCUMENTATION, IS SUBJECT TO THESE LICENSE TERMS AND THE APPLICABLE AS-IS WARRANTY          
STATEMENT. BY DOWNLOADING AND INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THESE TERMS. IF YOU DO NOT AGREE TO ALL OF THESE TERMS, DO NOT DOWNLOAD AND INSTALL THE SOFTWARE ON YOUR SYSTEM.                                       


1. License Grant. HP grants you a license to Use one copy of the Software with HP printing products only. "Use" includes using, storing, loading, installing, executing, and displaying the Software. You may not modify the Software or      
disable any licensing or control features of the Software.                                                                                                                                                                                    


2. Ownership. The Software is owned and copyrighted by HP or its third party suppliers. Your license confers no title to, or ownership in, the Software and is not a sale of any rights in the Software. HP's third party suppliers may       
protect their rights in the Software in the event of any violation of these license terms.                                                                                                                                                    


3. Copies and Adaptations. You may only make copies or adaptations of the Software for archival purposes or when copying or adaptation is an essential step in the authorized Use of the Software. You must reproduce all copyright notices in
the original Software on all copies or adaptations. You may not copy the Software onto any public network.                                                                                                                                    


4. No Disassembly. You may not Disassemble the Software unless HP's prior written consent is obtained. "Disassemble" includes disassembling, decompiling, decrypting, and reverse engineering. In some jurisdictions, HP's consent may not be 
required for limited Disassembly. Upon request, you will provide HP with reasonably detailed information regarding any Disassembly.                                                                                                           


5. No Transfer. You may not assign, sublicense or otherwise transfer all or any part of these License Terms or the Software.                                                                                                                  


6. Termination. HP may terminate your license, upon notice, for failure to comply with any of these License Terms. Upon termination, you must immediately destroy the Software, together with all copies, adaptations and merged portions in  
any form.                                                                                                                                                                                                                                     


7. Export Requirements. You may not export or re-export the Software or any copy or adaptation in violation of any applicable laws or regulations.                                                                                            


8. U.S. Government Restricted Rights. The Software has been developed entirely at private expense. It is delivered and licensed, as defined in any applicable DFARS, FARS, or other equivalent federal agency regulation or contract clause,  
as either "commercial computer software" or "restricted computer software", whichever is applicable. You have only those rights provided for such Software by the applicable clause or regulation or by these License Terms.                  


9. DISCLAIMER OF WARRANTIES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, HP AND ITS SUPPLIERS PROVIDE THE SOFTWARE "AS IS" AND WITH ALL FAULTS, AND HEREBY DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED, OR   
STATUTORY, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF TITLE AND NON-INFRINGEMENT, ANY IMPLIED WARRANTIES, DUTIES OR CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE, AND OF LACK OF VIRUSES ALL WITH REGARD TO THE       
SOFTWARE. Some states/jurisdictions do not allow exclusion of implied warranties or limitations on the duration of implied warranties, so the above disclaimer may not apply to you in its entirety.                                          


10. LIMITATION OF LIABILITY. Notwithstanding any damages that you might incur, the entire liability of HP and any of its suppliers under any provision of this agreement and your exclusive remedy for all of the foregoing shall be limited  
to the greater of the amount actually paid by you separately for the Software or U.S. $5.00. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL HP OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,                  
INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS OR CONFIDENTIAL OR OTHER INFORMATION, FOR BUSINESS INTERRUPTION, FOR PERSONAL INJURY, FOR LOSS OF PRIVACY ARISING OUT OF OR IN ANY  
WAY RELATED TO THE USE OF OR INABILITY TO USE THE SOFTWARE, OR OTHERWISE IN CONNECTION WITH ANY PROVISION OF THIS AGREEMENT, EVEN IF HP OR ANY SUPPLIER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND EVEN IF THE REMEDY FAILS OF   
ITS ESSENTIAL PURPOSE. Some states/jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you.                                                  

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
Please enter the sudoer (harsha)'s password: 
Plugin installation failed
error: Plugin installation failed

Done.
 
Done.

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


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

Found PPD file: drv:///hp/hpcups.drv/hp-laserjet_p1007.ppd
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:/usb/HP_LaserJet_P1007?serial=NC0T0R2
Queue name: HP_LaserJet_P1007
PPD file: drv:///hp/hpcups.drv/hp-laserjet_p1007.ppd
Location: 
Information: 

HP Linux Imaging and Printing System (ver. 3.23.12)
System Tray Status Service ver. 2.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.

QSocketNotifier: Can only be used with threads started with QThread
QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*)
error: Firmware file '/usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz' not found.
error: Firmware download is Failed.


---------------------
| 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.23.12)
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.

Printing test page to printer HP_LaserJet_P1007...
Test page has been sent to printer.

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.

Done.

This is the result after hp-setup -i

tldr error: Plugin installation failed

rpm -qa|grep hplip result in

hplip-common-3.23.12-6.fc40.x86_64
hplip-libs-3.23.12-6.fc40.x86_64
hplip-3.23.12-6.fc40.x86_64
hplip-gui-3.23.12-6.fc40.x86_64
@fedora:~$ ls /usr/share/hplip/
align.py         check.py     config_usb_printer.py  devicesettings.py   fab.py       firmware.py     hpssd.py     installer       makecopies.py  print.py          probe.py  scan.py     systray.py   toolbox.py  unload.py
base             clean.py     copier                 diagnose_plugin.py  fax          hpdio.py        info.py      levels.py       makeuri.py     printsettings.py  query.py  sendfax.py  testpage.py  ui5         wificonfig.py
check-plugin.py  colorcal.py  data                   diagnose_queues.py  faxsetup.py  hplip_clean.sh  __init__.py  linefeedcal.py  plugin.py      prnt              scan      setup.py    timedate.py  uiscan.py
@fedora:~$ ls /usr/share/hplip/data/
images  ldl  localization  models  pcl  ps

I see that message and the path is different than you initially reported.

It is very important that when reporting a problem that all the details are provided so there is no confusion as to what is happening.

On my system the file is there.
Workstation f39 & F40 it works.

Apparently it does not on Silverblue.

This probably should be reported as a bug against hplip on silverblue.