Forums 💡 Today I Learned

Things to do after installing Ubuntu 18.04 on Raspberry Pi 3 B+

  • VarHowto Editor

    Change hostname

    The default host name is Ubuntu.

    sudo vim /etc/hosts

    sudo vim /etc/hostname

    sudo reboot

    Upgrade packages

    Run htop to see if unattended-upgrades is running… Or if you see Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3467 (unattended-upgr), unattended-upgrades is running… You’ll need to wait for a few minutes as it’s holding the apt lock.

    sudo apt update
    apt list --upgradable
    sudo apt upgrade

    Set timezone:

    sudo dpkg-reconfigure tzdata

    Turn off prompt to upgrade to Ubuntu 20.04 for ssh login:

    If you install 18.04 after 20.04 is out, you may not want to upgrade 20.04 to avoid breaking changes from the newer packages.

    sudo sed -i 's/Prompt=.*/Prompt=never/' /etc/update-manager/release-upgrades

    Set up Wi-Fi:

    vim /etc/netplan/50-cloud-init.yaml


    password: "PASSWORD"
    addresses: []
    dhcp4: true
    nameservers: {}

    sudo netplan --debug apply

    *You may need to restart your router if you cannot ping you raspberry pi (i.e., Destination Host Unreachable).


    Set up swap:

    Search dphys-swapfile on

    BTW, how to install Ubuntu 18.04 on Raspberry Pi 3 B+

    1. Download “Raspberry Pi 3 (64-bit ARM) preinstalled server image” on
      1. As of Dec 3 2020, the url is
    2. Write the image
      1. On Ubuntu, you can double click the downloaded file, and it should open “Disks”. A dialog will guide you write it to a MicroSD card.
      2. On Windows, install Raspberry Pi Imager at
  • You must be logged in to reply to this topic.