Ubuntu 无法连接到互联网,Live CD 和已安装的 Ubuntu 都无法连接到网络。系统从ifconfig
输出的样子看到了以太网接口:
*eth0
Link encap:Ethernet HWaddr 00:1d:04:4b:c4:bd
inet6 addr: fe80::23d:9ff:fe4b:c4bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:302 errors:0 dropped:0 overruns:0 frame:0
TX packets:343 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20208 (20.2 KB) TX bytes:74524 (74.5 KB)
Interrupt:16
lo
Link enc ap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:756 errors:0 dropped:0 overruns:0 frame:0
TX packets:756 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:87621 (87.6 KB) TX bytes:87621 (87.6 KB)*
dhclient eth0:
*RTNETLINK answer: Operation not permitted*
答案1
问题似乎是你的计算机没有 IP 地址,而你正试图调用 dhclient 来获取它 -但你不是root. 您需要以 root 身份获得 DHCP 租约(尝试 sudo dhclient eth0)