não pôde abrir o arquivo de interfaces "/ etc / network / interfaces ao executar o ifup wlan0

0

Aqui está o meu arquivo /etc/network/interfaces :

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid myssidhere
    wpa-psk mypasshere

Saída de iwconfig :

wlp5s0    IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Saída da verificação do iwlist: A interface não suporta a digitalização.

enp0s31f6 A interface não suporta a digitalização.

wlp5s0 Falha ao ler os dados da verificação: a rede está inativa

enp4s0 A interface não suporta a digitalização.

Saída de ls -al /etc/network/interfaces :

$ ls -al /etc/network/interfaces
-rw------- 1 root root 366 Nov  3 17:24 /etc/network/interfaces

Erro:

~$ sudo ifdown wlp5s0 && sudo ifup -v wlp5s0
RTNETLINK answers: No such process
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlp5s0/24:ec:99:59:5d:8a
Sending on   LPF/wlp5s0/24:ec:99:59:5d:8a
Sending on   Socket/fallback
Configuring interface wlp5s0=wlp5s0 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: wpa-driver nl80211,wext (default)
wpa_supplicant: /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlp5s0.pid -i wlp5s0 -D nl80211,wext -C /run/wpa_supplicant
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlp5s0.pid
wpa_supplicant: ctrl_interface socket located at /run/wpa_supplicant/wlp5s0
wpa_supplicant: configuring network block -- 0
wpa_supplicant: wpa-ssid "TB9JT" -- OK
wpa_supplicant: wpa-psk ***** -- OK
wpa_supplicant: enabling network block 0 -- OK

/sbin/dhclient -1 -v -pf /run/dhclient.wlp5s0.pid -lf /var/lib/dhcp/dhclient.wlp5s0.leases -I -df /var/lib/dhcp/dhclient6.wlp5s0.leases wlp5s0  
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Operation not possible due to RF-kill
Listening on LPF/wlp5s0/24:ec:99:59:5d:8a
Sending on   LPF/wlp5s0/24:ec:99:59:5d:8a
Sending on   Socket/fallback

SPECS

MOTHERBOARD: ASRock H170M LGA 1151 USB 3.0 Mini ITX 
CPU: Intel Core i5-6600 6M Skylake Quad-Core 3.3 GHz LGA 1151
RAM: Crucial 8GB 288-Pin DDR4 SDRAM DDR4 2133
GPU: VGA GeForce GTX 750 2GB GDDR5 PCIe
HDD: SAMSUNG 850 EVO 2.5" 250GB SATA3 SSD

O que estou fazendo de errado aqui?

    
por user700070 03.11.2016 / 22:27

1 resposta

3

Como você pode ver, sua interface não é wlan0; é wlp5s0. Por favor, altere seu arquivo para ler:

auto lo
iface lo inet loopback

auto wlp5s0
iface wlp5s0 inet dhcp
    wpa-ssid myssidhere
    wpa-psk mypasshere

Reinicie a interface:

sudo ifdown wlp5s0 && sudo ifup -v wlp5s0

Verifique:

ping -c3 www.google.com

Você pode precisar corrigir as permissões do arquivo:

sudo chmod 644 /etc/network/interfaces

Verifique novamente:

sudo ifdown wlp5s0 && sudo ifup -v wlp5s0
    
por chili555 03.11.2016 / 23:01