Linux VPS: choosing between Ubuntu and Debian

For a new Linux VPS with no special requirement, take Ubuntu 24.04 LTS: it has the newest packages of the three Linux images at Cloudraft and the longest standard support. Take Debian 12 when you want fewer moving parts, and Ubuntu 22.04 only when your software asks for it by name.

Updated: · Prices in the text are with the public IP (₼10 a month) unless stated otherwise.

Decide by situation

Your situationImage to takeWhy
New project, you choose the stackUbuntu 24.04 LTSNewest packages, updates until 2029
The vendor's manual names one releaseThat exact releaseTheir support desk will ask
Small server you want to leave aloneDebian 12Few packages by default, conservative changes
Old application that needs PHP 8.1 or Python 3.10Ubuntu 22.04 LTSThose are its default versions
Everything will run in containersEitherThe image inside the container matters more
Your team already runs one of themThe same oneOne set of scripts and habits

The last row is underrated. Two distributions in one company means two sets of package names, default paths and upgrade calendars.

The versions you get from the standard repositories

The distribution decides the versions you get from apt without adding outside sources. Those are the ones that receive security fixes for years, so compare them with what your application needs.

PackageUbuntu 22.04Debian 12Ubuntu 24.04
Kernel series5.156.16.8
Python3.103.113.12
PHP8.18.28.3
PostgreSQL141516
MySQL-type databaseMySQL 8.0 or MariaDB 10.6MariaDB 10.11 onlyMySQL 8.0 or MariaDB 10.11
nginx1.181.221.24

Note the database row. Debian does not package MySQL, so an application that insists on MySQL rather than MariaDB means either Ubuntu or a third-party repository.

If one package is too old, add that project's own repository for that package alone. Changing the whole distribution to get one newer program is rarely worth it.

Support dates, read carefully

  • Ubuntu 22.04 LTS: standard support ends in 2027. It is a poor start for a project you expect to keep for three years.
  • Ubuntu 24.04 LTS: standard support until 2029.
  • Debian 12: released in June 2023. The security team covered it for three years, and the Debian LTS project continues with fixes until June 2028 for common server hardware.

Two details are easy to miss. Ubuntu's standard promise covers the main section; much of what people install comes from universe, which is maintained by the community unless you attach an Ubuntu Pro subscription. And "supported" only means that a fix is published. Somebody still has to install it, which is why hardening the server includes automatic security updates.

Habits that differ after login

Both use apt and systemd, so nine commands out of ten are identical. These are the exceptions people trip over:

  1. sudo. On Debian it can be missing when the system was installed with a root password. Run apt install sudo as root, then add your user to the sudo group.
  2. Firewall. ufw is usually present on Ubuntu; on Debian install it with apt install ufw.
  3. Logs. Debian 12 keeps logs in the systemd journal, so /var/log/syslog and /var/log/auth.log may not exist. Use journalctl -u ssh.
  4. snap. Ubuntu delivers some software as snaps. Debian does not use them unless you install snapd.
  5. Network files. Ubuntu describes the network with netplan; on Debian it depends on the image. Check before copying a tutorial.

The Ubuntu page continues with the first setup of that system step by step.

Check an image before you build on it

Run these on a fresh server. They change nothing:

cat /etc/os-release                         # distribution and release
uname -r                                    # running kernel
apt update                                  # refresh package lists
apt policy nginx postgresql php python3     # versions you would get
free -h && df -h /                          # memory and disk before your software
systemctl list-units --type=service --state=running

If a candidate version does not match your application, switch now. Reinstalling the OS from the panel is a small job on an empty server and a project on a full one: treat a reinstall as the loss of everything on the disk.

Sizes that suit a Linux server

A Linux server without a desktop uses a few hundred megabytes before your software starts, so small plans are realistic. As starting points: a bot or a static site on 1 GB, a small site with a database on 2 GB, several sites or a container setup on 4 GB. Nano, Starter and Basic exist for Linux only. Between Starter and Standard stands Basic: 2 GB with 2 vCPU for ₼37.90 a month with public IP, which is ₼10 of that.

  • Nano₼14.90/mo

    1 vCPU · 1 GB RAM · 30 GB NVMe

    Public IP +₼10/mo, With public IP: ₼24.90/mo

  • Starter₼19.90/mo

    1 vCPU · 2 GB RAM · 30 GB NVMe

    Public IP +₼10/mo, With public IP: ₼29.90/mo

  • Standard₼39.90/mo

    2 vCPU · 4 GB RAM · 60 GB NVMe

    Public IP +₼10/mo, With public IP: ₼49.90/mo

Prices in manat (AZN), billed monthly. The public IP is +₼10 a month and is assigned automatically.

Measure after a week and adjust; the RAM guide explains what to read in free and vmstat. You can paste an SSH public key when ordering, and the first login is covered in connecting with SSH.

Mistakes that cost a reinstall

  • Adding five outside repositories in the first week. Each can block the next release upgrade.
  • Mixing packages from another Debian or Ubuntu release "just for one library".
  • Installing a desktop environment on a server. It takes memory, adds updates and is hardly ever opened. If you really need a desktop for daily work, read about a remote desktop server.
  • Choosing by memory benchmarks. The difference between these three systems at idle is smaller than one PHP process.
  • Planning no upgrade. Put the end-of-support year in the calendar on the day you order.

Linux VPS questions

Is Debian lighter than Ubuntu on a VPS?

Slightly. A minimal Debian starts fewer services and has no snap, which can save some tens of megabytes. On a 1 GB server that is noticeable; from 2 GB up, your own software decides.

Can I change from Ubuntu to Debian later?

Not in place. Either reinstall the OS from the panel after copying your data out, or order a second server, move the services over and cancel the first.

Which Linux is best for a web server?

Ubuntu 24.04 and Debian 12 are equally suitable for nginx, Apache, PHP and PostgreSQL. Choose by the PHP and database versions your site needs, and by what your administrator knows.

Do I pay extra for Linux?

Ubuntu and Debian are free software, so there is normally nothing to add. If an operating system carries a licence fee, you see it in the order before you confirm.

Do I need to know the command line?

Yes, at least a dozen commands, or someone who does. The panel starts, stops, restarts and reinstalls the server, but installing and updating software happens in the terminal.

Read next

All VPS pages

This page in other languages: Русский · Türkçe

Servers in Baku, prices in manat

Create an account, top up your balance and order the plan you need.