I'm trying to run my Raspberry Pi 4 on Ubuntu Server 20.04 (64bit) following this tutorial. When I reached 4. Boot Ubuntu Server
, my RPi had no IP address (I switched to using a monitor when doing a headless setup failed, and calling hostname -I
returns a blank line), which I believe is the result of having no internet connection, further demonstrated by sudo apt update
failing with every line saying temporary failure resolving 'ports.ubuntu.com'
. I also get a blank line when calling arp -a | findstr b8-27-eb
from the Windows command prompt.
The tutorial had me modify the network-config
file before inserting the card into the RPi which I did, and through some exploring, this had the following effect on /etc/netplan/50-cloud-init.yaml
(with WIFI-NAME and WIFI-PASSWORD being what they should be):
# this file generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init’s
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config-cfg with the following:
# network:{config: disabled}
network:
ethernets:
etho:
dhcp4: true
optional: true
version: 2
wifis:
wlan0:
access-points:
WIFI-NAME:
password: WIFI-PASSWORD
dhcp4: true
optional: true
In spite of this, my RPi 4 is still unable to connect to WiFi. If it's relevant, the first time I booted the RPi I didn't actually get the IP address since I disliked the angle of the cord so I unplugged it after a minute or two, plugged it back in, and on the second boot was when I attempted to get the IP.
What am I doing wrong? Or is the issue perhaps with Ubuntu 20.04 and I should use Ubuntu 18.04.4 until 20.04 stabilizes?
arp
instructions are WRONG for a Pi4, but there are better methods of determining IP. How do you know "my RPi 4 is still unable to connect to WiFi"?sudo iwlist wlan0 scan
is even picking up the network I want to connect to, but the system dialog for Wifi says that I don't have a wifi adapter installed.