Installing Ubuntu on Raspberry Pi 5: Easy Steps for Beginners
Summary
So, you want to get started with Linux on your Raspberry Pi 5? You're in the right place. This guide walks you through each step to install Ubuntu on Raspberry Pi 5.
No prior tech skills needed. In this blog we'll cover everything from picking the right version to solving common problems. Let's get your Pi up and running.

What is Ubuntu, and Why Use It on Raspberry Pi 5?
Ubuntu is a free Linux system that millions use worldwide. It's known for being stable and easy to use. The system gets regular updates to keep your device safe.
Why pick the Ubuntu Raspberry Pi for your Pi 5? Here's what makes it great:
- Strong support from a large community
- Works well with most software and apps
- Regular security patches keep your system protected
- Simple interface for new users
- Perfect for learning, projects, or daily tasks

The Raspberry Pi 5 is certified to work with Ubuntu. This means you get smooth performance and full hardware support. Whether you want a desktop setup or a headless server, Ubuntu handles both well.
How to Choose the Right Ubuntu Version for Raspberry Pi 5?
Picking the right version matters for your project. The latest version of Ubuntu comes in different flavors.
Ubuntu Server is the best option for headless setups because you don't need a monitor or keyboard after setup. It's lightweight and runs IoT projects, web servers, or network storage smoothly. This option saves system resources.
Ubuntu Desktop gives you a full visual interface. You get a mouse, icons, and menus like any computer. Pick this if you plan to use your Pi for browsing, coding, or media projects.
Ubuntu Core is built for IoT devices. It focuses on security and automatic updates. This version suits production devices that need to run without constant maintenance.
For most beginners, Ubuntu Desktop 24.04 LTS (64-bit) is the smart choice. The LTS tag means long-term support with updates for years.
Step-by-Step: How to Install Ubuntu on Raspberry Pi 5 for Beginners?
Getting Ubuntu running takes just a few steps. Here's what you need before starting:
- Raspberry Pi 5 board
- MicroSD card (16GB or larger, Class 10 speed)
- Card reader for your computer
- Power supply for the Pi
- Monitor with HDMI cable
- USB keyboard and mouse
Download Raspberry Pi Imager first. Visit the official Raspberry Pi website and grab the tool for your system (Windows, Mac, or Linux). Install it on your computer.

Open the Imager program. You'll see three main buttons, like the image shown:
- Choose Device: Select Raspberry Pi 5
- Choose OS: Pick your Ubuntu version
- Choose Storage: Select your microSD card
Click "Choose OS" and scroll to "Other general-purpose OS". Find Ubuntu in the list. Select either Ubuntu Server or Ubuntu Desktop based on your needs.
Insert your microSD card into the reader. Click "Choose Storage" and pick your card. Be careful to select the right drive - this process erases everything on it.

Click "Next" to continue. The Imager asks if you want to customize settings. Choose "Edit Settings" to set up your username, password, and WiFi details now. This saves time later.
How to Flash Ubuntu on Raspberry Pi 5
The flash Ubuntu Raspberry Pi process starts after you configure settings. You'll see a warning that all data will be deleted. Click "Yes" to proceed.
The Imager downloads the Ubuntu download file first. Then it writes the image to your card. This takes several minutes depending on your internet speed and card quality.
A progress bar shows how much is done. Don't remove the card or close the program during this time. Wait for the "Write Successful" message.

Some users prefer command-line tools. Linux and Mac users can use the dd command:
sudo dd bs=1M if=[image_name].img of=/dev/[device_name] conv=sync status=progress
Windows users might try Balena Etcher as an alternative. Select the image file, choose your storage device, and click Flash.
Once flashing completes, safely eject the microSD card. Your load Ubuntu on Raspberry Pi media is ready.
Booting and Setting Up Ubuntu on Your Raspberry Pi 5
Time to run Ubuntu on Raspberry Pi hardware. Insert the microSD card into the slot under your Pi 5. Connect your monitor using a micro-HDMI cable. Plug in your keyboard and mouse.
Attach the power cable last. The Pi doesn't have an on/off switch - it boots when you plug it in. You'll see text scrolling on screen as Ubuntu loads.
The first boot takes longer than usual. Ubuntu sets up files and configures your system. Be patient and don't unplug anything.
After loading, you'll see the login screen. Enter the username and password you created earlier. If you didn't set these during flashing, default credentials might apply (check Ubuntu's documentation).
Set up your system preferences after logging in:
- Connect to WiFi if not already done
- Choose your timezone and language
- Update system packages immediately
Open the terminal and run these commands:
sudo apt update
sudo apt upgrade
These commands fetch the latest version of all software. Updates include security patches and bug fixes. This step is critical for system stability.
Restart your Pi after updates finish:
sudo reboot
Your Ubuntu Server Raspberry Pi or Desktop setup is now complete and ready for projects.
Troubleshooting Common Ubuntu Installation Issues
Problems can pop up during setup. Here are fixes for the most common issues.
Pi won't boot after flashing
Check if your card is inserted properly. Remove it and reinsert firmly. If that fails, the image might be corrupted. Reflash the card using Raspberry Pi Imager again.
Some users report firmware errors with certain storage. Try using a different microSD card brand. Class 10 or better cards work most reliably.
Black screen on startup
Your HDMI connection might be loose. Unplug and reconnect both ends of the cable. Try a different HDMI port on your monitor.
Power supply problems cause blank screens too. The Pi 5 needs adequate power. Use the official power adapter or one rated for at least 5V/3A.
Slow performance after installing
How to boost Ubuntu performance on Raspberry Pi starts with proper cooling. The Pi 5 generates heat. Install the active cooler or a case with fan to prevent throttling.
You can overclock the CPU and GPU. Edit the config file:
sudo nano /boot/firmware/config.txt
Add these lines at the end:
#overclocking
over_voltage=6
arm_freq=2000
gpu_freq=750
Save and reboot. This increases processing speed but generates more heat. Only try this with proper cooling installed.
Increase swap memory for better stability. Check current swap:
sudo swapon --show
Create a larger swap file if needed. This helps when running memory-heavy programs.
WiFi not connecting
Check if you entered the right password during setup. Open network settings and reconnect manually. Some networks require additional security settings.
Ubuntu Core on Raspberry Pi behaves differently. It's designed for appliances and IoT. If you picked Core by mistake and want a desktop, reflash with Ubuntu Desktop instead.
Bootloader issues
Corrupted EEPROM causes boot failures. Flash a new bootloader using Raspberry Pi Imager. Choose "Miscellaneous utility images" then "Bootloader".
Write this to a card and boot your Pi with it. The green LED flashes when updating. Power off and try your Ubuntu card again.
Software won't install
Always run updates first. Many package errors happen because repositories are outdated. The update commands refresh your system's software list.
Check if you're using Ubuntu 20.04 download or newer. Older versions might lack support for Pi 5 hardware. The 24.04 LTS release offers better compatibility.
Conclusion
You now know how to install Ubuntu on Raspberry Pi 5 from start to finish. The process is simple: download the Imager, flash your card, boot your Pi, and update the system. Take your time with each step and check connections carefully. Whether you picked Server, Desktop, or Core, Ubuntu gives you a solid platform for learning and projects. Start exploring what your new setup can do.









