![在 14.04 上安装 kubuntu-desktop 后没有无线或有线互联网](https://linux22.com/image/973176/%E5%9C%A8%2014.04%20%E4%B8%8A%E5%AE%89%E8%A3%85%20kubuntu-desktop%20%E5%90%8E%E6%B2%A1%E6%9C%89%E6%97%A0%E7%BA%BF%E6%88%96%E6%9C%89%E7%BA%BF%E4%BA%92%E8%81%94%E7%BD%91.png)
我在普通的 Ubuntu 安装中安装了 kubuntu-desktop 包,但事先设置了 TimeShift 快照,以防我想撤消安装。我登录了 kubuntu,但无法连接到互联网。恢复 TimeShift 快照后,我仍然无法连接——无论是在我的 elementary OS 双启动上还是在 liveUSB 会话上。
“获取 IP 配置”似乎总是失败。以下是一些命令的结果:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr e8:03:9a:f1:3b:18
inet6 addr: fe80::ea03:9aff:fef1:3b18/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:296 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:161 (161.0 B) TX bytes:54669 (54.6 B)
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:165 errors:0 dropped:0 overruns:0 frame:0
TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11881 (11.8 KiB) TX bytes:11881 (11.8 KiB)
wlan0 Link encap:Ethernet HWaddr c4:85:08:c1:05:20
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)
$ nm-工具
NetworkManager Tool
State: connecting
- Device: eth0 [Wired connection 1] --------------------------------------------------
Type: Wired
Driver: r8169
State: connecting (getting IP configuration)
Default: no
HW Address: E8:03:9A:F1:3B:18
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
- Device: wlan0 --------------------------------------------------
Type: 802.11 WiFi
Driver: iwlwifi
State: disconnected
Default: no
HW Address: C4:85:08:C1:05:20
Capabilities:
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points
madrivante: Infra, 00:0C:F6:A0:B4:7A, Freq 2462 MHz, Rate 54 Mb/s, Strength 73 WPA WPA2
UPC244623609: Infra, DC:71:44:FC:3A:B8, Freq 2437 MHz, Rate 54 Mb/s, Strength 95 WPA2
ALEXANDRA: Infra, C0:3F:0E:68:C0:26, Freq 2437 MHz, Rate 54 Mb/s, Strength 95 WPA WPA2
$ ping -c 3 www.google.com
ping: unknown host www.google.com
$ ping -c 3 8.8.8.8
connect: Network is unreachable
$ sudo lshw -C 网络
*-network
description: Wireless interface
product: Centrino Advanced-N 6235
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 24
serial: c4:85:08:c1:05:20
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-24-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
resources: irq:45 memory:f1500000-f1501fff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 06
serial: e8:03:9a:f1:3b:18
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:42 ioport:2000(size=256) memory:f1404000-f1404fff memory:f1400000-f1403fff
答案1
我解决了。问题不是我的电脑,而是路由器(只是重启了一下)。路由器无法分配新的 IP 地址,因此最终网络上的每个设备都会受到影响,但我的电脑是第一个。