看板 Linux 關於我們 聯絡資訊
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://www.ptt.cc/bbs/Linux/M.1637910248.A.5E5.html
npx2004: 先lsusb看到你網卡的usbid像 1111:2222 Realtek .. 的 11/26 18:15
npx2004: 然後 安裝 usb_modeswitch 之後 usb_modeswitch -KW 11/26 18:17
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
Bx2009: 查了一下 似乎有換驅動 這個不管用 11/26 21:01
Bx2009: 換這個 repo https://github.com/morrownr/8821cu 11/26 21:01
Bx2009: 說明檔表示有支援 11/26 21:02
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
tomsawyer: ~ 代表home directory 用 /src 就會變根目錄底下的src 11/28 02:03
意思是我要刪掉~ ?
holishing: tar 打包, gz 壓縮 11/28 10:53
incandescent: 可是 我安裝步驟 安裝還是不能用 到底是不支援 還 11/28 15:07
incandescent: 是沒安裝好 根本不曉得 有人知道嗎 11/28 15:07
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
breeze08: 檢查一下兩台電腦lsusb的輸出看看無線網卡的ID是否相同 11/28 20:16
breeze08: 測試時記得要插上無線網卡 11/28 20:19
感謝回答,已經解決了 不是驅動安裝造成的問題 我把bios的 secure boot 關掉就好了 謝謝各位,折騰了好久 一直想說 怎麼可能一台可以用 另一台就不能用,原來只是 bios的問題 ※ 編輯: incandescent (39.9.234.7 臺灣), 11/28/2021 20:39:24