lpstat command gives error "Unable to connect to server: Connection refused" in RHEL

Solution Verified - Updated -

Issue

  • lpstat command gives error "Unable to connect to server: Connection refused"

    # lpstat -a
    lpstat: Unable to connect to server: Connection refused
    
  • Receiving the following error:

    # lpstat -p
    lpstat: Connection refused
    

Environment

  • Red Hat Enterprise Linux (RHEL) 4, 5, 6, 7
  • Common Unix Printing System (CUPS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In