求大神给分析分析,能连上WiFi,上不了网。谢谢了

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

求大神给分析分析,能连上WiFi,上不了网。谢谢了

#1

帖子 kilo »

kilo@N4010:~$ sudo uname -a
Linux N4010 3.16.0-31-generic #41-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
kilo@N4010:~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 18)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Redwood HDMI Audio [Radeon HD 5000 Series]
04:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000 [Condor Peak]
05:00.0 Ethernet controller: Qualcomm Atheros AR8152 v1.1 Fast Ethernet (rev c1)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 05)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 05)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 05)
ff:02.1 Host bridge: Intel Corporation 1st Generation Core Processor QPI Physical 0 (rev 05)
ff:02.2 Host bridge: Intel Corporation 1st Generation Core Processor Reserved (rev 05)
ff:02.3 Host bridge: Intel Corporation 1st Generation Core Processor Reserved (rev 05)
kilo@N4010:~$ sudo lshw -c network
*-network
description: Wireless interface
product: Centrino Wireless-N 1000 [Condor Peak]
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlan0
version: 00
serial: 8c:a9:82:68:7f:9e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.16.0-31-generic firmware=39.31.5.1 build 35138 ip=192.168.1.8 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:43 memory:f0300000-f0301fff
*-network
description: Ethernet interface
product: AR8152 v1.1 Fast Ethernet
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:05:00.0
logical name: eth0
version: c1
serial: 14:fe:b5:a6:f8:37
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.1.1-NAPI latency=0 link=no multicast=yes port=twisted pair
resources: irq:46 memory:f0200000-f023ffff ioport:3000(size=128)
kilo@N4010:~$ sudo iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Netcore"
Mode:Managed Frequency:2.437 GHz Access Point: 08:10:75:19:4C:4B
Bit Rate=135 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=56/70 Signal level=-54 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:572 Missed beacon:0

lo no wireless extensions.

kilo@N4010:~$ sudo iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Netcore"
Mode:Managed Frequency:2.437 GHz Access Point: 08:10:75:19:4C:4B
Bit Rate=135 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=56/70 Signal level=-54 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:572 Missed beacon:0

lo no wireless extensions.

kilo@N4010:~$ sudo iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Netcore"
Mode:Managed Frequency:2.437 GHz Access Point: 08:10:75:19:4C:4B
Bit Rate=135 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=56/70 Signal level=-54 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:572 Missed beacon:0

lo no wireless extensions.

kilo@N4010:~$ sudo ifconfig -a
eth0 Link encap:以太网 硬件地址 14:fe:b5:a6:f8:37
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:801 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:801 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:57291 (57.2 KB) 发送字节:57291 (57.2 KB)

wlan0 Link encap:以太网 硬件地址 8c:a9:82:68:7f:9e
inet 地址:192.168.1.8 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::8ea9:82ff:fe68:7f9e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:15 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1221 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:1350 (1.3 KB) 发送字节:130462 (130.4 KB)

kilo@N4010:~$ sudo route -nv
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
kilo@N4010:~$ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
kilo@N4010:~$ sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/8c:a9:82:68:7f:9e
Sending on LPF/wlan0/8c:a9:82:68:7f:9e
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.8 on wlan0 to 255.255.255.255 port 67 (xid=0x47378d87)
DHCPACK of 192.168.1.8 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.8 -- renewal in 35599 seconds.
kilo@N4010:~$ sudo cat /etc/resolv.conf
# 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
nameserver 202.102.128.68
nameserver 202.102.134.68
nameserver 192.168.1.1
kilo@N4010:~$ sudo ping -c 4 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from 192.168.1.8: icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from 192.168.1.8: icmp_seq=4 ttl=64 time=0.049 ms

--- 192.168.1.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.037/0.047/0.052/0.005 ms
kilo@N4010:~$ sudo ping -c 4 baidu.com
ping: unknown host baidu.com
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#2

帖子 taohunter »

kilo 写了: ...
kilo@N4010:~$ sudo iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Netcore"
Mode:Managed Frequency:2.437 GHz Access Point: 08:10:75:19:4C:4B
Bit Rate=135 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=56/70 Signal level=-54 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:572 Missed beacon:0

