Ubuntu 10.04 中 Firefox 无法访问互联网

Ubuntu 10.04 中 Firefox 无法访问互联网

我安装了 Ubuntu 10.04。Firefox 无法访问互联网。它在 10.04 中运行良好。

每次打开 Firefox 时都会发生这种情况。我必须更新内核吗,还有其他方法吗?

答案1

不,您不必更新 Linux 内核。

您必须找出问题的原因,通常这涉及查找错误消息和描述确切的症状。

您可以在命令提示符窗口中使用一些诊断工具。例如。

  sudo ifconfig
  netstat -nr
  host www.google.com
  ping www.google.com
  traceroute www.google.com
  wget www.google.com

您可能需要使用以下方式安装 traceroute

  sudo apt-get install traceroute

以下是这些命令在工作系统上产生的相关摘录

$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:ff:19:60:1a:00
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         10.0.2.2        0.0.0.0         UG        0 0          0 eth0

$ host www.google.com
www.google.com is an alias for www.l.google.com.
www.l.google.com has address 173.194.66.99
www.l.google.com has address 173.194.66.105
www.l.google.com has address 173.194.66.104
www.l.google.com has address 173.194.66.106
www.l.google.com has address 173.194.66.103
www.l.google.com has address 173.194.66.147

$ ping -c 5 www.google.com
PING www.l.google.com (173.194.66.147) 56(84) bytes of data.

--- www.l.google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4000ms

哎呀 - 好的,Google 阻止了 ping,没关系

$ wget www.google.com
--2012-05-18 15:59:51--  http://www.google.com/
Resolving www.google.com... 173.194.66.105, 173.194.66.104, 173.194.66.106, ...
Connecting to www.google.com|173.194.66.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

    [ <=>                                   ] 12,013      --.-K/s   in 0.02s

2012-05-18 15:59:52 (587 KB/s) - `index.html' saved [12013]

相关内容