2

I have just bought my first Raspberry Pi, it's an RPi3. However, I can't get the Wi-Fi to work. I set it up as per the instructions (i.e. I have Raspbian installed using NOOBS) yet I just have a symbol with two computers and a cross. If I right click it and open the settings I get the error

Error saving /etc/dhcpcd.conf

and

The dhcpcd configuration file is not writeable

A left click on the symbol just brings up a message saying

No wireless interfaces found

Does someone know how to get the Wi-Fi working, or help me troubleshoot the problem??

Greenonline
  • 2,969
  • 5
  • 27
  • 38
GeoMonkey
  • 121
  • 1
  • 1
  • 4

10 Answers10

2

You can try configuring manually. Unlike many newer devices the Pi does not support 5GHz WiFi, only 2.4GHz.

The file /etc/wpa_supplicant/wpa_supplicant.conf will be created/modified by the recommended setup methods, but can be setup by hand. It should contain something like the following:-

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="ESSID"
    psk="Your_wifi_password"
}

If you need to connect to a private network (i.e. no broadcast SSID) include the line scan_ssid=1 inside network={⋯}. NOTE there are many other options which can be used see man wpa_supplicant.conf.

The above is an extract from How do I set up networking/WiFi/Static IP

If you get "Error saving /etc/dhcpcd.conf" and "The dhcpcd configuration file is not writeable" you could check the file permissions, but this would seem to indicate some problem with the installation, although I do not see why this would be changed.

Milliways
  • 62,573
  • 32
  • 113
  • 225
1

I also had this problem. Do the set-ups as mentioned above first. However be aware that US and America are NOT the same in the pull downs for preferences. Always use US when available. Took me awhile to figure this one out.

0

This may not be a solution for the exact problem, but on my RPI3 after rebooting, the WIFI does not work, tried so many solutions from here. None work for me. I discovered typing:

sudo dhcpcd

instantly fixes the WIFI. So just putting this answer here as yet another solution for anyone having issues with RPI WIFI. My Pi is fully updated as of June 2019, but still has this issue.

Scott Hather
  • 101
  • 1
0

I am unable to comment as somehow I need to have 50 reputation points and this answer (by Fawkes Meteor) should not have a -1 as his is the correct answer !!

What we need to know is if you look at the permissions for this file you will see the following: pi@raspberrypi:~ $ ls -la /etc/dhcpcd.conf

-rw-rw-r-- 1 root netdev 1876 Jan 24 23:41 /etc/dhcpcd.conf

What you will see here is that 'root' owns the file and is part of the 'netdev'group If you run (assuming you are user pi) pi@raspberrypi:~$ groups

You will see that user 'pi' belongs to the group 'netdev'

I would, with 99% certainty, assume all people who have this issue (The dhcpcd configuration file is not writeable") is because they have logged in (or created) another user which is not belonging to the 'netdev' group, hence do not have permissions to write to this file.

What Fawkes Meteor is saying is add all the groups that pi belongs to, to the new user they have logged in as. To do this:

 1) Switch user to pi:
    sudo -pi
  1. sudo usermod -aG adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio (your new user account name)

    eg: sudo usermod -aG adm,dialout,cdrom,sudo,etc, montypython

  2. Log back in as the new user and run" groups

You should see that the new user now belongs to 'netdev' group

  1. Reboot

All good and you now should be able to connect to your wireless SSID. If not connect directly with Ethernet cable and leave for 20min and your wireless will be available.

Buzz Z6
  • 1
  • 1
0

On my new PI I had the same experience: no WiFi, no access to WiFi-settings. After several trials I remembered a little sticker on the back of the SD memory blister pakage. It urged to download the latest firmware in order to enable WiFi and Bluetooth connectivity. This update took about half an hour, but it kept its promise!

Ton
  • 1
0

I just had this problem with my new RPi3 and I was able to overcome this by disabling and enabling the WIFI interface from the Pixel desktop. After re-enabling the WIFI interface everything popped into life and I could see the WIFI symbol in the top panel and the wireless networks around me.

Mine was newly installed using the current NOOBs and an ethernet cable.

0

Issue can be solved by changing group ownership of /etc/dhcpcd.conf:

sudo chown :pi /etc/dhcpcd.conf

That will give write permission to the file to the user pi (default user). Can be checked by

ls /etc/dhcpcd.conf -l
RKT
  • 1
0

Not a secure option but if you do:

sudo chmod a+w /etc/dhcpcd.conf

It will work, but remember, is by no means secure, so after configuring it the better you can do is:

sudo chmod a+w /etc/dhcpcd.conf

Also, if you check the file you will notice that it has no group, you could make it permanetly accesible by adding a group the user pi has, maybe adm, I'm not sure in this point.

sudo chgrp <theGroup> /etc/dhcpcd.conf
0

I just had this same problem. When I initially installed Raspian with noobs I didn't initiate wifi and only installed the operating system. After some googling found that my /etc/dhcpcd.conf file wasn't configured.

I think I solved the problem, for me, when during the reboot I pressed "shift" and it switched to "recovery mode" and you get the noobs box. From there I was able see my wifi and set the password again (the first time was by clicking on the 'no network' symbol from the panel). That didn't initially solve it.

I ended up just rebooting, again into recovery mode, and reinstalling Raspian in noobs. Note: the warning that any other data will be lost on reinstallation. In the fresh install everything was working and I had the regular network panel applet.

Bex
  • 2,929
  • 3
  • 26
  • 34
Marcelo
  • 1
  • 1
-1

the account needs permission

sudo usermod -aG pi,adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio <your account name>

or using this if you didn't change the user name

sudo usermod -aG pi,adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio pi