d-link dwa171(c)網卡安裝失敗 - Linux

Table of Contents

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







--

All Comments

Mia avatarMia2021-11-29
先lsusb看到你網卡的usbid像 1111:2222 Realtek .. 的
Frederic avatarFrederic2021-12-03
然後 安裝 usb_modeswitch 之後 usb_modeswitch -KW
Lydia avatarLydia2021-12-06
-v 1111 -p 2222 這個數值必須替換成你找到的。
Harry avatarHarry2021-12-09
查了一下 似乎有換驅動 這個不管用
換這個 repo https://github.com/morrownr/8821cu
Valerie avatarValerie2021-12-12
說明檔表示有支援
Dinah avatarDinah2021-12-16
clone下來之後直接> ./install-driver.sh
Isla avatarIsla2021-12-19
~ 代表home directory 用 /src 就會變根目錄底下的src
Mia avatarMia2021-12-22
tar 打包, gz 壓縮
Ingrid avatarIngrid2021-12-25
可是 我安裝步驟 安裝還是不能用 到底是不支援 還
是沒安裝好 根本不曉得 有人知道嗎
Margaret avatarMargaret2021-12-24
用lsmod看一下有沒有你安裝的驅動
Susan avatarSusan2021-12-27
檢查一下兩台電腦lsusb的輸出看看無線網卡的ID是否相同
Emma avatarEmma2021-12-24
測試時記得要插上無線網卡