我想安装驱动程序这个话题。我下载、安装并打开终端到目录并运行sudo bash install.sh
。
它能工作,但会出现两个错误。我认为它们位于设置的底部。
/home/joao/Desktop/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/home/joao/Desktop/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [_module_/home/joao/Desktop/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.19.0-25-generic'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
答案1
对于内核 3.19,您可以通过以下方式安装驱动程序:
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms linux-firmware
如果您处于离线状态,请下载这些文件
http://security.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb
http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.149.3_all.deb
将它们复制到你的主目录并运行
sudo dpkg -i rtl8192cu*.deb dkms*.deb linux-firmware*.deb