Ao tentar instalar um novo driver de wifi, junto com o dkms, recebi o erro 'no module source directory'

0

Eu tenho constantes quedas de wi-fi com o Ubuntu 14.04. Eu estava tentando corrigir esse problema com o seguinte código:

sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms git 
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.9
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf

Quando entrei na quarta linha, sudo dkms install 8192cu/1.9 , recebi este erro:

$ sudo dkms install 8192cu/1.9
Error! Could not find module source directory.
Directory: /usr/src/8192cu-1.9 does not exist.
$

Como posso consertar isso? O que devo fazer a seguir?

Estas são as informações da placa de rede:

$ lspci -nnk | grep -iA2 net; rfkill list all
01:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
    Subsystem: Foxconn International, Inc. Device [105b:e068]
    Kernel driver in use: ath9k
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no
4: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
$

Caso isso ajude, aqui está a saída dos três primeiros comandos:

$ sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms git   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  dkms
0 upgraded, 1 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3,401 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main dkms all 2.2.0.3-1.1ubuntu5.14.04.5 [65.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.3 [2,586 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.19.0-56-generic amd64 3.19.0-56.62~14.04.1 [743 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-generic amd64 3.13.0.83.89 [2,232 B]
Fetched 3,401 kB in 10s (321 kB/s)                                             
(Reading database ... 703929 files and directories currently installed.)
Preparing to unpack .../build-essential_11.6ubuntu6_amd64.deb ...
Unpacking build-essential (11.6ubuntu6) over (11.6ubuntu6) ...
Selecting previously unselected package dkms.
Preparing to unpack .../dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb ...
Unpacking dkms (2.2.0.3-1.1ubuntu5.14.04.5) ...
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.3_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.3) over (1:1.9.1-1ubuntu0.3) ...
Preparing to unpack .../linux-headers-3.19.0-56-generic_3.19.0-56.62~14.04.1_amd64.deb ...
Unpacking linux-headers-3.19.0-56-generic (3.19.0-56.62~14.04.1) over (3.19.0-56.62~14.04.1) ...
Preparing to unpack .../linux-headers-generic_3.13.0.83.89_amd64.deb ...
Unpacking linux-headers-generic (3.13.0.83.89) over (3.13.0.83.89) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up build-essential (11.6ubuntu6) ...
Setting up dkms (2.2.0.3-1.1ubuntu5.14.04.5) ...
Setting up git (1:1.9.1-1ubuntu0.3) ...
Setting up linux-headers-3.19.0-56-generic (3.19.0-56.62~14.04.1) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.19.0-56-generic /boot/vmlinuz-3.19.0-56-generic
Setting up linux-headers-generic (3.13.0.83.89) ...

$ git clone https://github.com/pvaret/rtl8192cu-fixes.git
Cloning into 'rtl8192cu-fixes'...
remote: Counting objects: 435, done.
remote: Total 435 (delta 0), reused 0 (delta 0), pack-reused 435
Receiving objects: 100% (435/435), 1.80 MiB | 251.00 KiB/s, done.
Resolving deltas: 100% (222/222), done.
Checking connectivity... done.

$ sudo dkms add ./rtl8192cu-fixes

Creating symlink /var/lib/dkms/8192cu/1.10/source ->
                 /usr/src/8192cu-1.10

DKMS: add completed.
$
    
por gracious1 03.04.2016 / 04:35

2 respostas

2

Você já tem um driver para o seu dispositivo, ath9k . Se você está perdendo conexões, pode haver algumas coisas que você pode tentar.

Primeiro, verifique as configurações no roteador. WPA2-AES é preferido; não qualquer modo misto WPA e WPA2 e certamente não TKIP. Segundo, se o seu roteador for capaz de atingir N velocidades, você poderá ter melhor conectividade com uma largura de canal de 20 MHz na banda de 2,4 GHz em vez de 20/40 MHz automática, embora seja provável que afete a velocidade de N. Eu também tenho melhor sorte com um canal fixo, 1, 6 ou 11, em vez de seleção automática de canais. Além disso, certifique-se de que o roteador não esteja configurado para usar apenas N velocidades; auto B, G e N são preferidos. Depois de fazer essas alterações, reinicie o roteador.

Em seguida, recomendo que seu domínio regulatório seja definido explicitamente. Verifique o seu:

sudo iw reg get

Se você obtiver 00, essa é uma configuração de tamanho único, talvez ajustada para todos. Encontre o seu aqui: link Defina-o temporariamente:

sudo iw reg set IS

Claro, substitua o código do seu país, se não a Islândia. Definir permanentemente:

gksudo gedit /etc/default/crda

Use nano ou kate ou leafpad se você não tiver o editor de texto gedit.

Altere a última linha para ler:

REGDOMAIN=IS

Revise cuidadosamente, salve e feche o editor de texto.

Em seguida, defini o IPv6 como Ignore no Network Manager: link Este exemplo é para ethernet, mas você quer wireless.

Se essas alterações não ajudarem, tente:

sudo -i
echo "options ath9k nohwcrypt=1"  >  /etc/modprobe.d/ath9k.conf
exit

Reinicie.

    
por chili555 03.04.2016 / 15:18
0

A quarta linha correta seria:

sudo dkms install 8192cu/1.10

Veja sua saída para dkms add , você criou uma pasta chamada

/usr/src/8192cu-1.10
    
por bitseater 03.04.2016 / 11:54