USB 以太网适配器无法与 Ubuntu 16.04 配合使用

USB 以太网适配器无法与 Ubuntu 16.04 配合使用

我买了一个 USB 3.0 以太网网络适配器(产品代码 20256,以下是具体型号http://www.ugreen.com.cn/product-697-en.html),但我无法让它与我的 Dell XPS 13 Developer Edition 上的 Ubuntu 16.04 配合使用。我查看了这里使用 Ubuntu 16.04 的 Dell XPS 13 中的 USB 转以太网但没有成功。

当我插入 USB 适配器时,首先弹出一条成功消息“您现在已连接到‘有线连接 1’”,但不久之后又弹出另一条消息“以太网网络已断开连接”

我尝试过从安装 Linux 驱动程序http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112

make命令失败:

make -C /lib/modules/4.4.0-78-generic/build SUBDIRS=/home/vito/dev/ethernet ugreen adapter/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-78-generic'
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** No rule to make target 'ugreen'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-78-generic'
Makefile:30: recipe for target 'default' failed
make: *** [default] Error 2

并运行

sudo add-apt-repository ppa:qji/ax88179 
sudo apt-get update 
sudo apt-get install ax88179

如下所述如何安装(或排除故障)USB 3.0 AX88179 千兆以太网适配器?

产量

E: Unable to locate package ax88179

这是我的lsusb输出:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0c45:670c Microdia 
Bus 001 Device 002: ID 8087:0a2b Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

部分dmesg输出:

[141344.691045] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[141344.718791] usb 2-1: New USB device found, idVendor=0b95, idProduct=1790
[141344.718794] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[141344.718796] usb 2-1: Product: AX88179
[141344.718797] usb 2-1: Manufacturer: ASIX Elec. Corp.
[141344.718798] usb 2-1: SerialNumber: 00000000000062
[141346.086230] ax88179_178a 2-1:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:0e:c6:c2:13:fb
[141346.087635] usbcore: registered new interface driver ax88179_178a
[141346.095391] ax88179_178a 2-1:1.0 enx000ec6c213fb: renamed from eth0
[141346.127776] IPv6: ADDRCONF(NETDEV_UP): enx000ec6c213fb: link is not ready
[141346.453080] IPv6: ADDRCONF(NETDEV_UP): enx000ec6c213fb: link is not ready
[141348.334700] ax88179_178a 2-1:1.0 enx000ec6c213fb: ax88179 - Link status is: 1
[141348.341174] IPv6: ADDRCONF(NETDEV_CHANGE): enx000ec6c213fb: link becomes ready
[141353.879023] usb 2-1: USB disconnect, device number 2
[141353.879307] ax88179_178a 2-1:1.0 enx000ec6c213fb: unregister 'ax88179_178a' usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
[141353.879336] ax88179_178a 2-1:1.0 enx000ec6c213fb: Failed to read reg index 0x0002: -19
[141353.879342] ax88179_178a 2-1:1.0 enx000ec6c213fb: Failed to write reg index 0x0002: -19
[141353.906952] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0002: -19
[141353.906962] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0001: -19
[141353.906968] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0002: -19
[141354.150699] usb 2-1: Device not responding to setup address.
[141354.354505] usb 2-1: Device not responding to setup address.
[141354.554938] usb 2-1: device not accepting address 3, error -71
[141354.554962] xhci_hcd 0000:00:14.0: Cannot set link state.
[141354.554980] usb usb2-port1: cannot disable (err = -32)
[141354.723064] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[141354.745922] usb 2-1: New USB device found, idVendor=0b95, idProduct=1790
[141354.745930] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[141354.745935] usb 2-1: Product: AX88179
[141354.745939] usb 2-1: Manufacturer: ASIX Elec. Corp.
[141354.745942] usb 2-1: SerialNumber: 00000000000062
[141355.068628] ax88179_178a 2-1:1.0 eth0: register 'ax88179_178a' at usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:0e:c6:c2:13:fb
[141356.085896] ax88179_178a 2-1:1.0 enx000ec6c213fb: renamed from eth0
[141359.573244] IPv6: ADDRCONF(NETDEV_UP): enx000ec6c213fb: link is not ready
[141359.892335] IPv6: ADDRCONF(NETDEV_UP): enx000ec6c213fb: link is not ready
[141359.982994] ax88179_178a 2-1:1.0 enx000ec6c213fb: ax88179 - Link status is: 1
[141361.775038] ax88179_178a 2-1:1.0 enx000ec6c213fb: ax88179 - Link status is: 1
[141361.782150] IPv6: ADDRCONF(NETDEV_CHANGE): enx000ec6c213fb: link becomes ready
[141377.563329] usb 2-1: USB disconnect, device number 4
[141377.563637] ax88179_178a 2-1:1.0 enx000ec6c213fb: unregister 'ax88179_178a' usb-0000:00:14.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
[141377.563670] ax88179_178a 2-1:1.0 enx000ec6c213fb: Failed to read reg index 0x0002: -19
[141377.563676] ax88179_178a 2-1:1.0 enx000ec6c213fb: Failed to write reg index 0x0002: -19
[141377.603221] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0002: -19
[141377.603225] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0001: -19
[141377.603228] ax88179_178a 2-1:1.0 enx000ec6c213fb (unregistered): Failed to write reg index 0x0002: -19
[141399.516121] wlp58s0: deauthenticating from 02:1a:11:fd:4d:c2 by local choice (Reason: 3=DEAUTH_LEAVING)
[141516.771923] usb 1-2: USB disconnect, device number 11

ifconfig输出:

docker0   Link encap:Ethernet  HWaddr 02:42:9d:b9:7e:94 
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

enx000ec6c213fb Link encap:Ethernet  HWaddr 00:0e:c6:c2:13:fb  
          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)

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:1191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:145957 (145.9 KB)  TX bytes:145957 (145.9 KB)

wlp58s0   Link encap:Ethernet  HWaddr e4:a4:71:1c:6c:09  
          inet addr:192.168.43.103  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::d7ed:8502:d581:869/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46483 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:56977580 (56.9 MB)  TX bytes:2929160 (2.9 MB)

答案1

我在 Ubuntu 20.04 和“0b95:1790 ASIX AX88179 10/100/1000”上也遇到了同样的情况。查看 nm-connection-editor(网络管理器)可以查看多个“电缆连接”。我删除了之前的所有“USB 电缆连接”断开并重新连接 USB 加密狗以太网,问题就解决了。

因此,从这个经验中我们可以了解到问题源于网络管理器而不是内核驱动程序。

相关内容