Trying to install ubuntu 24.04 then got something went wrong message. Here are two screenshots of the error message.It shows verifying dev/sda3 partition flag,expecting swap, found None. Can anyone help me out???
You’re running into a known issue that sometimes appears during Ubuntu installations — especially with Ubuntu 24.04, which is still relatively new and might have installer bugs or edge case regressions.
The error:
Verifying /dev/sda3 partition flag, expecting swap, found None
suggests that the installer expected /dev/sda3
to be a swap partition, but it’s not marked or formatted as such. Here’s what it usually means and how to fix it.
What’s Happening
- Ubuntu’s installer (probably Subiquity or Ubiquity) is trying to validate that your disk layout includes a swap partition.
- It found
/dev/sda3
, which it expects to be swap based on either:- Your manual partitioning choices
- An auto-config template
- A corrupted or incomplete installation attempt
- But
/dev/sda3
either:- Isn’t formatted as swap
- Is marked incorrectly in the partition table
- Is corrupted or misaligned
This mismatch causes the installer to fail with the “something went wrong” screen.
How to Fix It
Option 1: Use the “Erase Disk and Install Ubuntu” Option
If you’re doing a fresh install and don’t care about existing data:
- Boot the Ubuntu 24.04 live USB.
- Choose “Erase disk and install Ubuntu” during installation.
- Let the installer automatically partition and format everything, including swap (it may create a swap file instead of a partition).
This avoids the issue entirely by letting Ubuntu manage the partitioning.
Option 2: Manual Partitioning — Create a Proper Swap Partition
If you’re manually partitioning:
- Boot into the live session (“Try Ubuntu”).
- Open GParted (or install it if needed:
sudo apt install gparted
). - Check if
/dev/sda3
exists and what type it is:
- If it’s not labeled as linux-swap, right-click it → Format to → linux-swap.
- If it’s not needed, delete it and create a new swap partition (1–4 GB is typical).
- Apply the changes.
- Re-run the Ubuntu installer, and during partitioning:
- Assign your root (
/
) partition. - Make sure the swap partition is recognized and marked as “use as swap area”.
This aligns what the installer expects with the actual disk layout.
Option 3: Use a Swap File Instead of a Partition
Modern Ubuntu setups often use a swap file rather than a dedicated swap partition:
- In the partitioning step, skip creating a swap partition entirely.
- After installation, Ubuntu will automatically create a swap file under
/swapfile
. - This is cleaner and more flexible in most modern setups.
If the installer insists on a swap partition, you’re probably using custom partitioning with legacy options, or the auto-detect logic is buggy.
Advanced Tip: Clean Up Old GPT/MBR Entries
If you’re reusing a disk that had a previous OS or broken partition table:
- Boot into live USB.
- Run this to wipe partitioning info (warning: this erases all data!):
sudo wipefs -a /dev/sda
- Then open GParted or the installer and create a fresh partition table (GPT or MBR).
- Proceed with installation.
Summary
Your installer expects /dev/sda3
to be swap but finds something else. You can fix this by:
- Letting Ubuntu auto-partition the disk
- Reformatting
/dev/sda3
tolinux-swap
- Deleting the partition and letting Ubuntu use a swap file
- Wiping the disk and starting fresh