Score:0

Ubuntu server on Pi won’t connect to Internet

ye flag

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
mpboden avatar
do flag
Please update question with output of `lsb_release -d` and `ip a` and `cat /etc/netplan/50-cloud-init.yaml`
waltinator avatar
it flag
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 avatar
it flag
Look at the network logs with the terminal command: `sudo journalctl -b 0 -u NetworkManager`. Read `man journalctl`.
Agent Blade avatar
ye flag
@mpboden I added the outputs as requested
mpboden avatar
do flag
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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.