TP-link TL-Wn723n 驱动程序和“sudo make install”错误

TP-link TL-Wn723n 驱动程序和“sudo make install”错误

首先我对这两个命令都有问题:

sudo make
sudo make install

因为当我尝试安装 Linux header 时它显示错误,但经过一番努力我安装了它!

现在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

名称-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

最后解决后的结果:

最终结果

如果网络管理器将设备显示为没有准备好它需要重新启动!现在一切好吧!!!

最后结果

最后结果

答案1

编辑你的/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

相关内容