Yes, u r right there is a way ! Don’t need to do all like that. Simply download hplip from HP this is a regular tarball file. And also download hplip-xxxx-plugin.run (xxxx means the version no) this is the main file which helps to overcome this kind of problems. Install the tarball by opening a terminal and pass the commands : ./configure and make then make install
Be aware of dependencies also. U can install it on-line by connecting Internet.
After installation, install the plug in called “hplip-xxxx-plugin.run”.
Remember, unplug the printer from computer before install and of course completely uninstall the printer also.
Reboot and replug the printer and pass the command as root:
hp-setup and install the printer as on-screen instructions.
Remember, the plug in must install to avoid this issue.
Now it never asks for anything wrong !