最新版ubundu无法上网了

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

最新版ubundu无法上网了

#1

帖子 yes9981 » 2010-11-20 15:24

:em09 问题仍未解决,等候你的帮助!
(为节省时间新来的朋友请从26楼往下看,但请不要无声无息地离开哟 :em09

我上星期安装了最新版ubundu,开始一个星期用得好好的,后来因为闲得无聊,东搞搞西搞搞的(也记得弄了什么),还装了个叫firestarter的防火墙!结果只能在管理员用户上网了,

我决心把它修好,

我试过的方法:

1于是把防火墙卸掉了,现在彻底不能上网了
2 sudo gedit /etc/network/interfaces
修改文件/etc/network/interfaces如下文
auto lo
  iface lo inet loopback
  auto eth0
  iface eth0 inet dhcp

  $ sudo /etc/init.d/networking restart
结果:

vicin@vicin-Compaq-Presario-CQ40-Notebook-PC:~$ sudo /etc/init.d/networking restart

* Reconfiguring network interfaces... /etc/rc.firewall: line 364: warning: setlocale: LC_ALL: cannot change locale (US)

/etc/rc.firewall: line 436: warning: setlocale: LC_ALL: cannot change locale (US)

/etc/rc.firewall: line 480: warning: setlocale: LC_ALL: cannot change locale (US)

There is already a pid file /var/run/dhclient.eth0.pid with pid 3982

killed old client process, removed PID file

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/



Listening on LPF/eth0/00:26:22:b2:59:c7

Sending on LPF/eth0/00:26:22:b2:59:c7

Sending on Socket/fallback

DHCPRELEASE on eth0 to 192.168.1.1 port 67

send_packet: Operation not permitted

Internet Systems Consortium DHCP Client V3.1.3

Copyright 2004-2009 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/



Listening on LPF/eth0/00:26:22:b2:59:c7

Sending on LPF/eth0/00:26:22:b2:59:c7

Sending on Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3

DHCPOFFER of 192.168.1.100 from 192.168.1.1

DHCPREQUEST of 192.168.1.100 on eth0 to 255.255.255.255 port 67

DHCPACK of 192.168.1.100 from 192.168.1.1

mv: cannot move `/etc/resolv.conf.dhclient-new' to `/etc/resolv.conf': Operation not permitted

bound to 192.168.1.100 -- renewal in 3221 seconds.

/etc/rc.firewall: line 364: warning: setlocale: LC_ALL: cannot change locale (US)

/etc/rc.firewall: line 436: warning: setlocale: LC_ALL: cannot change locale (US)

/etc/rc.firewall: line 480: warning: setlocale: LC_ALL: cannot change locale (US)

[ OK ]

vicin@vicin-Compaq-Presario-CQ40-Notebook-PC:~$

-----------------------------------------
请教高手如何解决?
上次由 yes9981 在 2010-11-28 9:24,总共编辑 2 次。
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: 最新版ubundu无法上网了

#2

帖子 hiphen » 2010-11-21 15:50

case有点复杂,sorry,没时间帮你细看
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#3

帖子 yes9981 » 2010-11-21 17:22

hiphen 写了:case有点复杂,sorry,没时间帮你细看
:em06
既然“case有点复杂”就不是“基础问题”了,拜托帮我看看吧
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#4

帖子 yes9981 » 2010-11-23 9:01

:em09 到现在为止已经有70个人看了此贴啦 :em20
这里到底有没有所谓的“乐于助人”的所谓的“高手”? :em04
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 最新版ubundu无法上网了

#5

帖子 lainme » 2010-11-23 13:36

看一下firestarter的配置文件是不是没有删干净
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#6

帖子 yes9981 » 2010-11-23 13:39

具体怎样
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 最新版ubundu无法上网了

#7

帖子 lainme » 2010-11-23 14:09

系统——系统管理——新立得,左下角选“状态”,点击“未安装(残存配置)”,看看firestarter是不是还有残余,如果有右键选择“标记以便彻底删除”,然后应用。
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#8

帖子 yes9981 » 2010-11-23 23:32

还是不行 :em20
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#9

帖子 yes9981 » 2010-11-23 23:35

最好是像windows一样还原到某个安装点就好了,不知linux下有没有这样的命令?
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#10

帖子 yes9981 » 2010-11-23 23:53

我想问题的关键是这两句
* Reconfiguring network interfaces... /etc/rc.firewall: line 364: warning: setlocale: LC_ALL: cannot change locale (US)
There is already a pid file /var/run/dhclient.eth0.pid with pid 3982
killed old client process, removed PID file
译文:(1)不能设定LC_ALL后的语言(这里我知是用sudo locale-gen但还是不行,不知哪里出错了)
(2)不能终止旧的进程,请删除/var/run/目录下的dhclient.eth0.pid这个文件
(这里我在/var/run/目录下找不到dhclient.eth0.pid这个文件)
请问如何用命令实现这两点 :em06
上次由 yes9981 在 2010-11-24 9:01,总共编辑 1 次。
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#11

帖子 yes9981 » 2010-11-24 8:53

今天上午谁在线讲一下?可以加我的QQ363748113或者飞信15819146368
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 最新版ubundu无法上网了

#12

帖子 lainme » 2010-11-24 10:35

不知道你是不是还装了别的网络工具,guarddog看起来有这个问题

https://bugs.launchpad.net/ubuntu/+sour ... bug/435144

interfaces文件只保留这两条,DHCP通过network-manager(右上角的网络图标)来设置

auto lo
iface lo inet loopback

看一下/etc/init.d/networking里面是否有/etc/rc.firewall的项。不知道把这个删掉在清理一下iptables规则行不
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#13

帖子 yes9981 » 2010-11-24 11:06

的确用过guarddog,不过早就已经卸载了,不能上网是卸载了firestarter后引起的,你提供的网页链接所说的问题和我的差不多,但一样也没有提供解决办法
上次由 yes9981 在 2010-11-24 11:56,总共编辑 3 次。
yes9981
帖子: 19
注册时间: 2010-11-17 10:08

Re: 最新版ubundu无法上网了

#14

帖子 yes9981 » 2010-11-24 11:08

后面部分能否详细一点?如果/etc/init.d/networking里面是有/etc/rc.firewall的项。如何把这个删掉(我要删除某个文件总提示我不是root用户,在命令栏输入了su或者sudo -i都不管用),
又如何清理一下iptables规则?
以下这2个语句行了吧?
iptables -F
iptables -Z
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 最新版ubundu无法上网了

#15

帖子 lainme » 2010-11-24 13:33

那再看看guarddog的配置文件删掉没,编辑用这个

sudo gedit /etc/init.d/networking

iptables的再加一句

sudo iptables -X

其它两个也要加sudo运行

-----------------------------------------------------------------------------------
另外使用NM来管理网络吧
回复