14.04 “启用 Wifi”选项消失,已连接有线网络但无法上网

14.04 “启用 Wifi”选项消失,已连接有线网络但无法上网

我对 Ubuntu 还算是个新手,在网络方面肯定没有经验,在网上搜索了几个小时的解决方案后,我还是找不到如何解决我的问题。我希望有人能帮助我,因为这很紧急,也很令人沮丧 XD

正如标题所述,在网络管理器任务栏图标下,“启用 Wifi”选项已完全消失。“启用网络”选项在那里,但即使弹出窗口显示我“已连接到有线连接 1”,我也无法访问互联网。该机器与 Windows 10 双重启动,可自动连接到 Wifi 并可以与互联网建立有线连接。这让我相信存在驱动程序问题,但我不知道。我不是在这里安装 Ubuntu 14.04 的人,所以我不知道是否安装了第三方驱动程序等。

以下是我见过的一些常见的命令输出和文件内容,如果我遗漏了其他内容,请告诉我:

系统信息,因为 AskUbuntu 还不允许我嵌入图片

$ ifconfig

eth0      Link encap:Ethernet  HWaddr 30:9c:23:25:cb:11  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 Memory:df200000-df220000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:10085 (10.0 KB)  TX bytes:10085 (10.0 KB)

$ route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

路由 -n 的输出是空的,因此显然那里有问题。

/etc/resolve/conf 和 /etc/resolvconf/resolv.conf.d/head 的内容:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

再说了,它是空的,所以那里也有问题。

$ ping -c4 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.047 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.033 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.037 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.031 ms

--- localhost ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.031/0.037/0.047/0.006 ms

$ ping 8.8.8.8
connect: Network is unreachable

$ ping google.com
ping: unknown host google.com

$ sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: eth0
       version: 00
       serial: 30:9c:23:25:cb:11
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.8-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:131 memory:df200000-df21ffff

/var/lib/NetworkManager/NetworkManager.state 的内容

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

我尝试了以下方法:

  1. sudo 服务网络管理器停止/启动/重启
  2. killall unity-panel-service
  3. 在/usr/lib/unity/unity-panel-service
  4. sudo rfkill 解除所有阻止
  5. sudo dpkg-重新配置 resolvconf

而且我可能还尝试过更多。

如果有人有任何建议,我将不胜感激。谢谢!

-缺口

更新 1

设置静态IP后:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 30:9c:23:25:cb:11  
          inet addr:192.168.86.181  Bcast:192.168.86.255  Mask:255.255.255.0
          inet6 addr: fe80::329c:23ff:fe25:cb11/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6820 errors:0 dropped:2 overruns:0 frame:0
          TX packets:363 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:670993 (670.9 KB)  TX bytes:55189 (55.1 KB)
          Interrupt:16 Memory:df200000-df220000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:282394 (282.3 KB)  TX bytes:282394 (282.3 KB)

lsmod 返回的信息如下:

$ lsmod
Module                  Size  Used by
uas                    24576  0 
usb_storage            69632  1 uas
bnep                   20480  2 
rfcomm                 69632  0 
nvidia_uvm            647168  0 
nvidia_drm             45056  1 
nvidia_modeset        860160  4 nvidia_drm
binfmt_misc            20480  1 
nvidia              13144064  189 nvidia_modeset,nvidia_uvm
joydev                 20480  0 
input_leds             16384  0 
snd_hda_codec_realtek    90112  1 
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
i915_bpo             1306624  0 
snd_hda_codec_hdmi     53248  1 
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
snd_hda_intel          40960  5 
snd_hda_codec         135168  4     snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5     snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               106496  4
snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
hci_uart               77824  0 
intel_rapl             20480  0 
x86_pkg_temp_thermal    16384  0 
intel_powerclamp       16384  0 
coretemp               16384  0 
kvm_intel             167936  0 
btbcm                  16384  1 hci_uart
btqca                  16384  1 hci_uart
btintel                16384  1 hci_uart
bluetooth             516096  14 bnep,btbcm,btqca,hci_uart,rfcomm,btintel
kvm                   536576  1 kvm_intel
snd_seq_midi           16384  0 
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
drm_kms_helper        151552  2 i915_bpo,nvidia_drm
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
snd                    81920  21     snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
drm                   360448  5 i915_bpo,drm_kms_helper,nvidia_drm
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
mxm_wmi                16384  0 
soundcore              16384  1 snd
serio_raw              16384  0 
shpchp                 36864  0 
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0 
crc32_pclmul           16384  0 
ghash_clmulni_intel    16384  0 
aesni_intel           167936  0 
mei_me                 36864  0 
mei                    98304  1 mei_me
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  3
ghash_clmulni_intel,aesni_intel,ablk_helper
i2c_hid                20480  0 
8250_fintek            16384  0 
video                  40960  1 i915_bpo
intel_lpss_acpi        16384  0 
intel_lpss             16384  1 intel_lpss_acpi
mac_hid                16384  0 
acpi_als               16384  0 
kfifo_buf              16384  1 acpi_als
industrialio           57344  2 acpi_als,kfifo_buf
acpi_pad               24576  0 
wmi                    20480  1 mxm_wmi
parport_pc             36864  1 
ppdev                  20480  0 
lp                     20480  0 
parport                49152  3 lp,ppdev,parport_pc
hid_generic            16384  0 
usbhid                 49152  0 
hid                   118784  3 i2c_hid,hid_generic,usbhid
e1000e                233472  0 
psmouse               131072  0 
ptp                    20480  1 e1000e
pps_core               20480  1 ptp
ahci                   36864  3 
libahci                32768  1 ahci
fjes                   28672  0 

答案1

据我所知,您的网络已启动 (ifconfig eth0),但没有 IP 地址。因此,请为链接提供一个静态 IP 地址,或通过 dhcp 获取一个。

相关内容