Linux

TP-link TL-Wn723n 驅動程序和“sudo make install”出錯

  • November 10, 2018

首先,我對這兩個命令都有問題:

sudo make
sudo make install

因為當我嘗試安裝 Linux 標頭檔時,它的顯示錯誤,但經過努力我安裝了它!

現在sudo make可以工作,但是當我執行時sudo make install出現以下錯誤:

shahab@home:~$ cd rtl8188eu-master
shahab@home:~/rtl8188eu-master$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-7-amd64/build M=/home/shahab/rtl8188eu-master  modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-7-amd64'
 Building modules, stage 2.
 MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-7-amd64'

shahab@home:~/rtl8188eu-master$ sudo make install
install -p -m 644 8188eu.ko  /lib/modules/4.9.0-7-amd64/kernel/drivers/net/wireless
cp rtl8188eufw.bin /lib/firmware/.
cp: cannot create regular file '/lib/firmware/.': No such file or directory
Makefile:157: recipe for target 'install' failed
make: *** [install] Error 1

shahab@home:~/rtl8188eu-master$ su
Password: 

root@home:/home/shahab/rtl8188eu-master# make && make install
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-7-amd64/build M=/home/shahab/rtl8188eu-master  modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-7-amd64'
 Building modules, stage 2.
 MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-7-amd64'
install -p -m 644 8188eu.ko  /lib/modules/4.9.0-7-amd64/kernel/drivers/net/wireless
cp rtl8188eufw.bin /lib/firmware/.
cp: cannot create regular file '/lib/firmware/.': No such file or directory
Makefile:157: recipe for target 'install' failed
make: *** [install] Error 1
root@home:/home/shahab/rtl8188eu-master#

我該怎麼做?

編輯:

lsusb 輸出:

Bus 006 Device 002: ID 8087:8002 Intel Corp. 
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 8087:800a Intel Corp. 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 045b:0210 Hitachi, Ltd 
Bus 002 Device 002: ID 045b:0210 Hitachi, Ltd 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 04e8:6864 Samsung Electronics Co., Ltd GT-I9070 (network tethering, USB debugging enabled)
Bus 001 Device 003: ID 045b:0209 Hitachi, Ltd 
Bus 001 Device 006: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 004: ID 045b:0209 Hitachi, Ltd 
Bus 001 Device 002: ID 09da:054f A4Tech Co., Ltd. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

unname -a:

Linux home 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64 GNU/Linux

來源.列表:

#------------------------------------------------------------------------------#
#                   OFFICIAL DEBIAN REPOS                    
#------------------------------------------------------------------------------#

deb http://deb.debian.org/debian stretch main
# deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian-security/ stretch/updates main
# deb-src http://deb.debian.org/debian-security/ stretch/updates main

deb http://deb.debian.org/debian stretch-updates main
# deb-src http://deb.debian.org/debian stretch-updates main

# non-free
# deb http://deb.debian.org/debian stretch main contrib non-free
# deb-src http://deb.debian.org/debian stretch main contrib non-free

# deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
# deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

# deb http://deb.debian.org/debian stretch-updates main contrib non-free
# deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

最後解決方案後的結果:

最終結果

如果網路管理器顯示設備未準備好,則需要重新啟動!現在一切都好**!!!**

最後結果

最後結果

編輯您/etc/apt/sources.list的如下:

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

升級你的系統:

sudo apt update && sudo apt upgrade
sudo apt dist-upgrade

重新啟動然後安裝linux-headers,dkmsfirmware-realtek:

sudo apt install linux-headers-$(uname -r) dkms firmware-realtek

從此git 儲存庫獲取原始碼。

git clone https://github.com/quickreflex/rtl8188eus.git 
sudo cp -R rtl8188eus/ /usr/src
cd /usr/src/rtl8188eus
sudo dkms add .
sudo dkms build 8188eu/1.0
sudo dkms install 8188eu/1.0

引用自:https://unix.stackexchange.com/questions/479950