Having worked around for three days, finally I have figured out where the problem lay and I understood Brian's comment. Thank you!!
Ubuntu 18.04 comes with 3-17-10. I was trying to install the latest version 3-19-12. I downloaded hplip-3.17.10.run from https://sourceforge.net/projects/hplip/files/hplip/ and installed hplip-3.17.10-plugin.run during the installation process, which I downloaded beforehand from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
Now HP LaserJet P1102w works fine with Ubuntu 18.04.
Having worked around for three days, finally I have figured out where the problem lay and I understood Brian's comment. Thank you!!
Ubuntu 18.04 comes with 3-17-10. I was trying to install the latest version 3-19-12. I downloaded hplip-3.17.10.run from /sourceforge. net/projects/ hplip/files/ hplip/ 17.10-plugin. run during the installation process, which I downloaded beforehand from /www.openprinti ng.org/ download/ printdriver/ auxfiles/ HP/plugins/
https:/
and installed hplip-3.
https:/
Now HP LaserJet P1102w works fine with Ubuntu 18.04.