I had problems with my HP deskjet d1360 in Ubuntu 11.10. To resolve the issue I downloaded the hplip from the HP website. By this a new printer entry was created, which works. Unfortunately the broken entry is still there and is selected as default everytime I print. How to remove the broken entry?
If you looking for a command to delete a printer use this (replace "HPLaserColor" with your printer name to delete):
Go to Applications - system settings - printers. The printer window will now open, in the printer window select unlock in the top right hand corner, type in your password when asked. After you have entered your password you will see the lock button has changed to unlock. Now simply click on the minus sing under the printer. The minus sign is next to the plus sign at the bottom right corner.