Ubuntu – error: Failed to create /var/spool/cups/tmp/.hplip

hplipprinting

Whenever I try to print to an HP printer, I get a "Filter Failed" notice near the printer. "sudo service cups status" shows the following error message:

error: Failed to create /var/spool/cups/tmp/.hplip

How can I fix this?

EDIT:

$ sudo namei -l /var/spool/cups/tmp/.hplip

returns:

f: /var/spool/cups/tmp/.hplip
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root spool
drwx--x--- root lp   cups
drwxrwx--T root lp   tmp
drwxr-xr-x lp   lp   .hplip

Best Answer

  • This is the solution that worked for me:

    1. Reinstall hplip:
    sudo apt remove hplip
    sudo apt install hplip
    
    1. Reinstall the printer from the command line (not from the Printers GUI):
    hp-setup -i
    n (=network printer)
    d (=download driver)
    
    1. Remove the old printer from the Printers GUI.
  • Related Question