Running "lp*" commands in RHEL results in "Connection refused" or "Transport endpoint not connected"
Issue
-
Running the
lpadmincommand 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
lpinforesults 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
