From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: trying to print from a local epson stylus c60 printer. no response from computer after print command (not even HD indicator! nada!) tried resetting driver (via printconf) but could not print test page, or anything else, thereafter. various diagnostics: # 1 [root@littleman root]# lpr -v Get_local_host: 'localhost' IP address not available! [root@littleman root]# [root@littleman root]# * * * #2 [root@bigboy root]# printconf (printconf:1900): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GObject' (printconf:1900): GLib-GObject-CRITICAL **: file gobject.c: line 972 (g_object_get): assertion `G_IS_OBJECT (object)' failed (printconf:1900): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GObject' (printconf:1900): GLib-GObject-CRITICAL **: file gobject.c: line 972 (g_object_get): assertion `G_IS_OBJECT (object)' failed [root@bigboy root]# * * * 3: [root@bigboy root]# service lpd restart Stopping lpd: [FAILED] Starting lpd: 2003-02-01-20:29:40.179 bigboy Get_local_host: 'localhost' IP address not available! [ OK ] [root@bigboy root]# * * * 4: [root@bigboy root]# lpr Get_local_host: 'localhost' IP address not available! [root@bigboy root]# * * * hope that helps. -ja Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.try to print from anywhere 2.nothing happens 3.various workarounds fail (see above) Additional info:
LPRng requires that you can resolve the host 'localhost' (to 127.0.0.1). You need to either add an entry to /etc/hosts, or sort it out with redhat-config-network. There should have been an appropriate entry in /etc/hosts already. Did you change /etc/hosts or /etc/resolv.conf after installing?
here's the rub: the "localhost" comes from the default installation host when I installed RHL 8.0. I since changed the name to fit my machine onto a home network. (New hostname is "littleman" on local domain "homespun".) the program does not seem to have recognized that I changed the host/domain. now i have gone back into /etc/hosts and added an entry: 127.0.0.1 localhost.localdomain local loopback but that does not seem to have changed anything. I am still getting that lpr status message: [jaquino@littleman jaquino]$ lpr status Get_local_host: 'localhost' IP address not available! And my /etc/resolv.conf entry is search localdomain nameserver 207.69.188.186 nameserver 207.69.188.185 what am i doing wrong here? (thanks for the rapid response!) -ja
You've changed /etc/hosts. On the line with 127.0.0.1 in /etc/hosts, you *must* leave "localhost.localdomain localhost"