Does running "sudo foomatic-cleanupdriver" help? In that case this can be closed as duplicate of bug 42965 -- Unable to create the Foomatic driver HP LaserJet 4P hpijs https://launchpad.net/bugs/42123