You have a set of Android firmware files for the Samsung Galaxy A21s (likely LineageOS 22.2 nightly build) and some image files (boot.img, dtbo.img, recovery.img, super_empty.img, vbmeta.img). You want to "install it with Ubuntu system". I assume you want to flash this LineageOS firmware (or custom ROM) to your Samsung Galaxy A21s device using an Ubuntu Linux PC.
Overview of what you want:
- You want to flash (install) the LineageOS ROM and the associated images to your Samsung Galaxy A21s phone.
- You are running Ubuntu as your desktop OS.
- Your files are in
/home/antix/Downloads/a21s/
Step 1 — Prerequisites
- Ensure you have
adb and fastboot tools installed
They are essential for flashing images and transferring files.
sudo apt update
sudo apt install adb fastboot
- Install
heimdall for Samsung device flashing
Samsung devices use the Odin flashing protocol, which Heimdall replicates on Linux.
sudo apt install heimdall-flash
- Enable USB debugging on your phone:
- Go to Settings > About Phone > Build Number, tap 7 times to enable developer mode.
- Go to Settings > Developer options, enable USB debugging.
- Unlock your device's bootloader, if not done already.
Usually for Samsung devices:
- Turn off your phone.
- Hold Volume Down + Volume Up + Power to boot into download mode, confirm unlocking bootloader (note: may wipe your data).
Step 2 — Connect your device and verify connection
Plug in your Galaxy A21s over USB.
Check adb device detection:
adb devices
You should see your device listed (e.g. ABC123456 device).
Step 3 — Flash the recovery or boot images
There are two ways generally to flash:
- Use heimdall (Samsung flashing tool)
- Use fastboot
Samsung devices typically use the download mode and Odin/Heimdall, not fastboot (fastboot may not work).
Step 4 — Flash using Heimdall
Use heimdall to flash the images to appropriate partitions.
List partitions on device in download mode:
-
Turn the device OFF.
-
Boot into Download Mode: Hold Volume Down + Power + Home/Bixby button (depending on your model), then press Volume Up to confirm.
-
Check device connection:
heimdall detect
You should see your device detected.
Step 5 — Flash images
You have these image files:
boot.img
recovery.img
dtbo.img (Device Tree Blob Overlays)
vbmeta.img (Verified Boot Metadata)
super_empty.img
lineage-22.2-20250520-nightly-a21s-signed.zip (the full OS zip)
Samsung generally uses recovery or boot, and dtbo, vbmeta.
- If you want to flash recovery separately:
heimdall flash --RECOVERY recovery.img --no-reboot
heimdall flash --BOOT boot.img --no-reboot
heimdall flash --DTBO dtbo.img --no-reboot
heimdall flash --VbMeta vbmeta.img --no-reboot
Notes about super_empty.img
Modern Android might have a super partition (dynamic partitions). super_empty.img is likely a placeholder or empty super partition image.
Flashing super_empty.img is tricky. Usually flashing super partitions require special commands or tools like fastboot --slot, or lpmake tools, or OEM-specific tools.
Unless you know exactly what to do with super_empty.img, better keep it aside.
Step 6 — Flash LineageOS zip
Unlike a stock Samsung ROM, you usually cannot flash the LineageOS .zip file using Heimdall or fastboot; the .zip image is meant to be installed from a custom recovery like TWRP or OrangeFox.
Step 7 — Recommended approach: flash recovery first, then flash zip via recovery
- Flash the custom recovery (if included or you have it).
Since you have recovery.img, flash it:
heimdall flash --RECOVERY recovery.img --no-reboot
- After flashing, boot directly into recovery (do NOT boot into system yet, or the recovery might be overwritten).
To boot into recovery: Power off, then Volume Up + Power.
- In recovery, use the options to Install or Apply update from ADB/Sideload.
To sideload the LineageOS zip:
On the PC:
adb sideload lineage-22.2-20250520-nightly-a21s-signed.zip
This will flash the LineageOS ROM.
Step 8 — Flash vbmeta and disable verification (important)
Newer Android versions enforce Verified Boot, so you often need to disable dm-verity or AVB verification to avoid boot loops after flashing custom ROMs.
You can flash vbmeta.img with verification disabled:
heimdall flash --VbMeta vbmeta.img --no-reboot
or
fastboot flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
But as Samsung devices do not typically use fastboot flashing, Heimdall is recommended.
Alternatively, if your recovery has options for disabling verity, do that.
Summary of commands to flash images:
- Boot phone into Download mode
- From terminal:
heimdall flash --RECOVERY recovery.img --no-reboot
heimdall flash --BOOT boot.img --no-reboot
heimdall flash --DTBO dtbo.img --no-reboot
heimdall flash --VbMeta vbmeta.img --no-reboot
-
Reboot into recovery: hold Volume Up + Power.
-
Use adb sideload:
adb sideload lineage-22.2-20250520-nightly-a21s-signed.zip
- After flashing completes, wipe cache/dalvik from recovery, reboot system.
Important notes:
- Unlocking bootloader may wipe your device data!
- Flashing corrupt images may brick your device.
- Ensure your images are meant for your exact device model.
- If unsure, read the official LineageOS installation instructions for Galaxy A21s.
- Backup all important data.
If you want, I can help prepare exact commands based on your needs or troubleshoot errors. Just ask!