Ritogi / Guides / Check whether this server is Ubuntu 22.04 x86_64
Check whether this server is Ubuntu 22.04 x86_64
Two read-only commands show the Ubuntu release and the CPU architecture, which is what decides whether Ritogi runs on the machine today.
Tested on Ubuntu 22.04.5 LTS, amd64, 2026-12-04.
Runs on Ubuntu 22.04 LTS and Ubuntu 24.04 LTS, on x86_64 servers.
These commands only read files. They do not install anything and they do not change the server.
Read the release file
Ubuntu writes the release into /etc/os-release. The line that matters is VERSION_ID.
. /etc/os-release
printf 'VERSION_ID=%s\n' "$VERSION_ID"On the Ubuntu 22.04.5 LTS machine used for the test on 2026-12-04, that printed:
VERSION_ID=22.04Your server prints its own release. A 22.04.1 or 22.04.5 image still has VERSION_ID=22.04.
Read the architecture
dpkg --print-architectureOn that same test machine, the command printed:
amd64amd64 is the name Ubuntu uses for a 64-bit x86 processor. That is the x86_64 Ritogi runs on.
Decide if Ritogi runs here
Use both answers together.
VERSION_ID=22.04andamd64: Ritogi runs here.VERSION_ID=24.04andamd64: Ritogi runs here.- Any other release or architecture: not the supported combination.
Questions
Does a newer 22.04 point release still count?
Yes, when VERSION_ID is 22.04. The test machine was 22.04.5 LTS and printed 22.04.
Does Ubuntu 24.04 count?
Yes, on amd64. Ubuntu 24.04 LTS is supported.
Will these commands change the server?
No. One reads /etc/os-release. The other asks dpkg for the architecture name.