Part 1 - Why My Ubuntu Server Install Kept Failing - And How I Finally Got It Right
Why My Ubuntu Server Install Kept Failing - And How I Finally Got It Right Date: Tonight, from Dublin Setup: Windows PC + VirtualBox + Ubuntu Server 24.04.5 LTS 1. Why The Last Ubuntu Server Didn't Work (Ever
Why My Ubuntu Server Install Kept Failing - And How I Finally Got It Right
Date: Tonight, from Dublin
Setup: Windows PC + VirtualBox + Ubuntu Server 24.04.5 LTS
1. Why The Last Ubuntu Server Didn't Work (Everything I Found Wrong)
I scrolled back through the whole night and it was 4 mistakes stacked together:
a) arm64 vs amd64 - I downloaded Ubuntu-24.4.5-live-server-arm64.iso
arm64 is for Raspberry Pi and Apple M1/M2 Macs.
My PC + VirtualBox is Intel/AMD 64-bit, so I need amd64.
One letter difference, won't even boot.
b) preinstalled vs live-server - I was at the bottom of the page looking at
noble-preinstalled-server-amd64.img.xz
Those .img.xz files are for flashing directly onto an SD card / hard drive
for a factory server. VirtualBox needs the .iso, not the .img.xz
c) Typo in version - I was searching for "Ubuntu-24.4.5" but it's actually
"Ubuntu-24.04.5" (04 = April). 24.4 doesn't exist.
d) The .opdownload file - My Opera download was stuck as
'ubuntu-26.04.1-live-server-amd64 (1).iso.opdownload'
.opdownload means Opera hadn't finished downloading. It's incomplete and
26.04 doesn't even exist yet as a stable release. You can't hash or boot that.
Correct name is: ubuntu-24.04.5-live-server-amd64.iso
2. What A Hash Is For
A hash is a fingerprint for a file. If even 1 bit changes, the hash completely changes.
I use it to prove:
- The 3.8GB download didn't corrupt
- No one tampered with it
- It's exactly what Canonical released
For Ubuntu I use SHA256.
How I check on Windows (PowerShell):
PS C:\users\thefamily1\downloads> Get-FileHash '.\ubuntu-24.04.5-live-server-amd64.iso' -Algorithm SHA256
It will print:
Algorithm Hash Path
SHA256 [long hex string] C:\users\thefamily1\downloads\ubuntu-24.04.5-live-server-amd64.iso
You then compare that hex string to the official one in the SHA256SUMS file at:
https://releases.ubuntu.com/24.04.5.1/SHA256SUMS
My bad example from tonight was:
PS C:\users\thefamily1\downloads> Get-FileHash '.\ubuntu-26.04.1-live-server-amd64 (1).iso.opdownload'
SHA256 3BE76D16835540A45D5FE1A3B99242A1B9DFD2539C9836CCE79CDF74D39933AE
That hash is useless because:
- It's a .opdownload = partial file, so hash will never match
- 26.04.1 doesn't exist yet, so there's no official hash to compare it to Tomorrow we will hash the REAL finished 3.8GB .iso instead.
3. Which Torrent I Downloaded
The good one:
ubuntu-24.04.5-live-server-amd64.iso.torrent (304KB)
from https://releases.ubuntu.com/24.04.5.1/
That tiny torrent file tells my torrent client how to download the real file:
ubuntu-24.04.5-live-server-amd64.iso - 3.8GB
Server install image for 64-bit PC (AMD64)
Full name means:
Ubuntu Server 24.04.5 LTS Intel or AMD 64-bit architecture
LTS = Long Term Support, supported until 2029, perfect for VirtualBox.
4. Why Use A Torrent, Why Am I Seeding, and What's 361 DHT Nodes?
Why torrent:
- Official Ubuntu torrents come straight from releases.ubuntu.com, so it's official
- Torrent auto-verifies chunks with hashes as it downloads, so corruption is caught instantly (does our hash lesson automatically)
- Faster, and you help Canonical save bandwidth
Why seeding after downloading:
BitTorrent is sharing. When you download, you become a server too. After you hit 100%,
your client keeps uploading to others. That's called "seeding". It's normal and expected.
If you don't want to seed, you can pause/stop the torrent in your client after verification.
What are 361 DHT nodes:
DHT = Distributed Hash Table. It's the decentralized tracker that lets torrent clients find
each other without a central server. "361 DHT nodes" means your client is connected to
361 other computers in the global DHT network that can help find peers for Ubuntu torrents.
More nodes = healthier torrent network = you found peers faster.
Current location: C:\Users\thefamily1\Downloads\ubuntu-24.04.5-live-server-amd64.iso
Next step tomorrow: Get-FileHash check vs official SHA256SUMS, then mount in VirtualBox.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.