小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#16

帖子 vickycq » 2017-05-15 12:30

whylop 写了:买了一个即插即用的,发现也不好使 :Cry
插入网卡执行以下指令将结果全部复制贴上来

代码: 全选

lsusb 
lsusb -t
lspci -knn | grep -iA2 net
sudo lshw -C net
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
whylop
帖子: 14
注册时间: 2017-05-09 15:55
系统: ubuntu16.04

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#17

帖子 whylop » 2017-05-16 14:15

whylop@linux:~$ lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 003: ID 04f2:b5c0 Chicony Electronics Co., Ltd

Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver

Bus 001 Device 004: ID 0bda:b023 Realtek Semiconductor Corp.

Bus 001 Device 006: ID 0e8d:2870 MediaTek Inc.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

whylop@linux:~$ lsusb -t

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M

/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M

|__ Port 1: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M

|__ Port 5: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M

|__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M

|__ Port 8: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M

|__ Port 8: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M

|__ Port 14: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M

|__ Port 14: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M

whylop@linux:~$ lspci -knn | grep -iA2 net

05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)

Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:5066]

Kernel driver in use: r8169

Kernel modules: r8169

whylop@linux:~$ sudo lshw -C net

[sudo] whylop 的密码:

*-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:05:00.0

logical name: enp5s0

version: 10

serial: fc:45:96:a9:71:56

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=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.9 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s

resources: irq:131 ioport:b000(size=256) memory:d2204000-d2204fff memory:d2200000-d2203fff

whylop@linux:~$
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#18

帖子 vickycq » 2017-05-16 14:37

whylop 写了: Bus 001 Device 006: ID 0e8d:2870 MediaTek Inc.
|__ Port 1: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M
您可能购买了一支 Linux 支持不佳的 USB 无线网卡。您目前的问题跟这位网友 viewtopic.php?f=116&t=483887 是相似的。您的 USB 无线网卡可能是“双模式”的,既是 USB 无线网卡,又是优盘。优盘模式一般是用于安装 Windows 驱动的。根据信息中 Bus 001 Device 006 的 "Class=Mass Storage, Driver=usb-storage" 字样,猜测目前处于优盘模式。

请您现在做个实验,按顺序执行以下步骤

1. 执行以下指令检查 usb-modeswitch 是否已安装

代码: 全选

dpkg -l usb-modeswitch
如果最后一行开头是 'ii' 说明已安装。如果不是,您需要设法连网安装 usb-modeswitch,如果您无法联网,您也可以手动下载这几个包拷贝到机器上安装。需要按下面的顺序,先安装第一个,然后是第二个、第三个。下面的软件包适用于 Ubuntu 16.04 amd64
http://kr.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://kr.archive.ubuntu.com/ubuntu/poo ... -1_all.deb
http://kr.archive.ubuntu.com/ubuntu/poo ... _amd64.deb

2. 插入 USB 无线网卡
3. 执行以下指令将结果全部复制贴上来

代码: 全选

sudo usb_modeswitch -KW -v 0e8d -p 2870
4. 执行以下指令将结果全部复制贴上来

代码: 全选

lsusb
lsusb -t
如果没猜错的话,当您执行第四步,您会看到设备的 id 变为另一个值,比如,很可能是 148f:7601 或 148f:760b。这是 ralink 被 mediatek 收购后新推出的产品。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
whylop
帖子: 14
注册时间: 2017-05-09 15:55
系统: ubuntu16.04

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#19

帖子 whylop » 2017-05-16 14:53

hylop@linux:~$ dpkg -l usb-modeswitch
期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)
| 状态=未安装(n)/已安装(i)/仅存配置(c)/仅解压缩(U)/配置失败(F)/不完全安装(H)/触发器等待(W)/触发器未决(T)
|/ 错误?=(无)/须重装(R) (状态,错误:大写=故障)
||/ 名称 版本 体系结构: 描述
+++-=============================================-===========================-===========================-===============================================================================================
ii usb-modeswitch
whylop@linux:~$ sudo usb_modeswitch -KW -v 0e8d -p 2870
Take all parameters from the command line


* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x0e8d
DefaultProduct= 0x2870

StandardEject=1
NeedResponse=0

Look for default devices ...
found USB ID 1d6b:0003
found USB ID 04f2:b5c0
found USB ID 046d:c534
found USB ID 0bda:b023
found USB ID 0e8d:2870
vendor ID matched
product ID matched
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 009 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x08 (out) and 0x84 (in)

USB description data (for identification)
-------------------------
Manufacturer: ?
Product: ?
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response reading failed (error -7)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
whylop@linux:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b5c0 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 0bda:b023 Realtek Semiconductor Corp.
Bus 001 Device 009: ID 0e8d:2870 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
whylop@linux:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 1: Dev 9, If 0, Class=Mass Storage, Driver=, 480M
|__ Port 5: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 8: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 8: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 14: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 14: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
whylop@linux:~$
ps: 有没有支持linux16.04 内核4.8.0版本比较好的无线网卡,能否推荐一款 最好有个型号或者购物链接,(淘宝和京东都行)
谢谢!
whylop
帖子: 14
注册时间: 2017-05-09 15:55
系统: ubuntu16.04

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#20

帖子 whylop » 2017-05-16 14:53

hylop@linux:~$ dpkg -l usb-modeswitch
期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)
| 状态=未安装(n)/已安装(i)/仅存配置(c)/仅解压缩(U)/配置失败(F)/不完全安装(H)/触发器等待(W)/触发器未决(T)
|/ 错误?=(无)/须重装(R) (状态,错误:大写=故障)
||/ 名称 版本 体系结构: 描述
+++-=============================================-===========================-===========================-===============================================================================================
ii usb-modeswitch
whylop@linux:~$ sudo usb_modeswitch -KW -v 0e8d -p 2870
Take all parameters from the command line


* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x0e8d
DefaultProduct= 0x2870

StandardEject=1
NeedResponse=0

Look for default devices ...
found USB ID 1d6b:0003
found USB ID 04f2:b5c0
found USB ID 046d:c534
found USB ID 0bda:b023
found USB ID 0e8d:2870
vendor ID matched
product ID matched
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 009 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x08 (out) and 0x84 (in)

USB description data (for identification)
-------------------------
Manufacturer: ?
Product: ?
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response reading failed (error -7)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
whylop@linux:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b5c0 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 0bda:b023 Realtek Semiconductor Corp.
Bus 001 Device 009: ID 0e8d:2870 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
whylop@linux:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 1: Dev 9, If 0, Class=Mass Storage, Driver=, 480M
|__ Port 5: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 8: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 8: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 14: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 14: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
whylop@linux:~$
ps: 有没有支持linux16.04 内核4.8.0版本比较好的无线网卡,能否推荐一款 最好有个型号或者购物链接,(淘宝和京东都行)
谢谢!
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 小白一枚,win10下安装ubuntu16.04 无法联网,蓝牙也无法启动,求帮助!

#21

帖子 vickycq » 2017-05-16 17:53

whylop 写了:能否推荐一款 最好有个型号或者购物链接,(淘宝和京东都行)
https://s.taobao.com/search?q=ralink+rt ... _type=item
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复