我已经安装了 Ubuntu 16.04 LTS 和 Windows 7。
虽然安装工作正常,但我无法从那里上网。
我使用 D-Link 调制解调器上网,系统要求是 Ubuntu 10.04 或更高版本。
所以它应该与我的兼容,但为什么没有被检测到?
我已经运行了命令系统盘我发现它已被列为D-Link 公司
请提出一些补救措施。
我确实去了网络图标,设置手机宽带选项,并将移动运营商和运营商的APN设置为沃达丰连接,但仍然没有被检测到。
編輯
lsusb
Bus 002 Device 009: ID 2001:a407 D-Link Corp.
移除调制解调器时
dmesg -w
给出
[ 1063.191885] usb 2-1.3: Product: D-Link DWP-157
[ 1063.191889] usb 2-1.3: Manufacturer: D-Link,Inc
[ 1063.191894] usb 2-1.3: SerialNumber: 531399703353630
[ 1063.192657] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[ 1063.192843] scsi host12: usb-storage 2-1.3:1.0
[ 1064.190463] scsi 12:0:0:0: CD-ROM HSPA USB SCSI CD-ROM 6225 PQ: 0 ANSI: 0 CCS
[ 1064.193317] sr 12:0:0:0: [sr1] scsi3-mmc drive: 0x/0x caddy
[ 1064.195881] sr 12:0:0:0: Attached scsi CD-ROM sr1
[ 1064.196297] sr 12:0:0:0: Attached scsi generic sg2 type 5
[ 1064.447249] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1064.448975] ISOFS: changing to secondary root
[ 1165.250481] usb 2-1.3: USB disconnect, device number 9
再次插入:
dmesg -w
[ 1064.196297] sr 12:0:0:0: Attached scsi generic sg2 type 5
[ 1064.447249] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1064.448975] ISOFS: changing to secondary root
[ 1165.250481] usb 2-1.3: USB disconnect, device number 9
[ 1250.773650] usb 2-1.3: new high-speed USB device number 10 using ehci-pci
[ 1250.867819] usb 2-1.3: New USB device found, idVendor=2001, idProduct=a407
[ 1250.867830] usb 2-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 1250.867836] usb 2-1.3: Product: D-Link DWP-157
[ 1250.867841] usb 2-1.3: Manufacturer: D-Link,Inc
[ 1250.867845] usb 2-1.3: SerialNumber: 531399703353630
[ 1250.868612] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[ 1250.868812] scsi host13: usb-storage 2-1.3:1.0
[ 1251.867201] scsi 13:0:0:0: CD-ROM HSPA USB SCSI CD-ROM 6225 PQ: 0 ANSI: 0 CCS
[ 1251.869953] sr 13:0:0:0: [sr1] scsi3-mmc drive: 0x/0x caddy
[ 1251.870493] sr 13:0:0:0: Attached scsi CD-ROM sr1
[ 1251.870854] sr 13:0:0:0: Attached scsi generic sg2 type 5
[ 1252.147458] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1252.148686] ISOFS: changing to secondary root
插入调制解调器时:
udevadm monitor -u
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
UDEV [1250.415969] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3 (usb)
UDEV [1250.428842] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0 (usb)
UDEV [1250.433148] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13 (scsi)
UDEV [1250.437686] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/scsi_host/host13 (scsi_host)
UDEV [1251.408929] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0 (scsi)
UDEV [1251.409064] add /devices/virtual/bdi/11:1 (bdi)
UDEV [1251.414972] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0 (scsi)
UDEV [1251.423177] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0/bsg/13:0:0:0 (bsg)
UDEV [1251.423899] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0/scsi_device/13:0:0:0 (scsi_device)
UDEV [1251.425856] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [1251.529367] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0/block/sr1 (block)
UDEV [1251.636974] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host13/target13:0:0/13:0:0:0/block/sr1 (block)
添加
查找默认设备...产品 ID 匹配
在默认模式下发现设备 (1)
访问总线 002 上的设备 004
打开设备时出错。中止
请提供一些步骤来指导我。
答案1
这是第二次答案审判,我在 zesty 的最后一个包(Ubuntu 17.04 正在开发中)中找到了此设备插件。正如您在/2001:a407
中看到的那样/usr/share/usb_modeswitch/configPack.tar.gz
2001:a407
# D-Link DWM-157 C1
TargetVendor=0x2001
TargetProduct=0x7d0e
StandardEject=1
安装最后一个包
从以下位置下载packages.ubuntu.com
wget http://archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch-data/usb-modeswitch-data_20160803-1.is.really.20160803-1_all.deb wget http://archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch/usb-modeswitch_2.4.0+repack0-1ubuntu1_amd64.deb
如果您有不同的架构,请打开上面的链接并下载正确的架构。
安装它们
sudo dpkg -i usb-modeswitch*.deb
重启机器
reboot
或者,一行代码
wget http://archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch-data/usb-modeswitch-data_20160803-1.is.really.20160803-1_all.deb; wget http://archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch/usb-modeswitch_2.4.0+repack0-1ubuntu1_amd64.deb; sudo dpkg -i usb-modeswitch*.deb