作者incandescent (随便)
看板Linux
标题[问题] d-link dwa171(c)网卡安装失败
时间Fri Nov 26 15:04:03 2021
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
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 27.242.70.105 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1637910248.A.5E5.html
1F:推 npx2004: 先lsusb看到你网卡的usbid像 1111:2222 Realtek .. 的 11/26 18:15
2F:→ npx2004: 然後 安装 usb_modeswitch 之後 usb_modeswitch -KW 11/26 18:17
3F:→ npx2004: -v 1111 -p 2222 这个数值必须替换成你找到的。 11/26 18:18
※ 编辑: incandescent (27.242.70.105 台湾), 11/26/2021 19:35:44
※ 编辑: incandescent (27.242.70.105 台湾), 11/26/2021 19:40:06
※ 编辑: incandescent (27.242.70.105 台湾), 11/26/2021 19:43:56
4F:推 Bx2009: 查了一下 似乎有换驱动 这个不管用 11/26 21:01
6F:→ Bx2009: 说明档表示有支援 11/26 21:02
7F:→ Bx2009: clone下来之後直接> ./install-driver.sh 11/26 21:03
※ 编辑: incandescent (39.13.67.197 台湾), 11/26/2021 22:43:11
→ tomsawyer: tar.gz是压缩档.... 你没google到ㄇ
有的,但是还是不知道怎麽安装 11/28 02:02
8F:→ tomsawyer: ~ 代表home directory 用 /src 就会变根目录底下的src 11/28 02:03
意思是我要删掉~ ?
9F:推 holishing: tar 打包, gz 压缩 11/28 10:53
10F:→ incandescent: 可是 我安装步骤 安装还是不能用 到底是不支援 还 11/28 15:07
11F:→ incandescent: 是没安装好 根本不晓得 有人知道吗 11/28 15:07
12F:推 breeze08: 用lsmod看一下有没有你安装的驱动 11/28 15:19
感谢指点,lsmod後,ubuntu那台可以读到网卡的有这笔
cfg80211 892928 4 iwlmvm,8821cu,iwlwifi,mac80211
看起来「8821cu」是这个网卡的驱动?
但kubuntu 那台是
cfg80211 892928 4 mt76,mt76x02_lib,mac80211,mt76x02_usb
似乎没有安装到??
但我安装的方法都一样,为什麽一台有,一台没有?
重试好几次了 就是不知道为什麽两台电脑的安装有差异
※ 编辑: incandescent (39.13.67.197 台湾), 11/28/2021 17:53:14
13F:→ breeze08: 检查一下两台电脑lsusb的输出看看无线网卡的ID是否相同 11/28 20:16
14F:→ breeze08: 测试时记得要插上无线网卡 11/28 20:19
感谢回答,已经解决了
不是驱动安装造成的问题
我把bios的 secure boot 关掉就好了
谢谢各位,折腾了好久 一直想说 怎麽可能一台可以用
另一台就不能用,原来只是 bios的问题
※ 编辑: incandescent (39.9.234.7 台湾), 11/28/2021 20:39:24