0

For the past few hours I have been following to official Ubuntu guide to setup an Ubuntu server on my Raspberry Pi 3B+ however whenever I boot up the server and sign in it doesn’t connect to the internet, I’ve follows the official guide to fix the sudo nano /etc/netplan/50-cloud-init.yaml file and reboot but nothing will work.

Edit:

Output of lsb_release -d:

Description: Ubuntu 20.04.5 LTS

Output of ip a:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo 
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b8:27:eb:ee:90:91 brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_code1 state DOWN group default qlen 1000
    link/ether b8:27:eb:bb:c5:c4 brd ff:ff:ff:ff:ff:ff

Output of cat /etc/netplan/50-cloud-init.yaml:

#This file is 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:
    version: 2
    wifis:
        renderer: networkd
        wlan0:
            access-points:
                Mywifinetwork
                    password: mypassword
            dhcp4: true
            optional: true
  • 1
    Please update question with output of `lsb_release -d` and `ip a` and `cat /etc/netplan/50-cloud-init.yaml` – mpboden Jul 22 '23 at 22:37
  • Telling us which remote procedure (RP) you "followed" doesn't help us help you for N reasons: 1) It's remote. Will the link exist tomorrow? 2) Reading the RP doesn't tell us how accurately you "followed" it. Did you suffer typos or missed lines? We have. 3) Reading the RP omits the error messages **you** got on **your system**. These error messages (and the commands that caused them) are key elements in any diagnosis. – waltinator Jul 22 '23 at 22:58
  • Look at the network logs with the terminal command: `sudo journalctl -b 0 -u NetworkManager`. Read `man journalctl`. – waltinator Jul 22 '23 at 22:59
  • @mpboden I added the outputs as requested – Agent Blade Jul 24 '23 at 00:32
  • So it looks like you’re trying to setup wireless. Two things…indentation is very specific with Netplan YAML files. Do not use tabs. Use spaces only. Next, your wireless network and password need to be enclosed in quotes. See [here](https://askubuntu.com/a/1107570/1684306) for an Ask Ubuntu answer to a similar question. – mpboden Jul 24 '23 at 01:11

0 Answers0