kcm_knetworkconfmodule adds hostname to 127.0.0.1 line

Bug #66813 reported by Ernst Kloppenburg
12
Affects Status Importance Assigned to Milestone
kdeadmin (Ubuntu)
Fix Released
Critical
Luka Renko

Bug Description

Hello,

I installed kubuntu from CD on PC. There is no dhcp-server in the net. Therefore, after installation I use K->SystemSettings-> NetworkSettings to set an IP for the network interface eth0.

Before I do this the first lines of /etc/hosts looks like
127.0.0.1 localhost
127.0.1.1 mychosenhostname

After using kcm_knetworkconfmodule the first line is changed to
127.0.0.1 localhost mychosenhostname

This is very bad as it causes hplip to not work. The symptom is the following error message at boot time: "hpiod: Rejected connection from 192.168.0.4"

In order to make hplip work properly I had to revert the change in the first line of /etc/hosts and add a line
192.168.0.4 mychosenhostname

A very bad thing as the malfunction of hplip not only
does not detect any printers, but any scanning application hangs indefinitely as it tries to contact hplip.

Solving this problem required a lot of system knowledge on my side, not available to any ordinary user. So a severe quality problem.

Installation cds need to be fixed because when you upgrade to a fixed knetworkconf later it is too late.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fix has to be done in knetworkconf and not in HPLIP, as

127.0.0.1 localhost mychosenhostname

is not correct, it should be

127.0.0.1 localhost
192.168.0.4 mychosenhostname

But I think this is a severe problem. We should try to fix it in Edgy.

Changed in knetworkconf:
importance: Undecided → Critical
Revision history for this message
Luka Renko (lure) wrote :

I confirmed this on clean Kubuntu RC install.

Changed in kdeadmin:
status: Unconfirmed → Confirmed
Luka Renko (lure)
Changed in kdeadmin:
assignee: nobody → lure
Revision history for this message
Luka Renko (lure) wrote :

Perl backend script always adds hostname to the localhost. I have changed this script now to just use "localhost" and actually remove hostname as alias from localhost entry (this will fix it for users that will upgrade on first use of knetworkconf).

See attached debdiff.

Revision history for this message
Luka Renko (lure) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Where is the attachment?

Make sure that the "Include attachment" check box is checked.

Revision history for this message
Jonathan Riddell (jr) wrote :

uploaded

Changed in kdeadmin:
status: Confirmed → Fix Committed
Revision history for this message
Luka Renko (lure) wrote :

Fix released with knetworkconf 4:3.5.5-0ubuntu2

Changed in kdeadmin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.