Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had an HP LaserJet 3030 printer connected to an Ubuntu box. It worked fine with 11.10. I was able to print from Ubuntu as well as from Windows and Mac from the home network.

About a month or so ago, I upgraded 11.10 to 12.04, then things started to falling apart. My Windows 7 laptop couldn't print to the printer any more.

Today, I installed many updates on 12.04, hoping that would fix the printing problem. Unfortunately, it made the situation much worse. Now not only my Windows 7 laptop won't print, my XP desktop won't print either.

Every time I print something from the Windows computer, the Ubuntu box logs an error message in /var/log/samba/log.'machineName' as:

_spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\server.  

It is interesting that it uses the server name as the printer, not the \\server\xyzprinter as the printer name.

Anyone had a similar problem? Anyway to work around the problem?

share|improve this question

I had same problem. The real reason for this problem is that some times a Windows Client has a "ghost port" configured, that's been lost or misconfigured. The clear evidence is that the Windows system is asking the server for a printer without the printer name.

The sollution is simple: go to the Printers and Faxes control panel on Windows Box, remove the offending printer and add it again.

share|improve this answer
If you can, try to add some screen-shot (press the Impr-Pant key) to guide the user what exactly do. – Lucio Nov 30 '12 at 2:23

I know of a Linux fix for HP Printers.


Hopefully that will help you.

share|improve this answer
Thanks for the info. I'll give it a try soon. – G. He Jul 13 '12 at 10:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.