Originally Posted by
issih
You could try:
sudo /etc/init.d/networking restart
which should restart the networking daemons...
Might work
Didn't work. A long post of logs follows. If anyone can suggest what's going wrong, I'd appreciate it.
Code:
pballard@sirboris:~$ ping yahoo.com
C-c C-c
pballard@sirboris:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.wlan0.pid with pid 7797
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.0.1 port 67
addr=192.168.0.156, name=
Updating databases ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Updating Makefile ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Updating sendmail.cf ...
Updating auth ...
sasl2-bin not installed, not configuring sendmail support.
To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
Creating /etc/mail/relay-domains
# Optional file...
The following file(s) have changed:
/etc/mail/sendmail.cf
** ** You should issue `/etc/init.d/sendmail reload` ** **
* Reloading Mail Transport Agent (MTA) sendmail
...done.
There is already a pid file /var/run/dhclient.wlan0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.0.156 from 192.168.0.1
DHCPREQUEST of 192.168.0.156 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.156 from 192.168.0.1
bound to 192.168.0.156 -- renewal in 33 seconds.
...done.
... but I still had no connectivity. If you look back you'll see that it asked me to run "/etc/init.d/sendmail reload", so...
Code:
sirboris:~$ sudo /etc/init.d/sendmail reload
[sudo] password for pballard:
* Reloading Mail Transport Agent (MTA) sendmail
...done.
But it made no difference:
Code:
pballard@sirboris:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.wlan0.pid with pid 8686
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.0.1 port 67
addr=192.168.0.156, name=
Updating databases ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Updating Makefile ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Updating sendmail.cf ...
Updating auth ...
sasl2-bin not installed, not configuring sendmail support.
To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
Creating /etc/mail/relay-domains
# Optional file...
The following file(s) have changed:
/etc/mail/sendmail.cf
** ** You should issue `/etc/init.d/sendmail reload` ** **
* Reloading Mail Transport Agent (MTA) sendmail
...done.
There is already a pid file /var/run/dhclient.wlan0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.0.156 from 192.168.0.1
DHCPREQUEST of 192.168.0.156 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.156 from 192.168.0.1
bound to 192.168.0.156 -- renewal in 32 seconds.
...done.
... still no internet connectivity.
Figuring perhaps sendmail was my problem, I uninstalled sendmail, rebooted and tried again...
Code:
pballard@sirboris:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.wlan0.pid with pid 6026
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPRELEASE on wlan0 to 192.168.0.1 port 67
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 28: /usr/share/sendmail/dynamic: No such file or directory
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 31: update_interface: command not found
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 46: update_sendmail: command not found
.: 44: Can't open /usr/share/sendmail/dynamic
run-parts: /etc/network/if-up.d/sendmail exited with return code 2
There is already a pid file /var/run/dhclient.wlan0.pid with pid 134519072
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/wlan0/00:1c:f0:0a:55:91
Sending on LPF/wlan0/00:1c:f0:0a:55:91
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPOFFER of 192.168.0.156 from 192.168.0.1
DHCPREQUEST of 192.168.0.156 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.156 from 192.168.0.1
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 28: /usr/share/sendmail/dynamic: No such file or directory
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 31: update_interface: command not found
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 40: update_host: command not found
/etc/dhcp3/dhclient-exit-hooks.d/sendmail: line 46: update_sendmail: command not found
bound to 192.168.0.156 -- renewal in 34 seconds.
.: 44: Can't open /usr/share/sendmail/dynamic
run-parts: /etc/network/if-up.d/sendmail exited with return code 2
...done.
So uninstall of sendmail didn't work properly. It's hard to tell if my problem is because Ubuntu screwed up the uninstall of sendmail, or whether that screwup is unrelated to the fact that it can't connect to the internet reliably.
Bookmarks