HP LaserJet 1018 on Ubuntu 12.04
I had some problem with my Laserjet 1018 after an upgrade to Ubuntu 12.04. To solve it, run as root:
apt-get install hplip
hp-setup
Follow the setup instructions, then reboot.
"Plug-in install failed" error
When I tried to install the printer by launching HP's app from the dock, it crashed with this message eventually. I solved this by launching "hp-setup" as root from the Terminal.