lo no wireless extensions.
...
kilo@N4010:~$ sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/8c:a9:82:68:7f:9e
Sending on LPF/wlan0/8c:a9:82:68:7f:9e
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.8 on wlan0 to 255.255.255.255 port 67 (xid=0x47378d87)
DHCPACK of 192.168.1.8 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.8 -- renewal in 35599 seconds.
kilo@N4010:~$ sudo cat /etc/resolv.conf
# 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
nameserver 202.102.128.68
nameserver 202.102.134.68

nameserver 192.168.1.1
kilo@N4010:~$ sudo ping -c 4 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from 192.168.1.8: icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from 192.168.1.8: icmp_seq=4 ttl=64 time=0.049 ms

--- 192.168.1.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.037/0.047/0.052/0.005 ms
kilo@N4010:~$ sudo ping -c 4 baidu.com
ping: unknown host baidu.com
现在的ubuntu版本连接无线网络最好用系统提供的nm-applet,也就是点击系统栏上的那个网络图标来连接、设置,最好不要自己手工用命令去设。以我的机器上无线网络下的输出为例,对比你那段的红色部分命令输出,区别一目了然--当然我这里无线网络是正常的:

代码: 全选

$  cat /etc/resolv.conf
# 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
nameserver 127.0.1.1
一句话,不要混合着用nm和手工两种方式来设置网络:
“DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN”

最后给一句忠告:不要什么命令都加sudo,例如对cat命令来说sudo绝大多数时候都是多余的,随便提升权限迟早会出事。。。
三年后终于回到16.04--稳定了!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#3

帖子 poloshiao »

sudo cat /etc/resolv.conf
1. 把下面指令 複製 貼進終端機 執行
sudo ls -al /etc/resolv.conf
把結果直接複製貼上來
DHCPACK of 192.168.1.8 from 192.168.1.1
2. 把下面指令 複製 貼進終端機 執行
2-1. sudo ping -c 3 192.168.1.1
2-2. sudo ping -c 3 192.157.242.155
2-3. sudo ping -c forum.ubuntu.org.cn
把結果直接複製貼上來
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#4

帖子 kilo »

taohunter 写了:
kilo 写了: ...

kilo@N4010:~$ sudo cat /etc/resolv.conf
# 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
nameserver 202.102.128.68
nameserver 202.102.134.68

nameserver 192.168.1.1
kilo@N4010:~$ sudo ping -c 4 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from 192.168.1.8: icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from 192.168.1.8: icmp_seq=4 ttl=64 time=0.049 ms

--- 192.168.1.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.037/0.047/0.052/0.005 ms
kilo@N4010:~$ sudo ping -c 4 baidu.com
ping: unknown host baidu.com
现在的ubuntu版本连接无线网络最好用系统提供的nm-applet,也就是点击系统栏上的那个网络图标来连接、设置,最好不要自己手工用命令去设。以我的机器上无线网络下的输出为例,对比你那段的红色部分命令输出,区别一目了然--当然我这里无线网络是正常的:

代码: 全选

$  cat /etc/resolv.conf
# 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
nameserver 127.0.1.1
一句话,不要混合着用nm和手工两种方式来设置网络:
“DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN”

最后给一句忠告:不要什么命令都加sudo,例如对cat命令来说sudo绝大多数时候都是多余的,随便提升权限迟早会出事。。。

去掉sudo和您的一样了,可是怎么联网啊
kilo@N4010:~$ cat /etc/resolv.conf
# 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
nameserver 127.0.1.1
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#5

帖子 kilo »

poloshiao 写了:
sudo cat /etc/resolv.conf
1. 把下面指令 複製 貼進終端機 執行
sudo ls -al /etc/resolv.conf
把結果直接複製貼上來
DHCPACK of 192.168.1.8 from 192.168.1.1
2. 把下面指令 複製 貼進終端機 執行
2-1. sudo ping -c 3 192.168.1.1
2-2. sudo ping -c 3 192.157.242.155
2-3. sudo ping -c forum.ubuntu.org.cn
把結果直接複製貼上來
kilo@N4010:~$ sudo ls -al /etc/resolv.conf
[sudo] password for kilo:
lrwxrwxrwx 1 root root 29 2月 3 02:30 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
kilo@N4010:~$ sudo ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

