[问题] d-link dwa171(c)网卡安装[已解决]

楼主: incandescent (随便)   2021-11-26 15:04:03
d-link DWA-171(C) 网卡安装失败
官网有linux 的驱动,但不知道怎么安装
http://www.dlinktw.com.tw/home/product?id=1032&hid=18
zip 解压缩之后里面有一个 tar.gz 档
但不知怎么安装这个档
我的作业系统是 kubuntu 21.10 跟 ubuntu 21.10
因为不会装“tar.gz”网络上找到这个办法
https://forums.linuxmint.com/viewtopic.php?t=334017
ubuntu21.10的环境,试了
sudo apt install build-essential -y
mkdir -p ~/build
cd ~/build
sudo apt install git
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
make
sudo make install
虽然可以用但…
但kubuntu 21.10 的环境 试上面这个没有用
再试
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh
sudo modprobe 8821cu
依然没用
linux 弱鸡 只是不想丢旧电脑才安装的kubuntu 跟ubuntu
请问能教我怎么安装驱动吗
感谢
============================================================
第二次求救 使用usb_modeswitch 依然安装失败
看起来是因为有别的装置在使用,因为我同时有插另一张网卡在上网
怎么?拜托高手!!
过程如下
lsusb后得:
Bus 001 Device 005: ID 2001:331d D-Link Corp. DWA-171
输入
sudo usb_modeswitch -KW -v 2001 -p 331d

Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.1 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x2001
DefaultProduct= 0x331d
StandardEject=1
Look for default devices ...
found USB ID 3938:1059
found USB ID 046d:c534
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 0bda:0158
found USB ID 2001:331d
vendor ID matched
product ID matched
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 0bda:8178
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 005 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
with class 255
Error: can't use storage command in MessageContent with interface 0;
interface class is 255, expected 8. Abort
================================================================
求救!还是无法安装啊!第三次失败,试了好几种
第一种:
我先按照这里的说明装 https://github.com/morrownr/8821cu
系统有叫重新启动,但启动后还是不能动
过程如下
sudo apt update
sudo apt install -y dkms git
mkdir ~/src
cd ~/src
git clone https://github.com/morrownr/8821cu.git
cd ~/src/8821cu
sudo ./install-driver.sh
sudo reboot
请问
mkdir ~/sr
中的 ~ 有特别意思吗?因为他用红色标
另外[NoPrompt]要打吗
第二种
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/morrownr/8821cu
最后再
sudo ./install-driver.sh
第三种
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/morrownr/8821cu
最后再
sudo ./install-driver.sh
作者: npx2004 (强力潜水夫)   2021-11-26 18:15:00
先lsusb看到你网卡的usbid像 1111:2222 Realtek .. 的然后 安装 usb_modeswitch 之后 usb_modeswitch -KW-v 1111 -p 2222 这个数值必须替换成你找到的。
作者: Bx2009 (张麻吉二号)   2021-11-26 21:01:00
查了一下 似乎有换驱动 这个不管用换这个 repo https://github.com/morrownr/8821cu说明档表示有支援clone下来之后直接> ./install-driver.sh
作者: tomsawyer (安安)   2021-11-28 02:02:00
tar.gz是压缩档.... 你没google到ㄇ~ 代表home directory 用 /src 就会变根目录底下的src
作者: holishing   2021-11-28 10:53:00
tar 打包, gz 压缩
作者: tomsawyer (安安)   2021-11-28 02:03:00
~ 代表home directory 用 /src 就会变根目录底下的src
楼主: incandescent (随便)   2021-11-28 15:07:00
可是 我安装步骤 安装还是不能用 到底是不支援 还是没安装好 根本不晓得 有人知道吗
作者: breeze08 (linuxer)   2021-11-28 15:19:00
用lsmod看一下有没有你安装的驱动检查一下两台电脑lsusb的输出看看无线网卡的ID是否相同测试时记得要插上无线网卡

Links booklink

Contact Us: admin [ a t ] ucptt.com