Bug 76128 - Can't resolve 'localhost'
Can't resolve 'localhost'
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: anaconda (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Michael Fulbright
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-17 04:53 EDT by Need Real Name
Modified: 2007-04-18 12:47 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-10-17 07:47:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Not sure (493 bytes, text/plain)
2002-10-17 06:30 EDT, Need Real Name
no flags Details
hosts (152 bytes, text/plain)
2002-10-17 07:39 EDT, Need Real Name
no flags Details

  None (edit)
Description Need Real Name 2002-10-17 04:53:02 EDT
Description of Problem:

Can't print a test page from printconf gui


Version-Release number of selected component (if applicable):

printconf-gui 0.4.24

How Reproducible:

Always

Steps to Reproduce:
1. Start terminal
2. Log in a su and enter command printconf &
3. Test> <Print a test page type>

Actual Results:
"There was an error trying to print the test page."

Expected Results:
Should print a test page

Additional Information:
When starting printconf in term as su, the following error message is dumped in
the term window:
(printconf:1867): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to
`GObject'

(printconf:1867): GLib-GObject-CRITICAL **: file gobject.c: line 972
(g_object_get): assertion `G_IS_OBJECT (object)' failed

(printconf:1867): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to
`GObject'

(printconf:1867): GLib-GObject-CRITICAL **: file gobject.c: line 972
(g_object_get): assertion `G_IS_OBJECT (object)' failed

I am also on a cable modem. 	

I cannot print from other means either

I setup my HPLJ 1100 as per stated on the redhat website explaining installs for
local printers (my printer is locally connected via parallel)
Comment 1 Tim Waugh 2002-10-17 04:58:15 EDT
What does 'alternatives --display print' say?  Also please attach
/etc/alchemist/namespace/printconf/local.adl.  Thanks.
Comment 2 Need Real Name 2002-10-17 06:30:36 EDT
Created attachment 80764 [details]
Not sure
Comment 3 Need Real Name 2002-10-17 06:31:23 EDT
[root@dhcp-813-225 root]# alternatives --display print
print - status is auto.
 link currently points to /usr/bin/lpr.LPRng
/usr/bin/lpr.LPRng - priority 30
 slave print-lprman: /usr/share/man/man1/lpr-LPRng.1.gz
 slave print-lp: /usr/bin/lp.LPRng
 slave print-lpman: /usr/share/man/man1/lp-LPRng.1.gz
 slave print-lpq: /usr/bin/lpq.LPRng
 slave print-lpqman: /usr/share/man/man1/lpq-LPRng.1.gz
 slave print-lprm: /usr/bin/lprm.LPRng
 slave print-lprmman: /usr/share/man/man1/lprm-LPRng.1.gz
 slave print-lpstat: /usr/bin/lpstat.LPRng
 slave print-lpstatman: /usr/share/man/man1/lpstat-LPRng.1.gz
 slave print-cancel: /usr/bin/cancel.LPRng
 slave print-cancelman: /usr/share/man/man1/cancel-LPRng.1.gz
 slave print-lpc: /usr/sbin/lpc.LPRng
 slave print-lpcman: /usr/share/man/man8/lpc-LPRng.8.gz
Current `best' version is /usr/bin/lpr.LPRng.
Comment 4 Tim Waugh 2002-10-17 06:33:49 EDT
After trying to print the test page, please do 'lpq' and look for a file called
/var/spool/lpd/HPJ/lpq.0.  Are there any useful error messages in there?
Comment 5 Need Real Name 2002-10-17 06:52:26 EDT
No file lpq.0 but instead this error message dumped into term
[root@dhcp-813-225 HPJ]# lpq
Get_local_host: 'localhost' IP address not available!

Thanking you in advance
Comment 6 Tim Waugh 2002-10-17 07:21:03 EDT
You need to be able to resolve 'localhost'.  The installer ought to have sorted
this out.  Changing component.
Comment 7 Tim Waugh 2002-10-17 07:21:47 EDT
Reassigning.
Comment 8 Need Real Name 2002-10-17 07:27:27 EDT
using optus@home in australia if that helps. It is a cable modem service
Comment 9 Tim Waugh 2002-10-17 07:29:11 EDT
No, it should be 127.0.0.1, and doesn't need an external network connection. 
What's in /etc/hosts?
Comment 10 Need Real Name 2002-10-17 07:39:41 EDT
Created attachment 80766 [details]
hosts
Comment 11 Tim Waugh 2002-10-17 07:42:08 EDT
And you didn't edit that?
Comment 12 Need Real Name 2002-10-17 07:47:10 EDT
I had to o/w i'd get an error message on startup telling me to enter dhcp871-335
in /etc/hosts. It couldn't resolve a host.
Comment 13 Tim Waugh 2002-10-17 07:51:17 EDT
You should change it back.  Use redhat-config-network to configure your DNS
servers (provided by the ISP).
Comment 14 Need Real Name 2002-10-17 08:08:00 EDT
what wsa the original entry? 
the only thing i changed was the ending of the /etc/hosts file. What was the
last entry on the line? Or the original one?

Note You need to log in before you can comment on or make changes to this bug.