kilo@N4010:~$ sudo ping -c 3 192.157.242.155
PING 192.157.242.155 (192.157.242.155) 56(84) bytes of data.

--- 192.157.242.155 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms

kilo@N4010:~$ sudo ping -c forum.ubuntu.org.cn
ping: bad number of packets to transmit.
网关都进不去,怎么办
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#6

帖子 poloshiao »

sudo ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
网关都进不去,怎么办
cat /etc/resolv.conf
# 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
nameserver 127.0.1.1
sudo cat /etc/resolv.conf
# 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
nameserver 202.102.128.68
nameserver 202.102.134.68
nameserver 192.168.1.1
1. 安裝 gksu 套件 (universe 套件庫)
2. gksudo gedit /etc/resolv.conf
合併 上面四行 注意 依照順序
nameserver 127.0.1.1
nameserver 192.168.1.1
nameserver 202.102.128.68
nameserver 202.102.134.68
3. sudo ping -c 3 192.168.1.1
看看 通不通
4. 如果可以通了
4-1. sudo ping -c 3 192.157.242.155
4-2. sudo ping -c forum.ubuntu.org.cn
看看 通不通
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#7

帖子 kilo »

poloshiao 写了:
sudo ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
网关都进不去,怎么办
cat /etc/resolv.conf
# 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
nameserver 127.0.1.1
sudo cat /etc/resolv.conf
# 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
nameserver 202.102.128.68
nameserver 202.102.134.68
nameserver 192.168.1.1
1. 安裝 gksu 套件 (universe 套件庫)
2. gksudo gedit /etc/resolv.conf
合併 上面四行 注意 依照順序
nameserver 127.0.1.1
nameserver 192.168.1.1
nameserver 202.102.128.68
nameserver 202.102.134.68
3. sudo ping -c 3 192.168.1.1
看看 通不通
4. 如果可以通了
4-1. sudo ping -c 3 192.157.242.155
4-2. sudo ping -c forum.ubuntu.org.cn
看看 通不通

连不上网无法安装gksu套件,我下载了个nautilus-gksu_2.0.2-5ubuntu2_amd64.deb,依赖关系问题使得 nautilus-gksu 的配置工作不能继续:
nautilus-gksu 依赖于 libnautilus-extension1 (>= 2.30)。我只好用sudo把那四行复制进去,可是还是ping不通,只能ping通自己,我该怎么办啊。

kilo@N4010:~$ gksudo gedit /etc/resolv.conf
程序“gksudo”尚未安装。 您可以使用以下命令安装:
sudo apt-get install gksu
kilo@N4010:~$ sudo apt-get install gksu
[sudo] password for kilo:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libgtkspell0 pidgin-data
Use 'apt-get autoremove' to remove them.
将会安装下列额外的软件包:
libgksu2-0
下列【新】软件包将被安装:
gksu libgksu2-0
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
需要下载 99.9 kB 的软件包。
解压缩后会消耗掉 749 kB 的额外空间。
您希望继续执行吗? [Y/n] y
错误 http://cn.archive.ubuntu.com/ubuntu/ utopic/universe libgksu2-0 amd64 2.0.13~pre1-

6ubuntu7
无法解析域名“cn.archive.ubuntu.com”
错误 http://cn.archive.ubuntu.com/ubuntu/ utopic/universe gksu amd64 2.0.2-6ubuntu2
无法解析域名“cn.archive.ubuntu.com”
E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/poo ... /libgksu2-

0_2.0.13~pre1-6ubuntu7_amd64.deb 无法解析域名“cn.archive.ubuntu.com”

E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/poo ... ksu_2.0.2-

6ubuntu2_amd64.deb 无法解析域名“cn.archive.ubuntu.com”

E: 有几个软件包无法下载,您可以运行 apt-get update 或者加上 --fix-missing 的选项再试试?

