Running "lp*" commands in RHEL results in "Connection refused" or "Transport endpoint not connected"

Solution Verified - Updated -

Issue

  • Running the lpadmin command to try and add a printer results in the following:

    # lpadmin -h localhost -p laser -v lpd://10.1.2.3/xerox_printer
    lpadmin: Unable to connect to server: Connection refused
    
  • Running lpinfo results in the error "Transport endpoint is not connected":

    [root@lnx001 ~]# lpinfo -m
    lpinfo: Transport endpoint is not connected
    
  • Running any CUPS command (lpadmin, lpstat, lp) results in "Connection refused"

Environment

  • Red Hat Enterprise Linux (RHEL), all versions
  • Common Unix Printing System (CUPS), all versions

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.