When trying to configure Cups for my HP DeskJet 940C printer using the latest Cups with the Latest hpijs version 1.4.1 I received the error that the driver file for the printer was corrupte or broken. When I looked at the driver, it is pointing to nothing. Reproducible: Always Steps to Reproduce: 1.foomatic-configure -s cups -p HP-DeskJet 940C -c file:/dev/lp0 -n Kitty -d HP-DeskJet 940C 2. 3. Actual Results: Returns error that the driver is broken or corrupt. Expected Results: Should have configured the printer.
This is the output I get when trying to configure cups for my printer a HP-DeskJet 940C using the latest version 1.4.1 of hpijs. bash-2.05b$ su - Password: kitty root # foomatic-configure -s cups -p HP-DeskJet_940C -c file:/dev/lp0 -n Kitty -d HP-DeskJet 940C Cannot read file /usr/share/foomatic/db/source/driver/HP-DeskJet.xml! Driver file /usr/share/foomatic/db/source/driver/HP-DeskJet.xml corrupted, missing, or not readable! Could not run "foomatic-combo-xml"/"foomatic-perl-data"! at /usr/lib/perl5/vendor_perl/5.8.0/Foomatic/DB.pm line 509. kitty root #
this is no breakage in hpijs or foomatic, please read the printing manual more carefull the next time, here is how the command should be for your printer: foomatic-configure -s cups -p HP-DeskJet_940C -c file:/dev/lp0 -n Kitty -d hpijs
Thank you for the correct script to configure the printer. I think the printer how to then needs to be update, as my reading of it did not lead me to change the driver name to hpijs, but lead me to the print driver being named HP-DeskJet 940c. Also the printer how to leads one to open a browser to go to http://localhost:631/admin to add the printer this step is not needed. Thanks for your speedy response. Ralph