kilo@N4010:/media/kilo/库$ sudo dpkg -i nautilus-gksu_2.0.2-5ubuntu2_amd64.deb
[sudo] password for kilo:
正在选中未选择的软件包 nautilus-gksu。
(正在读取数据库 ... 系统当前共安装有 233478 个文件和目录。)
正准备解包 nautilus-gksu_2.0.2-5ubuntu2_amd64.deb ...
正在解包 nautilus-gksu (2.0.2-5ubuntu2) ...
dpkg: 依赖关系问题使得 nautilus-gksu 的配置工作不能继续:
nautilus-gksu 依赖于 libnautilus-extension1 (>= 2.30);然而:
未安装软件包 libnautilus-extension1。
nautilus-gksu 依赖于 gksu (>= 1.9.4);然而:
未安装软件包 gksu。

dpkg: 处理软件包 nautilus-gksu (--install)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nautilus-gksu

kilo@N4010:~$ gksudo gedit /etc/resolv.conf
程序“gksudo”尚未安装。 您可以使用以下命令安装:
sudo apt-get install gksu


kilo@N4010:~$ sudo gedit /etc/resolv.conf

(gedit:4905): IBUS-WARNING **: The owner of /home/kilo/.config/ibus/bus is not root!

kilo@N4010:~$ sudo ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms

kilo@N4010:~$ sudo ping -c 3 192.157.242.155
PING 192.157.242.155 (192.157.242.155) 56(84) bytes of data.

--- 192.157.242.155 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms

kilo@N4010:~$ sudo ping -c forum.ubuntu.org.cn
ping: bad number of packets to transmit.

kilo@N4010:~$ ping -c 3 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.048 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from 192.168.1.8: icmp_seq=3 ttl=64 time=0.052 ms

--- 192.168.1.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.042/0.047/0.052/0.007 ms
kilo@N4010:~$
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#8

帖子 kilo »

在我用window8下载那个关系套件后,重启回来,发现ubuntu有可以上网了,我现在就是,谢谢大神了,这是怎么回事。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#9

帖子 poloshiao »

发现ubuntu有可以上网了
恭喜你
这是怎么回事。
簡單說 你修復了 dns 的機制
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#10

帖子 kilo »

多谢了
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#11

帖子 kilo »

poloshiao 写了:
发现ubuntu有可以上网了
恭喜你
这是怎么回事。
簡單說 你修復了 dns 的機制
可是我每次都得调,用你那个方法或则sudo dhcpcd wlan0,请问有什么办法吗,或则写一个开机就运行这条代码的脚本,十分感谢。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#12

帖子 poloshiao »

可是我每次都得调,用你那个方法或则sudo dhcpcd wlan0,请问有什么办法吗
把下面指令 複製 貼進終端機 執行
1. sudo ls -al /etc/resolv.conf
2. sudo ls -al /etc/resolvconf/resolv.conf.d
把結果直接 選取/複製/貼上來
不必擷圖
kilo
帖子: 8
注册时间: 2015-02-04 23:05
系统: ubuntu

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#13

帖子 kilo »

poloshiao 写了:
可是我每次都得调,用你那个方法或则sudo dhcpcd wlan0,请问有什么办法吗
把下面指令 複製 貼進終端機 執行
1. sudo ls -al /etc/resolv.conf
2. sudo ls -al /etc/resolvconf/resolv.conf.d
把結果直接 選取/複製/貼上來
不必擷圖
lrwxrwxrwx 1 root root 29 3月 7 21:55 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

drwxr-xr-x 2 root root 4096 7月 23 2014 .
drwxr-xr-x 5 root root 4096 7月 23 2014 ..
-rw-r--r-- 1 root root 0 12月 14 2012 base
-rw-r--r-- 1 root root 151 12月 14 2012 head
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大神给分析分析,能连上WiFi,上不了网。谢谢了

#14

帖子 poloshiao »

1. gksudo gedit /etc/resolvconf/resolv.conf.d/head
加上這兩行
nameserver 8.8.8.8
nameserver 8.8.4.4
1-1. 第一次 使用 gksudo 需要先安裝 gksu 套件 (universe 套件庫)
1-2. 8.8.8.8 與 8.8.4.4 可以替換為 任何作用中有效的 DNS IPv4

2. 重新開機
2-1. sudo cat /run/resolvconf/resolv.conf
看看 有沒有 這兩行
nameserver 8.8.8.8
nameserver 8.8.4.4
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
2-2. sudo cat /etc/resolv.conf
內容應該與 /run/resolvconf/resolv.conf 一樣

3. 看看 能否成功上網
回复