Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-26-2003, 07:50 AM   #1
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Rep: Reputation: 16
lp filename yields "cannot open connection to localhost - Connection refused"

I am using CUPS on Slackware. When I try to print from a shell, using lp or lpr, I get:

cannot open connection to localhost - Connection refused
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry

But localhost is reachable (ping and telnet work). I can also print from KDE applications, but not from shell!
Old 11-26-2003, 08:35 AM   #2
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Is it one specific file, or any file that you try to print from a shell? Also, I have had problems in the past when I have had the lpd service started and CUPS didn't you may want to verify that.

Old 11-26-2003, 08:39 AM   #3
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Original Poster
Rep: Reputation: 16
it happens with any (printable) file from my home dir.
Old 12-29-2003, 12:02 AM   #4
LQ Newbie
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
Most likely you also installed lprng when you installed CUPS in Slackware. Run removepkg on the lprng package (see /var/log/packages to see if you have installed the lprng package). If it's there, that is probably the problem. After you have removed lprng, you will probably need to reinstall CUPS and perhaps reinstall your printer again. Under CUPS, lpr is a symbolic link to lpr-cups. If you have installed lprng on top of CUPS, the symbolic link doesn't exist and you are actually running the lpr that is part of lprng rather than lpr-cups.

Good luck!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 02:27 PM
"Connection refused by localhost..." but why? anindyanuri Linux - Networking 2 03-18-2005 12:30 PM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 08:23 AM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 08:49 AM
"connection refused" on port 993, when not coming from localhost spam4scott Linux - Networking 2 07-14-2003 07:35 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration