Install Ubuntu Server on a Raspberry Pi 2, 3 or 4

https://ubuntu.com/download/raspberry-pi

Which image should I pick?
If you are wondering which download to pick, here are a few pointers on the options.

32 bit vs 64 bit

The Raspberry Pi 2 only supports 32 bits, so that’s an easy choice. However the Raspberry Pi 3 and 4 are 64 bit boards. According to the Raspberry Pi foundation, there are limited benefits to using the 64 bit version for the Pi 3 due to the fact that it only supports 1GB of memory; however, with the Pi 4, the 64 bit version should be faster.

Installation instructions
We will walk you through the steps of flashing Ubuntu Server on to your Raspberry Pi and getting logged in.

What you’ll need
- Raspberry Pi 2, 3, or 4
- micro-USB power cable for the Pi 2 & 3, or a USB-C power cable for the Pi 4
- microSD card with the Ubuntu Server image
- monitor with an HDMI interface
- An HDMI cable for the Pi 2 & 3 and a MicroHDMI cable for the Pi 4
- USB keyboard

Flash Ubuntu onto your microSD card
The first thing you need to do is take a minute to copy the Ubuntu image on to a microSD card by following our tutorials, we have one for Ubuntu machines, Windows machines and Macs.

Boot Ubuntu Server
You need to attach a monitor and keyboard to the board. You can alternatively use a serial cable.
Now insert the microSD card
Plug the power adaptor into the board
Login to your Pi
When prompted to log in, use “ubuntu” for the username and the password. You will be asked to change this default password after you log in.

You are now running the Ubuntu Server on your Raspberry Pi.

Things to try next
Here are a few things you can do now that you have your Raspberry Pi running Ubuntu.

Install a desktop

You can install a desktop if you like, here are some popular ones:

sudo apt-get install xubuntu-desktop
sudo apt-get install lubuntu-desktop
sudo apt-get install kubuntu-desktop


Raspberry Pi 4/3 (64 bits), Ubuntu 20.04
Code:
http://cdimage.ubuntu.com/releases/20.04/release/ubuntu-20.04-preinstalled-server-arm64+raspi.img.xz


Raspberry Pi 4/3/2 (32 bits), Ubuntu 20.04
Code:
http://cdimage.ubuntu.com/releases/20.04/release/ubuntu-20.04-preinstalled-server-armhf+raspi.img.xz


Raspberry Pi 4/3 (64 bits), Ubuntu 18.04
Code:
http://cdimage.ubuntu.com/releases/18.04/release/ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img.xz


Raspberry Pi 4/3/2 (32 bits), Ubuntu 18.04
Code:
http://cdimage.ubuntu.com/releases/18.04/release/ubuntu-18.04.4-preinstalled-server-armhf+raspi3.img.xz
_________________________