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

8,963

Solution 1

I know I am kind of late, but maybe it helps someone. Running:

sudo apt install printer-driver-escpr

solved the issue (got the same error message out of nowhere) for my Epson XP-415, under Ubuntu 20.04.

After installation the printer was added automatically (its in the same network) and I was able to print from PDF without any problems.

Solution 2

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.
Share:
8,963

Related videos on Youtube

Erel Segal-Halevi
Author by

Erel Segal-Halevi

I am a faculty member in Ariel University, computer science department. My research topic is Fair Division of Land. It is related to the classic problem of fair cake-cutting, which is a multi-disciplinary topic connecting mathematics, economics and computer science, I am always happy to discuss any topic related to land division or fair cake-cutting. If you have a new idea in these topics and need a partner for brain-storming, feel free to email me at [email protected]. The answers I receive in the Stack Exchange websites are very useful, and I often cite them in papers. See my website for examples.

Updated on September 18, 2022

Comments

  • Erel Segal-Halevi
    Erel Segal-Halevi almost 2 years

    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
    
  • alonso s
    alonso s over 5 years
    Could you elaborate on the second step?
  • Erel Segal-Halevi
    Erel Segal-Halevi over 5 years
    I already elaborated as much as I could..